|
|
#1 |
|
Junior Member
Join Date: Apr 2002
Posts: 5
|
ID3v2 Invalid Tag size (Programming Help)
I have a small problem in your version of the ID3 v2 Tags
I am a programmer making an ID3 Tagger and went to the ID3 website to gather the specs for the tag format. After careful research looking over the tag I have found that your Winamp 2.79 dows not use the ID3 tagging system Properly. In the size portion of the header it notes the tag is much Longer then the file here is what I have done 1 Created a File containing Data "File Data" 2 Added the ID3v2 Tags to the file using the Winamp 2.79 Tag editor 3 Opened the newly tagged file in a hex editor While looking over the tag I noticed this fatal flaw Your header (As Follows) 4944 3303 0000 0000 0F6D Does not represent the Tag at all the file size is 2048 with "FileData" and everything but as you can see the tag says its size is 0F6D (3949). If I were to try to clear or change this tag I would efficently overwrite the beginning of the file. Now I understand for the most part 1901 Bytes is not a very significant portion of a file but if done repeatedly could diminish the file significantly. and say its just a companion file just of the tag. Opening past the end of the file could cause Program errors and Memory leaks if used improperly. Please help me understand and correct this problem. How would you trap and correct this is you were to encounter it ? Thank you I have encluded the MP3 in a text file for your view. you should check it in a hex editor not to damage the invalid characters by use in notepad or other editors. |
|
|
|
|
|
#2 | ||
|
Junior Member
Join Date: Dec 2000
Posts: 8
|
This is not a bug
This is not a bug in Winamp, you didn't research carefully enough. If you read the ID3v2 spec closely, you'll notice:
Quote:
If you want the code to find the size, here's some example code in PHP, but it should be easy to port: (this assumes $fp is the file descriptor of the mp3, and it's right at the position of the size portion of the id3v2 header) Quote:
|
||
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Apr 2002
Posts: 5
|
Hmm
Ok so this means
$0??????? per Byte ?
|
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Dec 2000
Posts: 8
|
Yes.
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2002
Posts: 5
|
Another Programming problem
I figured it out and I got the Size settings working right
But Winamp dosnt recognize any of my Tags. I even mimiced the Chr(0) Before the tag that Winamp likes to throw in there but to no avail Winamp wont read My Tags It says they are there but wont display them. Perhaps they need to be in a specific order or something ? It is about to make me blow a gasket
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Apr 2002
Posts: 5
|
No More problem
I think I figured it out
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Apr 2002
Posts: 5
|
My Tagger works now
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|