Mp3-module that extracts bitrate, length info

Alex Martelli aleaxit at yahoo.com
Mon Jan 15 08:38:16 EST 2001


"Thomas Weholt" <thomas at cintra.no> wrote in message
news:0_Z76.1077$wt2.3267 at news1.oke.nextra.no...
> Hi,
>
> I need a module that can extract bitrate and length etc. fom mp3 files on
> Win32. I've tried mp3infor.py on Linux and it works great but it fails on
> Win32. ID3Tag.py and the rest I've found on Parnassus seem to only get
> artist, albumtitle, songname, genre and year, but I would really want to
get
> the length and bitrate too.
>
> If anybody can give me some hints that would be great. I could possibly be
> fixed using the source of the mp3infor.py module but I don't understand
the
> bit where it extracts the info I mentioned.

Just to try, I downloaded mp3.py from http://www.dotfunk.com/projects/mp3
and a sample mp3 file (not having audio on this box I don't have mp3's
around either),
http://www.aardvarkrecords.co.uk/elibowen/sounds/evesample.mp3,
and running mp3.py on the sample seems to work just fine on this win32 box:

D:\PySym>python mp3.py evesample.mp3
evesample.mp3
SS 17
BITRATE 32
FREQUENCY 22050
MM 1
COPYRIGHT 1
MODE 3
STEREO 0
VERSION 0
LAYER 2
TITLE Eve's Bread
COMMENT
ARTIST Eli Bowen
YEAR 1999
GENRE Rock
ALBUM Routine Uniform


Is this the specific module you were trying...?


Alex






More information about the Python-list mailing list