Menu

#1 GetMP3info fails on some files

open
nobody
None
5
2004-02-21
2004-02-21
No

In the version mp3-lib-0-0-4 the function GetMP3info doesn't give me a result for some mp3 files. All entries in the $INFO array are set to 0. I didn't track down the problem deeply but it seems that there are valid mp3 files that don't match the condition at line 382

if ((ord($fHdr[0])==255) && ((ord($fHdr[1]) & 224)==224))

The example mp3 files in the distributed zip work, but mine don't. My files were encoded with the Fraunhofer encoder.

I have been able to extract the info of Id3 tags though.

FYI: When I first tried to run the example it exited because in my distribution of php (phptriad) in the php.ini file the zlib library was commented out by default.

Phil

Discussion


Log in to post a comment.

MongoDB Logo MongoDB