AW: [ID3 Dev] MusicMatch Tags

Mathias Kunter mathiaskunter at yahoo.de
Tue Jul 17 04:12:37 PDT 2007


Hi,

I don't know which version of ID3v2 tags MusicMatch uses. Maybe the ID3v2 version is user configurable in MusicMatch.
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.
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 www.id3.org 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.

Regards,
Mathias




----- Ursprüngliche Mail ----
Von: Daniel Eliades <daniel_eliades at yahoo.com>
An: id3v2 at id3.org
Gesendet: Dienstag, den 17. Juli 2007, 04:59:33 Uhr
Betreff: [ID3 Dev] MusicMatch Tags




 
 

<!--
 _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
	{}
-->






Hello All,
 

  
 

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: 
 

  
 

"ID3




\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



\0\0\0DIGTLEN\0\0\0\a\0\0\0245000TCON\0\0\0\0\0\0RockTRCK\0\0\0



\0\0\009TALB\0\0\0".  
 

  
 

Does Music Match use a different format of ID3 or am I
totally going about this wrong?
 

  
 

Thanks for your input and any suggestions/advice you may
have.
 

  
 

Dan
 










      __________________________________  Alles was der Gesundheit und Entspannung dient. BE A BETTER MEDIZINMANN! www.yahoo.de/clever
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.id3.org/pipermail/id3v2/attachments/20070717/195841bb/attachment.html>


More information about the ID3v2 mailing list