开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