How to determine the type of the bitrate used for an mp3 file, e.g. CBR, VBR or ABR?
Asked
Active
Viewed 7,726 times
1 Answers
20
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
- 53,797
- 27
- 201
- 249

Martin Tournoij
- 26,737
- 24
- 105
- 146
-
8You can use `f = mutagen.File(musicfile)` to not be tied to MP3. – mdeff Oct 17 '17 at 16:08