ID3

ID3 is a metadata container most often used in conjunction with the MP3 audio file format. It allows information such as the title, artist, album, track number, and other information about the file to be stored in the file itself.

ID3 is a de facto standard for metadata in MP3 files; no standardization body was involved in its creation nor has such an organization given it a formal approval status.[1] It competes with the APE tag in this arena.

There are two unrelated versions of ID3: ID3v1 and ID3v2. In ID3v1 the metadata is stored in a 128-byte segment at the end of the file. There are variations of ID3v1 extending the specification with new fields such as v1.1's "track number" field at the expense of a slight shortening of the "comment" field.

ID3v2 is structurally very different from ID3v1, consisting of an extensible set of "frames" located at the start of the file. 83 types of frames are declared in the ID3v2.4 specification, and applications can also define their own types. There are standard frames for containing cover art, BPM, copyright and license, lyrics, and arbitrary text and URL data, as well as other things. Three versions of ID3v2 have been documented, each of which has extended the frame definitions.

Lyrics3v1[2] and Lyrics3v2[3] were tag standards implemented before ID3v2, for adding lyrics to mp3 files. The difference with ID3v2 is that Lyrics3 is always at the end of an MP3 file, before the ID3v1 tag.

ID3v1

ID3v1 Genres
Standard list
NumberGenre
00Blues
01Classic rock
02Country
03Dance
04Disco
05Funk
06Grunge
07Hip-Hop
08Jazz
09Metal
10New Age
11Oldies
12Other
13Pop
14Rhythm and Blues
15Rap
16Reggae
17Rock
18Techno
19Industrial
20Alternative
21Ska
22Death metal
23Pranks
24Soundtrack
25Euro-Techno
26Ambient
27Trip-Hop
28Vocal
29Jazz & Funk
30Fusion
31Trance
32Classical
33Instrumental
34Acid
35House
36Game
37Sound clip
38Gospel
39Noise
40Alternative Rock
41Bass
42Soul
43Punk
44Space
45Meditative
46Instrumental Pop
47Instrumental rock
48Ethnic
49Gothic
50Darkwave
51Techno-Industrial
52Electronic
53Pop-Folk
54Eurodance
55Dream
56Southern Rock
57Comedy
58Cult
59Gangsta
60Top 40
61Christian Rap
62Pop/Funk
63Jungle
64Native US
65Cabaret
66New Wave
67Psychedelic
68Rave
69Show tunes
70Trailer
71Lo-Fi
72Tribal
73Acid Punk
74Acid Jazz
75Polka
76Retro
77Musical
78Rock 'n' Roll
79Hard rock
Winamp Extended List
NumberGenre
80Folk
81Folk-Rock
82National Folk
83Swing
84Fast Fusion
85Bebop
86Latin
87Revival
88Celtic
89Bluegrass
90Avantgarde
91Gothic Rock
92Progressive Rock
93Psychedelic Rock
94Symphonic Rock
95Slow rock
96Big Band
97Chorus
98Easy Listening
99Acoustic
100Humour
101Speech
102Chanson
103Opera
104Chamber music
105Sonata
106Symphony
107Booty bass
108Primus
109Porn groove
110Satire
111Slow jam
112Club
113Tango
114Samba
115Folklore
116Ballad
117Power ballad
118Rhythmic Soul
119Freestyle
120Duet
121Punk Rock
122Drum solo
123A cappella
124Euro-House
125Dancehall
126Goa
127Drum & Bass
128Club-House
129Hardcore Techno
130Terror
131Indie
132BritPop
133Negerpunk
134Polsk Punk
135Beat
136Christian Gangsta Rap
137Heavy Metal
138Black Metal
139Crossover
140Contemporary Christian
141Christian rock
142Merengue[note 1]
143Salsa[note 1]
144Thrash Metal[note 1]
145Anime[note 1]
146Jpop[note 1]
147Synthpop[note 1]
148Abstract[note 2]
149Art Rock[note 2]
150Baroque[note 2]
151Bhangra[note 2]
152Big beat[note 2]
153Breakbeat[note 2]
154Chillout[note 2]
155Downtempo[note 2]
156Dub[note 2]
157EBM[note 2]
158Eclectic[note 2]
159Electro[note 2]
160Electroclash[note 2]
161Emo[note 2]
162Experimental[note 2]
163Garage[note 2]
164Global[note 2]
165IDM[note 2]
166Illbient[note 2]
167Industro-Goth[note 2]
168Jam Band[note 2]
169Krautrock[note 2]
170Leftfield[note 2]
171Lounge[note 2]
172Math Rock[note 2]
173New Romantic[note 2]
174Nu-Breakz[note 2]
175Post-Punk[note 2]
176Post-Rock[note 2]
177Psytrance[note 2]
178Shoegaze[note 2]
179Space Rock[note 2]
180Trop Rock[note 2]
181World Music[note 2]
182Neoclassical[note 2]
183Audiobook[note 2]
184Audio theatre[note 2]
185Neue Deutsche Welle[note 2]
186Podcast[note 2]
187Indie-Rock[note 2]
188G-Funk[note 2]
189Dubstep[note 2]
190Garage Rock[note 2]
191Psybient[note 2]

