6

How to determine the type of the bitrate - CBR, VBR or ABR?

Cosmologist
  • 458
  • 4
  • 15

2 Answers2

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
0

Here in this question the eyeD3 lib is recommended.

Community
  • 1
  • 1
ikostia
  • 6,331
  • 5
  • 26
  • 38