Subject: Re: misc/9767: MP3 files with "ID3 headers" not identified
To: None <seebs@ged.plethora.net>
From: Simon Burge <simonb@netbsd.org>
List: netbsd-bugs
Date: 04/04/2000 14:56:08
Seebs wrote:

> >Number:         9767
> >Category:       misc
> >Synopsis:       MP3 files may start with an "ID3 header", but file doesn't know this
> 
> >Description:
> 	I have a number of MP3 files generated with an option named "create
> 	ID3 header tags".  These files all appear to start
> 
> 0x000000  49 44 33 02  00 00 00 00  10 25 54 45  4e 00 00 0c 'ID3......%TEN...'
> 
> 	and are mp3 data.  mpg123 is confused by this, but Quicktime and the
> 	MP3 editor I use on my Mac both grok them.
> 
> >How-To-Repeat:
> 	Make MP3's.  :)
> 
> >Fix:
> 	I suspect that 'ID3\02' indicates an MP3 file, but I'd need someone to
> 	check with a standard.  Otherwise, we can keep calling them "data",
> 	and no one will be harmed.

The "\02" is the id3v2 version, and the current version appears to be
``3''.  From http://www.id3.org/id3v2.3.0.html:

	An ID3v2 tag can be detected with the following pattern:
	$49 44 33 yy yy xx zz zz zz zz
	Where yy is less than $FF, xx is the 'flags' byte and zz is less than $80. 

Simon.