Page 1 of 1

mp3 bitrate.

Posted: Sat Dec 25, 2004 7:05 pm
by dreamline
Hi guyz,
I'm working on a site with mp3's.. However i run into a problem, i find plenty of code about getting ID3 tags however I'm looking for a little piece of code that shows you the bitrate (128kbit, 192kbit etc. etc). I did some reading on the mp3 headers but it seems it's not at a fixed place..

Anybody got an idea to extract and echo the bitrate???

Thanks guyz.. :D

Posted: Sat Dec 25, 2004 10:10 pm
by timvw
you might want to have a look at: http://leknor.com/code/php/view/class.id3.php.txt it has an option to read bitrate (by reading the first frame of the mp3)

Posted: Sun Dec 26, 2004 10:37 am
by Weirdan

Posted: Sun Dec 26, 2004 7:13 pm
by dreamline
Thanks guyz for the tips, i'll have a look... :D