ID3

From Free net encyclopedia

(Redirected from ID3 tag)

ID3 is a tagging format for MP3 files. It allows metadata such as the title, artist, album, track number, etc., to be stored in the MP3 file.

Contents

Versions

ID3v1

ID3v1 was created by Eric "NamkraD" Kemp in 1996 and was the original de facto standard. Eric wrote a program named Studio3 and created this structure as a way of storing file metadata in the file itself. ID3v1 tag occupies 128 bytes at the end of the file, beginning with the string "TAG" so that a tag could be easily spotted by media players. Early MP3 players would occasionally react badly to data injected into the MPEG stream, either stopping play at that point, emitting a burst of noise, or (in the case of tags at the file's start) refusing to even open the file. To solve these problems, the tag was placed at the end of the file instead of at the beginning.

ID3v1 format
offsetlengthdescription
03"TAG" identifier string.
330Song title string.
3330Artist string.
6330Album string.
934Year string.
9730Comment string.
1271Genre byte.

Strings should be zero-padded, however in practice most parsers have treated a zero-byte as a terminating character and this allowed ID3v1.1 to be introduced while maintaining compatibility with existing software. Some old taggers pad strings with spaces instead, which causes ID3v1.1-compliant parsers to interpret the file as being track 32.

ID3v1.1

ID3v1.1, an extension created by Michael Mutschler in 1997, added a new track number field to ID3v1 while maintaining the original size of 128 bytes. This new field occupies the last two bytes of the ID3v1 comment field.

ID3v1.1 format
offsetlengthdescription
03"TAG" identifier string.
330Song title string.
3330Artist string.
6330Album string.
934Year string.
9728Comment string.
1251Zero byte separator.
1261Track byte.
1271Genre byte.

The specification insists that all of the strings listed here be encoded with ISO 8859-1. However, in order to support languages outside Western Europe, many programs will use the system's default locale encoding instead. This can lead to difficulties in decoding the strings on machines with another default locale.

Genres

ID3v1 defines genres numbered 0 through 79 and Winamp extends the list from 80 to 147.

Genre ID # Genre
0 Blues
1 Classic Rock
2 Country
3 Dance
4 Disco
5 Funk
6 Grunge
7 Hip-Hop
8 Jazz
9 Metal
10 New Age
11 Oldies
12 Other
13 Pop
14 R&B
15 Rap
16 Reggae
17 Rock
18 Techno
19 Industrial
20 Alternative
21 Ska
22 Death metal
23 Pranks
24 Soundtrack
25 Euro-Techno
26 Ambient
27 Trip-Hop
28 Vocal
29 Jazz+Funk
30 Fusion
31 Trance
32 Classical
33 Instrumental
34 Acid
35 House
36 Game
37 Sound Clip
38 Gospel
39 Noise
40 Alt. Rock
41 Bass
42 Soul
43 Punk
44 Space
45 Meditative
46 Instrumental pop
47 Instrumental rock
48 Ethnic
49 Gothic
50 Darkwave
51 Techno-Industrial
52 Electronic
53 Pop-Folk
54 Eurodance
55 Dream
56 Southern Rock
57 Comedy
58 Cult
59 Gangsta
60 Top 40
61 Christian Rap
62 Pop/Funk
63 Jungle
64 Native American
65 Cabaret
66 New Wave
67 Psychedelic
68 Rave
69 Showtunes
70 Trailer
71 Lo-Fi
72 Tribal
73 Acid Punk
74 Acid Jazz
75 Polka
76 Retro
77 Musical
78 Rock & Roll
79 Hard Rock
80 Folk
81 Folk-Rock
82 National Folk
83 Swing
84 Fast Fusion
85 Bebop
86 Latin
87 Revival
88 Celtic
89 Bluegrass
90 Avantgarde
91 Gothic Rock
92 Progressive Rock
93 Psychedelic Rock
94 Symphonic Rock
95 Slow Rock
96 Big Band
97 Chorus
98 Easy Listening
99 Acoustic
100 Humour
101 Speech
102 Chanson
103 Opera
104 Chamber music
105 Sonata
106 Symphony
107 Booty Bass
108 Primus
109 Porn Groove
110 Satire
111 Slow Jam
112 Club
113 Tango
114 Samba
115 Folklore
116 Ballad
117 Power Ballad
118 Rhythmic soul
119 Freestyle
120 Duet
121 Punk Rock
122 Drum Solo
123 A Cappella
124 Euro-House
125 Dance Hall
126 Goa
127 Drum & Bass
128 Club-House
129 Hardcore
130 Terror
131 Indie
132 BritPop
133 Negerpunk
134 Polsk Punk
135 Beat
136 Christian Gangsta Rap
137 Heavy Metal
138 Black Metal
139 Crossover
140 Contemporary Christian
141 Christian Rock
142 Merengue
143 Salsa
144 Thrash Metal
145 Anime
146 JPop
147 Synthpop

ID3v2

ID3v2 greatly expanded ID3, adding many more fields and allowing those fields to be much longer. ID3v2 also defined a more extensible data structure with named tag fields and allowed information such as lyrics and images to be stored in the file. The ID3v2 information is stored as a large data block at the beginning of the file (or optionally at the end of the file as of ID3v2 2.4). An MP3 file with ID3v2 tag can be played safely on players that weren't designed for ID3v2 — because the tags lack a syncsignal, the decoder can determine that the tags don't contain audio information. The benefit of having a tag at the beginning of the file is that the software can obtain tag information even before reaching the end of the file, which is advantageous if the file is streamed. A disadvantage to having the tag at the beginning is when the tags are modified in length, the entire file needs to be re-written. ID3v2 supports Unicode so that internationalized tags can be used.

ID3v2 is often used to refer to 3 different subversions: ID3v2.2, ID3v2.3, and ID3v2.4. Many programs that claim ID3v2 support fail to mention which sub-version they actually use. It is still somewhat hard to find ID3v2.4 support in tag editors. It seems most editors can read all versions but most write in ID3v2.2 or ID3v2.3 The big problems are that they usually just don't tell what versions they are using, usually don't use the "code name" for the tag, and may not fully implement the standard correctly.

Main Features:

  1. The ID3v2 tag is a container format, just like IFF or PNG files, allowing new frames (chunks) as evolution proceeds.
  2. Residing in the beginning of the audio file makes it suitable for streaming.
  3. Has an 'unsynchronization scheme' to prevent ID3v2-incompatible players from attempting to play the tag.
  4. Maximum tag size is 256 megabytes and maximum frame size is 16 megabytes.
  5. Byte conservative and with the capability to compress data it keeps the files small.
  6. The tag supports Unicode.
  7. Isn't entirely focused on musical audio, but also other types of audio.
  8. Has several new text fields such as composer, conductor, media type, BPM, copyright message, etc. and the possibility to design your own as you see fit.
  9. Can contain lyrics as well as music-synced lyrics (karaoke) in almost any language.
  10. Is able to contain volume, balance, equalizer and reverb settings.
  11. Could be linked to CD-databases such as CDDB.
  12. Is able to contain images and just about any file you want to include.
  13. Supports enciphered information, linked information and web links.


Most important differences between the v2 versions:


v2.2 is considered deprecated, no well-known program still writes this tag version by default, except Apple's iTunes.


One of the major differences between v2.3 and v2.4 are the supported text encodings:

v2.3 supports strings encoded with ISO-8859-1 and UTF-16 Unicode.

v2.4 adds support for UTF-8 Unicode encoding.


While v2 tags are normally prepended (i.e. written at the beginning of the audio file) version 2.4 also allows tags to be appended (i.e. written at the end of the audio file). Note: appending v2.4 tags is supported by practically no application or player, so using this feature is not recommended.


Almost all programs and hardware players support v2.3, but some might not support Unicode properly, even though Unicode encoding is clearly specified in the ID3v2 standard. Even though it is still not widely supported, support for the latest tag version 2.4 has been growing recently (in 2005 and 2006). ID3v2.4 with UTF-8 encoding could be seen as the final & most flexible "incarnation" of v2 tags, thus software & hardware developers are advised to upgrade their tag support as soon as possible (note: v2.4 is actually quite an old standard, as it is from the year 2000).

See also

External links

General

es:ID3 fr:ID3 ko:ID3 ja:ID3タグ