Jump to content

php + id3v2


markeee

Recommended Posts

Hi guys,

 

Im currently working n a little project, and it involves reading the data from audio files, id3v1 / lyrics 3 v1/ no problem etc

 

however i am having a problem with ID3v2.

 

Tag is ID3����lTIT2������The New Workout PlanTPE1������WEST, Kanye feat FONZWORTH ...TALB���%���The New Workout Plan (Lil Jon remix)TRCK������1TYER������2005COMM������eng�www.juno.co.ukWXXX�������www.juno.co.ukTCOP������Roc-A-Fella

 

above is the output from a mp3 file tagged using ID3v2, the problem is:

 

ID3v2 has a lot of frames, optional , no fixed size of the frames .

 

ID3v2 is stored at the beginning of the file, with ID3 as the start tag

 

im not sure how best to extract the frames a particular mp3 file has, as they are not required, so it varies from file - file and they are varying size

 

i was considering possibly, reading in the WHOLE file, then going through the contents looking for entries which are 4 bytes and all upper case, which the frames typically are

 

just curious if anyone has any better ideas, or im missing something

 

i know there are libraries out there to do this, but i would prefer to do it myself

 

thanks!

 

mark

Link to comment
https://forums.phpfreaks.com/topic/44703-php-id3v2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.