The MP3 standard did not include a method for storing file metadata. In 1996 Eric Kemp had the idea to add a small chunk of data to the audio file, thus solving the problem. The method, now known as ID3v1, quickly became the de facto standard for storing metadata in MP3s.[4]

The ID3v1 tag occupies 128 bytes, beginning with the string TAG 128 bytes from the end of the file. The tag was placed at the end of the file to maintain compatibility with older media players. If a player does not recognize the tag it would play a small burst of static instead of ignoring it. This tag allows 30 bytes each for the title, artist, album, and a "comment", four bytes for the year, and a byte to identify the genre of the song from a predefined list of 80 values (Winamp later extended this list to 148 values).

One improvement to ID3v1 was made by Michael Mutschler in 1997. Since the comment field was too small to write anything useful, he decided to trim it by two bytes and use those two bytes to store the track number. Such tags are referred to as ID3v1.1.[4]

ID3v1 and ID3v1.1[5]

Strings are either space- or zero-padded. Unset string entries are filled using an empty string. ID3v1 is 128 bytes long.[note 3]

Field Length Description
header 3 "TAG"
title 30 30 characters of the title
artist 30 30 characters of the artist name
album 30 30 characters of the album name
year 4 A four-digit year
comment 28[note 4] or 30 The comment.
zero-byte[note 4] 1 If a track number is stored, this byte contains a binary 0.
track[note 4] 1 The number of the track on the album, or 0. Invalid, if previous byte is not a binary 0.
genre 1 Index in a list of genres, or 255

ID3v1 pre-defines a set of genres denoted by numerical codes. Winamp extended the list by adding more genres in its own music player, which were later adopted by others.[note 5] However, support for the extended Winamp list is not universal. In some cases, only the genres up to 125 are supported.[6][7]

Enhanced TAG[8]

The Enhanced tag is an extra data block before an ID3v1 tag, which extends the title, artist and album fields to 60 bytes each, offers a freetext genre, a one-byte (values 0–5) speed and the start and stop time of the music in the MP3 file, e.g., for fading in. If none of the fields are used, it will be automatically omitted.

Some programs supporting ID3v1 tags can read the extended tag, but writing may leave stale values in the extended block. The extended block is not an official standard and had low adoption. The Enhanced tag is sometimes referred to as the "extended" tag.

The Enhanced tag is 227 bytes long, and placed before the ID3v1 tag.

Field Length Description
header 4 "TAG+"
title 60 60 characters of the title
artist 60 60 characters of the artist name
album 60 60 characters of the album name
speed 1 0: unset
1: slow
2: medium
3: fast
4: hardcore
genre 30 A free-text field for the genre
start-time 6 the start of the music as mmm:ss
end-time 6 the end of the music as mmm:ss

ID3v1.2[9]

ID3v1.2 made small improvements to ID3v1.1 without breaking compatibility with it.[9]

ID3v2

In 1998, a new specification called ID3v2 was created by multiple contributors.[10] Although it bears the name ID3, its structure is very different from ID3v1.

ID3v2 tags are of variable size, and usually occur at the start of the file, which aids streaming media as the metadata is essentially available as soon as the file starts streaming instead of requiring the entire file to be read first as is the case with ID3v1. ID3v2 tags consist of a number of frames, each of which contains a piece of metadata. For example, the TIT2 frame contains the title, and the WOAR frame contains the URL of the artist's website. Frames can be up to 16 MB in length, while total tag size is limited to 256MB. The internationalization problem was solved by allowing the encoding of strings not only in ISO-8859-1, but also in Unicode. Textual frames are marked with an encoding byte.[11]

There are 83 types of frames declared in the ID3v2.4 specification,[12] and applications can also define their own types. There are standard frames for containing cover art, BPM, copyright and license, lyrics, and arbitrary text and URL data, as well as other things.

There are three versions of ID3v2:

ID3v2.2 was the first public version of ID3v2. It used three character frame identifiers rather than four (TT2 for the title instead of TIT2). Most of the common v2.3 and v2.4 frames have direct analogues in v2.2. It is now considered obsolete.[13]

ID3v2.3 expanded the frame identifier to four characters, and added a number of frames. This is the most widely used version of ID3v2 tags, and is widely supported by Windows Explorer and Windows Media Player.[14]

ID3v2.4 was published on November 1, 2000. It allows text frames to contain multiple values, separated with a null byte. Textual data to be encoded in UTF-8 rather than UTF-16. Another new feature allows the addition of a tag to the end of the file before other tags (like ID3v1).[15]

ID3v2 chapters

The ID3v2 Chapter Addendum was published in December 2005. It allows users to jump easily to specific locations or chapters within an audio file and can provide a synchronized slide show of images and titles during playback. Typical use-cases include Enhanced podcasts and it can be used in ID3v2.3 or ID3v2.4 tags.[16]

ID3v2 embedded image extension

The metadata can contain an "Attached Picture" ID3 frame ('PIC' or 'APIC') containing an image. A field in this frame can indicate the picture type.[17]

Editing ID3 tags

ID3 tags may be edited in a variety of ways. On some platforms the file's properties may be edited by viewing extended information in the file manager. Additionally most audio players allow editing single or groups of files. Editing groups of files is often referred to as "batch tagging". There are also specialized applications, called taggers, which concentrate specifically on editing the tags and related tasks.

Non-MP3 implementation and alternatives

ID3 tags were designed with MP3 in mind, so they would work without problems with MP3 and MP3Pro files. However, the tagsets are an independent part of the MP3 file and can be used elsewhere. In practice, the only other formats that widely use ID3v2 tags are AIFF and WAV. In AIFF, the tag is stored inside an IFF chunk named "ID3". Windows media ASF files (WMA, WMV) have their own tagging formats but also support ID3 Tags embedded as attributes.[18]

MP4 also allows the embedding of an ID3 tag.[19]

See also

Notes

  1. Genres 142–147 were added in the 1 June 1998 release of Winamp 1.91
  2. Genres 148–191 were added in Winamp 5.6 (30 November 2010)
  3. For an implementation of ID3v1 in Python, see Dive Into Python, Chapter 5. Objects and Object-Orientation Archived 2013-08-31 at the Wayback Machine
  4. The track number is stored in the last two bytes of the comment field. If the comment is 29 or 30 characters long, no track number can be stored.
  5. Some are of dubious value: e.g. "Primus" is one specific band, not a genre, and "Negerpunk" appears to be a racist joke in Swedish

References

  1. "History – ID3.org". Archived from the original on 2010-12-24. Retrieved 2011-01-22.
  2. "Lyrics3 – ID3.org". id3.org. Retrieved 2018-04-13.
  3. "Lyrics3v2 – ID3.org". id3.org. Retrieved 2018-04-13.
  4. Practical Common Lisp, p. 335.
  5. "ID3v1 – ID3.org". id3.org. Retrieved 2018-04-12.
  6. "ID3 Tag Genre ID List". Archived from the original on 15 March 2015.
  7. "ID3 Genre List".
  8. "MP3 TAG & Enhanced TAG description (english)". 2012-03-10. Archived from the original on 2012-03-10. Retrieved 2018-04-12.
  9. "ID3v1.2".
  10. "Contributors – ID3.org". Archived from the original on 2016-12-03. Retrieved 2012-04-22.
  11. "id3v2-00 – ID3.org".
  12. "ID3v2.4.0 Native Frames". Retrieved 2012-12-27.
  13. Nilsson, Martin. "ID3 Developer Information". ID3.org. Retrieved 9 April 2011.
  14. "ID3 tag version 2.3.0".
  15. "ID3 tag version 2.4.0 – Native Frames".
  16. Newell, C. (2 December 2005). "ID3v2 Chapter Frame Addendum". ID3.org. Retrieved 2008-02-06.{{cite web}}: CS1 maint: url-status (link)
  17. "id3v2.3.0 – ID3.org".
  18. "Windows Media Developer Center: ID3 Tag Support". Microsoft Developer Network. Microsoft. Retrieved 2010-03-24.
  19. "The 'MP4' Registration Authority". Archived from the original on 2018-03-09. Retrieved 2007-10-18.
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.