How can I determine the bitrate type of mp3 files with Python?
How to determine the type of the bitrate used 开发者_运维百科for an mp3 file, e.g. CBR, VBR or ABR?
mutagen works for me. Here is an excerpt from one of my scripts.
from mutagen.mp3 import MP3
f = MP3(musicfile)
bitrate = f.info.bitrate / 1000
精彩评论