<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Hi,<br><br>I don't know which version of ID3v2 tags MusicMatch uses. Maybe the ID3v2 version is user configurable in MusicMatch.<br>Anyway, reading the ID3v2 tag from the begin of the file and searching for the frame header textually is the completely wrong way. It may work if you're lucky. It may not work for many other files. Don't do it this way.<br><span>To correctly read an ID3v2 tag, you have to read in the tag header, check the major version (either 2, 3 or 4) and parse the rest of the tag according to the tag specifications on <a target="_blank" href="http://www.id3.org">www.id3.org</a> for the read ID3v2 version. Basically, you have to read in the byte sizes from the frame header and seek from frame to frame with the size
info. Note that each ID3v2 tag version (2, 3 and 4) uses a slightly different format to store the frame size.</span><br><br>Regards,<br>Mathias<br><br><br><br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">----- Ursprüngliche Mail ----<br>Von: Daniel Eliades <daniel_eliades@yahoo.com><br>An: id3v2@id3.org<br>Gesendet: Dienstag, den 17. Juli 2007, 04:59:33 Uhr<br>Betreff: [ID3 Dev] MusicMatch Tags<br><br>
<style>
<!--
_filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
_filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
{color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
span.EmailStyle17
{font-family:"Calibri", "sans-serif";color:windowtext;}
.MsoChpDefault
{}
_filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
{}
-->
</style>
<div class="Section1">
<p class="MsoNormal">Hello All,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I am writing a utility in C# to read the artist, album and
song from ID3v1 and ID3v2 tags. I am pretty new with ID3, so this may be
a stupid question. Reading an ID3v1 tag is pretty straight forward,
although I am having some difficulties when it comes to the way Music Match
tags songs. Basically what I did in my program to read the artist,album
and song from the tag was to read in the first 256 bytes of the file and search
for the frame id then went from there. This seemed to always work until I
came across a file that seems to be tagged from Music Match. This is what
the string says from reading in the first 256 bytes: </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">"ID3
</p><hr align="left" size="1" width="33%">
\0\0\0\0-COMM\0\0\0\0\0\0engMusicMatch_Tempo\0ModerateCOMM\0\0\0\0\0\0engMusicMatch_Mood\0UpbeatCOMM\0\0\0#\0\0\0engMusicMatch_Situation\0BackgroundCOMM\0\0\0#\0\0\0engMusicMatch_Preference\0Very
GoodCOMM\0\0\0\0\0\0eng\0TMED\0\0\0
<hr align="left" size="1">
\0\0\0DIGTLEN\0\0\0\a\0\0\0245000TCON\0\0\0\0\0\0RockTRCK\0\0\0
<hr align="left" size="1" width="33%">
\0\0\009TALB\0\0\0". <p></p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Does Music Match use a different format of ID3 or am I
totally going about this wrong?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Thanks for your input and any suggestions/advice you may
have.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Dan</p>
</div>
</div><br></div></div><br>
<hr size=1> Die etwas anderen Infos rund um das Thema Reisen.
<a href="http://de.rd.yahoo.com/evt=48734/*http://de.promotions.yahoo.com/clever/be-a-better/weltenbummler.html" target=_new >
<b>BE A BETTER WELTENBUMMLER!</b></a></body></html>