简体   繁体   中英

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, eg 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

这个问题中,推荐使用eyeD3 lib。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM