mp3 bitrate.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

mp3 bitrate.

Post 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
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

dreamline
Forum Contributor
Posts: 158
Joined: Fri May 28, 2004 2:37 am

Post by dreamline »

Thanks guyz for the tips, i'll have a look... :D
Post Reply