How to determine the type of the bitrate - CBR, VBR or ABR?
Asked
Active
Viewed 5,787 times
2 Answers
18
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
Nico Schlömer
- 37,093
- 21
- 139
- 189
Martin Tournoij
- 23,567
- 24
- 90
- 127
-
5You can use `f = mutagen.File(musicfile)` to not be tied to MP3. – mdeff Oct 17 '17 at 16:08