<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>> What I am not understanding, and why I was writing the e-mail, is why
my implementation is working fine if I do not change the size of the
ID3v2 tag header upon rewriting a MP3 file, but does not work fine if I
do change the size header. The program uses the same process in both
cases. I have looked at the binary dump of what I am writing, and
compared it with Id3v2 data that Winamp/WMP will honor and do not
notice anything irregular.<br><br><br>The fact that Winamp or other software can read an ID3 tag doesn't mean that it's correctly coded.<br>Since you say the problem occurs when you change the tag size field, make sure that you write it correctly.<br><br>1) Determine the correct size of your tag if you re-write it. The tag size is the sum of the size of the extended header (if there exists one), all frames, and the padding (if there exists one). Don't forget the frame headers itself, which are not included within the frame size field.<br><br>2) Code this value either as a sync-safe 4 byte integer or as a normal 4 byte integer. See the following table:<br><br>ID3 version 2.2<br> tag header: sync-safe int<br> frame headers: normal int (note: 3 instead of 4 bytes long!)<br>ID3 version 2.3<br> tag header: sync-safe int<br> frame headers: normal int<br>ID3 version
2.4<br> tag header: snyc-safe int<br> frame headers: snyc-safe int<br><br>Regards,<br>Mathias K.<br><br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> Glenn Someone <ggrotz73@hotmail.com><br><b><span style="font-weight: bold;">An:</span></b> id3v2@id3.org<br><b><span style="font-weight: bold;">Gesendet:</span></b> Sonntag, den 26. Juli 2009, 17:15:04 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> RE: [ID3 Dev] ID3v2 Best Practices<br></font><br>
<style>
.hmmessage P
{
margin:0px;padding:0px;}
body.hmmessage
{
font-size:10pt;font-family:Verdana;}
</style>
Understood and thanks for your response.<br>
<br>
What I am not understanding, and why I was writing the e-mail, is why my implementation is working fine if I do not change the size of the ID3v2 tag header upon rewriting a MP3 file, but does not work fine if I do change the size header. The program uses the same process in both cases. I have looked at the binary dump of what I am writing, and compared it with Id3v2 data that Winamp/WMP will honor and do not notice anything irregular.<br>
<br>
This makes me think that either I am misunderstanding something in the standard, or my implementation is off in a way that I am not seeing upon studying the data (for almost two weeks now). This is why points #2 and #3 were written in the original e-mail. Is there something that can be used (somewhere) to validate whether ID3v2 is correct or not? If not, would it be possible for someone to look at a bit of data and see what is wrong about it?<br><a rel="nofollow" target="_blank" href="http://windowslive.com/Online/SkyDrive?ocid=TXT_TAGLM_WL_CS_SD_photos_072009"></a></div></div></div><br>
</body></html>