Created
May 17, 2013 15:51
-
-
Save tcg/5600003 to your computer and use it in GitHub Desktop.
Use eyed3 in python to get audio encoding information (bitrate, sample rate, channel mode)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install eyeD3 | |
import eyed3 | |
from eyed3 import mp3 | |
f = mp3.Mp3AudioFile('2-297a587f40fdc0064c44f2e5247d7bf7.mp3') | |
# Now: | |
# >>> f.info.sample_freq | |
# 24000 | |
# >>> f.info.bit_rate | |
# (False, 64) | |
# >>> f.info.mode | |
# 'Mono' |
Years later, I see this comment!
For the record: Yes!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the unit of bit_rate (False, 64) is kbps???