Shoutbox

Reading MP3 Data in PHP - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Reading MP3 Data in PHP (/showthread.php?tid=44388)

Reading MP3 Data in PHP by Dempsey on 05-08-2005 at 09:21 PM

Has anyone ever made/used/heard of a PHP script which can read data from within a MP3, such as track length?

I've tried a few scripts but they seemed to say less than winamp or whatever when i Played them.

Or does anyone know about any MP3 documentation or something?  So i can try and read the track length myself?

Cheers for any help :)


RE: Reading MP3 Data in PHP by Veggie on 05-08-2005 at 09:40 PM

a google search came up with this http://pear.php.net/package/MP3_ID/ might be of some use maybe.


RE: Reading MP3 Data in PHP by Dempsey on 05-08-2005 at 10:01 PM

Thanks, I just tried that and that one doesn't seem to work either.  Maybe I just have some dodgy MP3s.

Does anyone know of a program to check if a MP3 is fully valid, becuase these MP3s play fine, but there could still be bits missing


RE: Reading MP3 Data in PHP by Chris.1 on 05-09-2005 at 11:31 AM

Try making sure you've got both IDv2/3 tags filled in?


RE: Reading MP3 Data in PHP by Dempsey on 05-09-2005 at 11:39 AM

I've found a way of doing it now.  As I only want to read the MP3 header, not the actual ID3 tags, cos all I want is the Duration of the track.