9

How to determine the type of the bitrate used for an mp3 file, e.g. CBR, VBR or ABR?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Cosmologist
  • 508
  • 1
  • 5
  • 16

1 Answers1

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