开发者

How can I determine the bitrate type of mp3 files with Python?

开发者 https://www.devze.com 2023-02-18 10:10 出处:网络
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.

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

精彩评论

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