Hi,
This class that represents ID3v1.0 and ID3v1.1 tags. It can read, write, and remove tags in MP3 files.
Download : http://www.phpbuilder.com/snippet/detai ... et&id=1107
may the FORCE be with us!
may the PHP be with us!
.)
Read/Write ID3v1.0 and ID3v1.1 Tags.
Moderator: General Moderators
ID3v2 is pretty fun to get working under PHP, especially when you get it compliant with all the sub-versions. It's more complicated than V1, as it requires more binary knowhow.
ID3v1.x tags are stored as the last 128 bytes of the MP3 file. ID3v2 tags are more complicated, as they sit at the front of the file, and are variable-length. It uses a feature, called "sync-safe encoding" to make sure the ID3 tag isn't parsed as MP3 data (sync-safeing means making sure you have no bytes with the MSB set, so <128). It's a good topic for people to learn about binary file structures, especially as you can work with songs you like, and can see if it works almost instantly.
I wrote a class that handles ID3v1, 2.2 and 2.4 tags, so I could tame my mp3 collection
good experience.
ID3v1.x tags are stored as the last 128 bytes of the MP3 file. ID3v2 tags are more complicated, as they sit at the front of the file, and are variable-length. It uses a feature, called "sync-safe encoding" to make sure the ID3 tag isn't parsed as MP3 data (sync-safeing means making sure you have no bytes with the MSB set, so <128). It's a good topic for people to learn about binary file structures, especially as you can work with songs you like, and can see if it works almost instantly.
I wrote a class that handles ID3v1, 2.2 and 2.4 tags, so I could tame my mp3 collection
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA