summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-08-19 14:11:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-08-19 14:11:40 +0000
commit21febdd6eb7b9c2318e713a2e9104a366f45d76f (patch)
tree1901012d29fdffa7ce3db00aa4f58454d781b23f
parent5e5f1e247b8f8596a8651f9119ec769d3e84c428 (diff)
downloadrockbox-21febdd6eb7b9c2318e713a2e9104a366f45d76f.tar.gz
rockbox-21febdd6eb7b9c2318e713a2e9104a366f45d76f.zip
original copied from http://www.dv.co.yu/mpgscript/mpeghdr.htm
The document explicitly allows redistribution in its unaltered form. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1804 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--www/docs/mpeghdr.html769
1 files changed, 769 insertions, 0 deletions
diff --git a/www/docs/mpeghdr.html b/www/docs/mpeghdr.html
new file mode 100644
index 0000000000..31f0b6e577
--- /dev/null
+++ b/www/docs/mpeghdr.html
@@ -0,0 +1,769 @@
1<HTML>
2<HEAD>
3<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
4<META NAME="AUTHOR" CONTENT="Predrag Supurovic, broker@dv.co.yu">
5<META NAME="KEYWORDS" CONTENT="mpeg, mp3, header, coding, programming,
6structure, frame, audio, music, file, format, layer I, layer II, layer III, layer 1, layer 2, layer 3, ISO/IEC 11172-3, ISO/IEC 13818-3">
7<META NAME="GENERATOR" CONTENT="handmade">
8<TITLE>MPEG AUDIO FRAME HEADER</TITLE>
9</HEAD>
10
11<BODY BGCOLOR="#FFFFFF">
12
13<P>This is a brief and informal document targeted to those who want to deal
14with the MPEG format. If you are one of them, you probably already know what
15is MPEG audio. If not, jump to <A
16HREF="http://www.mp3.com/">http://www.mp3.com/</A> or <A
17HREF="http://www.layer3.org/">http://www.layer3.org/</A> where you will find
18more details and also more links. This document does not cover compression and
19decompression algorithm.
20
21<P>NOTE: You cannot just search the Internet and find the MPEG audio specs. It
22is copyrighted and you will have to pay quite a bit to get the Paper. That's why
23I made this. Information I got is gathered from the Internet, and mostly originate
24from program sources I found available for free. Despite my intention to always
25specify the information sources, I am not able to do it this time. Sorry, I did
26not maintain the list. :-(
27<P><B>These are not a decoding specs, it just informs you how to read the </B><A
28HREF="#MPEG HEADER"><B>MPEG headers</B></A><B> and the </B> <A HREF="#MPEGTAG"
29TARGET=""><B>MPEG TAG</B></A><B>. MPEG Version 1, 2 and 2.5 and Layer I, II
30and III are supported, the MP3 TAG (ID3v1 and ID3v1.1) also.</B>. Those of you
31who use Delphi may find <A
32HREF="http://www.dv.co.yu/mpgscript/mpgtools.htm">MPGTools Delphi unit (freeware source)</A>
33useful, it is where I implemented this stuff.
34
35<P>I do not claim information presented in this document is accurate. At first
36I just gathered it from different sources. It was not an easy task but I needed
37it. Later, I received lots of comments as feedback when I published this document.
38I think this last release is highly accurate due to comments and corrections I
39received.
40<P>This document is last updated on December 22, 1999.
41<P ALIGN="center"><FONT SIZE="5"><B>MPEG Audio Compression Basics</B></FONT>
42
43<P>This is one of many methods to compress audio in digital form trying to consume
44as little space as possible but keep audio quality as good as possible. MPEG compression
45showed up as one of the best achievements in this area.
46<P>This is a lossy compression, which means, you will certainly loose some audio
47information when you use this compression methods. But, this lost can hardly be
48noticed because the compression method tries to control it. By using several quite
49complicate and demanding mathematical algorithms it will only loose those parts
50of sound that are hard to be heard even in the original form. This leaves more
51space for information that is important. This way you can compress audio up to
5212 times (you may choose compression ratio) which is really significant. Due to
53its quality MPEG audio became very popular.
54<P>MPEG standards MPEG-1, MPEG-2 and MPEG-4 are known but this document covers
55first two of them. There is an unofficial MPEG-2.5 which is rarely used. It is
56also covered.
57<P><B>MPEG-1 audio</B> (described in ISO/IEC 11172-3) describes three Layers of audio coding with the following properties:
58<LI>one or two audio channels
59<LI>sample rate 32kHz, 44.1kHz or 48kHz.
60<LI>bit rates from 32kbps up to 448kbps<BR>
61Each layer has its merits.
62
63<P><B>MPEG-2 audio</B> (described in ISO/IEC 13818-3) has two extensions to MPEG-1, usually referred as MPEG-2/LSF and MPEG-2/Multichannel.
64<P>MPEG-2/LSF has the following properties:
65<LI>one or two audio channels
66<LI>sample rates half those of MPEG-1
67<LI>bit rates from 8 kbps up to 256kbps.
68
69<P>MPEG-2/Multichannel has the following properties:
70<LI>up to 5 full range audio channels and an LFE-channel (Low Frequency
71Enhancement <> subwoofer!)
72<LI>sample rates the same as those of MPEG-1
73<LI>highest possible bitrate goes up to about 1Mbps for 5.1
74
75
76<P ALIGN="center"><A NAME="MPEG HEADER"></A><FONT SIZE="5"><B>MPEG Audio Frame
77Header</B></FONT>
78
79<P>An MPEG audio file is built up from smaller parts called frames. Generally,
80frames are independent items. Each frame has its own header and audio informations.
81There is no file header. Therefore, you can cut any part of MPEG file and play
82it correctly (this should be done on frame boundaries but most applications will
83handle incorrect headers). For Layer III, this is not 100% correct. Due to internal
84data organization in MPEG version 1 Layer III files, frames are often dependent
85of each other and they cannot be cut off just like that.
86<P>When you want to read info about an MPEG file, it is usually enough to find
87the first frame, read its header and assume that the other frames are the same
88This may not be always the case. Variable bitrate MPEG files may use so called
89bitrate switching, which means that bitrate changes according to the content of
90each frame. This way lower bitrates may be used in frames where it will not reduce
91sound quality. This allows making better compression while keeping high quality
92of sound.
93<P>The frame header is constituted by the very first four bytes (32bits) in a
94frame. The first eleven bits (or first twelve bits, see below about frame sync)
95of a frame header are always set and they are called &quot;frame sync&quot;. Therefore,
96you can search through the file for the first occurence of frame sync (meaning
97that you have to find a byte with a value of 255, and followed by a byte with
98its three (or four) most significant bits set). Then you read the whole header
99and check if the values are correct. You will see in the following table the exact
100meaning of each bit in the header, and which values may be checked for validity.
101Each value that is specified as reserved, invalid, bad, or not allowed should
102indicate an invalid header. Remember, this is not enough, frame sync can be easily
103(and very frequently) found in any binary file. Also it is likely that MPEG file
104contains garbage on it's beginning which also may contain false sync. Thus, you
105have to check two or more frames in a row to assure you are really dealing with
106MPEG audio file.
107<P>Frames may have a CRC check. The CRC is 16 bits long
108and, if it exists, it follows the frame header. After the CRC comes the audio
109data. You may calculate the length of the frame and use it if you need to read
110other headers too or just want to calculate the CRC of the frame, to compare
111it with the one you read from the file. This is actually a very good method to
112check the MPEG header validity.
113
114<P>Here is &quot;graphical&quot; presentation of the header content. Characters
115from A to M are used to indicate different fields. In the table, you can see
116details about the content of each field.
117<P ALIGN="center">
118<B><TT><FONT SIZE="5">
119AAAAAAAA AAABBCCD EEEEFFGH IIJJKLMM
120</FONT>
121</TT></B>
122
123<P><CENTER>
124
125<TABLE BORDER="0" CELLSPACING=7>
126<TR VALIGN=TOP BGCOLOR="#E2E2E2">
127<TD>Sign</TD><TD>Length<BR>(bits)</TD><TD>Position<BR>(bits)</TD><TD>Description</TD>
128</TR>
129
130<TR VALIGN=TOP>
131<TD>A</TD><TD>11</TD><TD>(31-21)</TD><TD>Frame sync (all bits set)</TD>
132</TR>
133
134<TR VALIGN=TOP>
135<TD>B</TD><TD>2</TD><TD>(20,19)</TD><TD>MPEG Audio version ID<BR>
13600 - MPEG Version 2.5<BR>01 - reserved<BR>10 - MPEG Version 2 (ISO/IEC 13818-3)<BR>11 - MPEG Version 1 (ISO/IEC 11172-3)
137<P>Note: MPEG Version 2.5 is not official standard. Bit No 20 in frame header
138is used to indicate version 2.5. Applications that do not support this MPEG version
139expect this bit always to be set, meaning that frame sync (A) is twelve bits long,
140not eleve as stated here. Accordingly, B is one bit long (represents only bit
141No 19). I recommend using methodology presented here, since this allows you to
142distinguish all three versions and keep full compatibility.
143</TD>
144</TR>
145
146<TR VALIGN=TOP><TD>C</TD><TD>2</TD><TD>(18,17)</TD>
147<TD>Layer description<BR>
14800 - reserved<BR>
14901 - Layer III<BR>
15010 - Layer II<BR>
15111 - Layer I</TD>
152</TR>
153
154<TR VALIGN=TOP>
155<TD>D</TD><TD>1</TD><TD>(16)</TD>
156<TD>Protection bit<BR>
1570 - Protected by CRC (16bit crc follows header)<BR>
1581 - Not protected</TD>
159</TR>
160<TR VALIGN=TOP><TD>E</TD><TD>4</TD><TD>(15,12)</TD><TD>Bitrate index<BR>
161<TABLE BORDER="1" CELLSPACING="0" CELLPADING="0">
162<TR><TD>bits</TD><TD>V1,L1</TD><TD>V1,L2</TD><TD>V1,L3</TD><TD>V2,L1</TD><TD>V2, L2 &amp; L3</TD></TR>
163<TR><TD>0000</TD><TD>free</TD><TD>free</TD><TD>free</TD><TD>free</TD><TD>free</TD></TR>
164<TR><TD>0001</TD><TD>32</TD><TD>32</TD><TD>32</TD><TD>32</TD><TD>8</TD></TR>
165<TR><TD>0010</TD><TD>64</TD><TD>48</TD><TD>40</TD><TD>48</TD><TD>16</TD></TR>
166<TR><TD>0011</TD><TD>96</TD><TD>56</TD><TD>48</TD><TD>56</TD><TD>24</TD></TR>
167<TR><TD>0100</TD><TD>128</TD><TD>64</TD><TD>56</TD><TD>64</TD><TD>32</TD></TR>
168<TR><TD>0101</TD><TD>160</TD><TD>80</TD><TD>64</TD><TD>80</TD><TD>40</TD></TR>
169<TR><TD>0110</TD><TD>192</TD><TD>96</TD><TD>80</TD><TD>96</TD><TD>48</TD></TR>
170<TR><TD>0111</TD><TD>224</TD><TD>112</TD><TD>96</TD><TD>112</TD><TD>56</TD></TR>
171<TR><TD>1000</TD><TD>256</TD><TD>128</TD><TD>112</TD><TD>128</TD><TD>64</TD></TR>
172<TR><TD>1001</TD><TD>288</TD><TD>160</TD><TD>128</TD><TD>144</TD><TD>80</TD></TR>
173<TR><TD>1010</TD><TD>320</TD><TD>192</TD><TD>160</TD><TD>160</TD><TD>96</TD></TR>
174<TR><TD>1011</TD><TD>352</TD><TD>224</TD><TD>192</TD><TD>176</TD><TD>112</TD></TR>
175<TR><TD>1100</TD><TD>384</TD><TD>256</TD><TD>224</TD><TD>192</TD><TD>128</TD></TR>
176<TR><TD>1101</TD><TD>416</TD><TD>320</TD><TD>256</TD><TD>224</TD><TD>144</TD></TR>
177<TR><TD>1110</TD><TD>448</TD><TD>384</TD><TD>320</TD><TD>256</TD><TD>160</TD></TR>
178<TR><TD>1111</TD><TD>bad</TD><TD>bad</TD><TD>bad</TD><TD>bad</TD><TD>bad</TD></TR>
179</TABLE>
180<P>
181NOTES: All values are in kbps<BR>
182V1 - MPEG Version 1<BR>
183V2 - MPEG Version 2 and Version 2.5<BR>
184L1 - Layer I<BR>
185L2 - Layer II<BR>
186L3 - Layer III<BR>
187&quot;free&quot; means free format. If the correct fixed bitrate (such files cannot
188use variable bitrate) is different than those presented in upper table it must
189be determined by the application. This may be implemented only for internal purposes
190since third party applications have no means to find out correct bitrate. Howewer,
191this is not impossible to do but demands lot's of efforts.<BR>
192&quot;bad&quot; means that this is not an allowed value
193
194<P>MPEG files may have variable bitrate (VBR). This means that bitrate in the file may change. I have learned about two used methods:
195<LI>bitrate switching. Each frame may be created with different bitrate. It may be used in all layers. Layer III decoders must support this method. Layer I & II decoders may support it.
196<LI>bit reservoir. Bitrate may be borrowed (within limits) from previous frames
197in order to provide more bits to demanding parts of the input signal. This causes,
198however, that the frames are no longer independent, which means you should not
199cut this files. This is supported only in Layer III.
200<P>More about VBR you may find on <A HREF="http://www.xingtech.com/">Xing Tech
201site</A>
202<P>For Layer II there are some combinations of bitrate and mode which are not
203allowed. Here is a list of allowed combinations.
204<TABLE BORDER=1 CELLSPACING=0>
205<TR>
206<TD>bitrate</TD>
207<TD>allowed modes</TD>
208</TR>
209<TR>
210<TD>free</TD>
211<TD>all</TD>
212</TR>
213<TR>
214<TD>32</TD>
215<TD>single channel</TD>
216</TR>
217<TR>
218<TD>48</TD>
219<TD>single channel</TD>
220</TR>
221<TR>
222<TD>56</TD>
223<TD>single channel</TD>
224</TR>
225<TR>
226<TD>64</TD>
227<TD>all</TD>
228</TR>
229<TR>
230<TD>80</TD>
231<TD>single channel</TD>
232</TR>
233<TR>
234<TD>96</TD>
235<TD>all</TD>
236</TR>
237<TR>
238<TD>112</TD>
239<TD>all</TD>
240</TR>
241<TR>
242<TD>128</TD>
243<TD>all</TD>
244</TR>
245<TR>
246<TD>160</TD>
247<TD>all</TD>
248</TR>
249<TR>
250<TD>192</TD>
251<TD>all</TD>
252</TR>
253<TR>
254<TD>224</TD>
255<TD>stereo, intensity stereo, dual channel</TD>
256</TR>
257<TR>
258<TD>256</TD>
259<TD>stereo, intensity stereo, dual channel</TD>
260</TR>
261<TR>
262<TD>320</TD>
263<TD>stereo, intensity stereo, dual channel</TD>
264</TR>
265<TR>
266<TD>384</TD>
267<TD>stereo, intensity stereo, dual channel</TD>
268</TR>
269</TABLE>
270</TD></TR>
271<TR VALIGN=TOP>
272<TD>F</TD><TD>2</TD><TD>(11,10)</TD>
273<TD>Sampling rate frequency index (values are in Hz)
274<TABLE BORDER="1" CELLSPACING="0" CELLPADING="0">
275<TR><TD>bits</TD><TD>MPEG1</TD><TD>MPEG2</TD><TD>MPEG2.5</TD></TR>
276<TR><TD>00</TD><TD>44100</TD><TD>22050</TD><TD>11025</TD></TR>
277<TR><TD>01</TD><TD>48000</TD><TD>24000</TD><TD>12000</TD></TR>
278<TR><TD>10</TD><TD>32000</TD><TD>16000</TD><TD>8000</TD></TR>
279<TR><TD>11</TD><TD>reserv.</TD><TD>reserv.</TD><TD>reserv.</TD></TR>
280</TABLE>
281</TD></TR>
282
283<TR VALIGN=TOP>
284<TD>G</TD><TD>1</TD><TD>(9)</TD>
285<TD>Padding bit<BR>
2860 - frame is not padded<BR>
2871 - frame is padded with one extra slot<BR>
288
289Padding is used to fit the bit rates exactly. For an example: 128k 44.1kHz layer II uses a lot of 418 bytes and some of 417 bytes long frames to get the exact 128k bitrate. For Layer I slot is 32 bits long, for Layer II and Layer III slot is 8 bits long.
290
291
292
293<P><B>How to calculate frame length</B>
294
295<P>First, let's distinguish two terms frame size and frame length. Frame size
296is the number of samples contained in a frame. It is constant and always 384 samples
297for Layer I and 1152 samples for Layer II and Layer III. Frame length is length
298of a frame when compressed. It is calculated in slots. One slot is 4 bytes long
299for Layer I, and one byte long for Layer II and Layer III. When you are reading
300MPEG file you must calculate this to be able to find each consecutive frame. Remember,
301frame length may change from frame to frame due to padding or bitrate switching.
302<P>Read the BitRate, SampleRate and Padding of the frame header.
303<P>For Layer I files us this formula:
304<P ALIGN=CENTER>FrameLengthInBytes = (12 * BitRate / SampleRate + Padding) * 4
305<P ALIGN=LEFT>For Layer II & III files use this formula:
306<P ALIGN=CENTER>FrameLengthInBytes = 144 * BitRate / SampleRate + Padding
307<P>Example:<BR>
308Layer III, BitRate=128000, SampleRate=441000, Padding=0<BR>
309&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ==&gt;&nbsp; FrameSize=417 bytes
310</TD></TR>
311
312<TR VALIGN=TOP><TD>H</TD><TD>1</TD><TD>(8)</TD>
313<TD>Private bit. It may be freely used for specific needs of an application, i.e. if it has to trigger some application specific events.</TD>
314</TR>
315
316<TR VALIGN=TOP><TD>I</TD><TD>2</TD><TD>(7,6)</TD>
317<TD>Channel Mode<BR>
31800 - Stereo<BR>
31901 - Joint stereo (Stereo)<BR>
32010 - Dual channel (Stereo)<BR>
32111 - Single channel (Mono)</TD>
322</TR>
323
324<TR VALIGN=TOP><TD>J</TD><TD>2</TD><TD>(5,4)</TD>
325<TD>Mode extension (Only if Joint stereo)
326<P>Mode extension is used to join informations that are of no use for stereo effect, thus reducing needed resources. These bits are dynamically determined by an encoder in Joint stereo mode.
327
328<P>Complete frequency range of MPEG file is divided in subbands There are 32 subbands. For Layer I & II these two bits determine frequency range (bands) where intensity stereo is applied. For Layer III these two bits determine which type of joint stereo
329
330is used (intensity stereo or m/s stereo). Frequency range is determined within decompression algorythm.
331
332<TABLE BORDER="0" CELLSPACING="2" CELLPADDING="0">
333<TR><TD ALIGN=CENTER>Layer I and II</TD><TD ALIGN=CENTER>Layer III</TD></TR>
334<TR VALIGN=TOP><TD>
335<TABLE BORDER="1" CELLSPACING="0" CELLPADING="0">
336<TR><TD>value</TD><TD>Layer I &amp; II</TD></TR>
337<TR><TD>00</TD><TD>bands 4 to 31</TD></TR>
338<TR><TD>01</TD><TD>bands 8 to 31</TD></TR>
339<TR><TD>10</TD><TD>bands 12 to 31</TD></TR>
340<TR><TD>11</TD><TD>bands 16 to 31</TD></TR></TABLE>
341</TD>
342
343<TD>
344<TABLE BORDER="1" CELLSPACING="0" CELLPADING="0" WIDTH="212">
345<TR ALIGN=CENTER><TD>Intensity stereo</TD><TD>MS stereo</TD></TR>
346<TR ALIGN=CENTER><TD>off</TD><TD>off</TD></TR>
347<TR ALIGN=CENTER><TD>on</TD><TD>off</TD></TR>
348<TR ALIGN=CENTER><TD>off</TD><TD>on</TD></TR>
349<TR ALIGN=CENTER><TD>on</TD><TD>on</TD></TR></TABLE>
350</TD></TR></TABLE>
351</TD></TR>
352
353<TR VALIGN=TOP><TD>K</TD><TD>1</TD><TD>(3)</TD>
354<TD>Copyright<BR>
3550 - Audio is not copyrighted<BR>
3561 - Audio is copyrighted</TD>
357</TR>
358
359<TR VALIGN=TOP><TD>L</TD><TD>1</TD><TD>(2)</TD>
360<TD>Original<BR>
3610 - Copy of original media<BR>
3621 - Original media</TD>
363</TR>
364
365<TR VALIGN=TOP>
366<TD>M</TD><TD>2</TD><TD>(1,0)</TD>
367<TD>Emphasis<BR>
36800 - none<BR>
36901 - 50/15 ms<BR>
37010 - reserved<BR>
37111 - CCIT J.17</TD>
372</TR></TABLE>
373<P>&nbsp;</P></CENTER>
374
375<P ALIGN="center"><A NAME="MPEGTAG"></A><FONT SIZE="5"><B>MPEG Audio Tag ID3v1</B></FONT>
376<P>The TAG is used to describe the MPEG Audio file. It contains information
377about artist, title, album, publishing year and genre. There is some extra
378space for comments. It is exactly 128 bytes long and is located at very end of
379the audio data. You can get it by reading the last 128 bytes of the MPEG audio
380file.
381
382<P ALIGN="center"><FONT SIZE="5"><B><TT>
383AAABBBBB BBBBBBBB BBBBBBBB BBBBBBBB<BR>
384BCCCCCCC CCCCCCCC CCCCCCCC CCCCCCCD<BR>
385DDDDDDDD DDDDDDDD DDDDDDDD DDDDDEEE<BR>
386EFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFG<BR>
387</TT></B></FONT>
388
389<CENTER>
390
391<TABLE BORDER="0" WIDTH="500">
392<TR VALIGN=TOP BGCOLOR=#E2E2E2>
393<TD>Sign</TD><TD>Length<BR>(bytes)</TD><TD>Position<BR>
394(bytes)</TD><TD>Description</TD></TR>
395<TR VALIGN=TOP><TD>A</TD><TD>3</TD><TD>(0-2)</TD>
396<TD>Tag identification. Must contain 'TAG' if tag exists and is
397correct.</TD>
398</TR>
399<TR><TD>B</TD><TD>30</TD><TD>(3-32)</TD><TD>Title</TD></TR>
400<TR><TD>C</TD><TD>30</TD><TD>(33-62)</TD><TD>Artist</TD></TR>
401<TR><TD>D</TD><TD>30</TD><TD>(63-92)</TD><TD>Album</TD></TR>
402<TR><TD>E</TD><TD>4</TD><TD>(93-96)</TD><TD>Year</TD></TR>
403<TR><TD>F</TD><TD>30</TD><TD>(97-126)</TD><TD>Comment</TD></TR>
404<TR><TD>G</TD><TD>1</TD><TD>(127)</TD><TD>Genre</TD></TR></TABLE>
405</CENTER>
406
407<P>The specification asks for all fields to be padded with null character
408(ASCII 0). However, not all applications respect this (an example is WinAmp
409which pads fields with &lt;space&gt;, ASCII 32).
410
411<P>There is a small change proposed in <B>ID3v1.1</B> structure. The last byte
412of the Comment field may be used to specify the track number of a song in an
413album. It should contain a null character (ASCII 0) if the information is
414unknown.
415
416<P>Genre is a numeric field which may have one of the following values:
417
418<CENTER>
419<TABLE BORDER="0" WIDTH="90%">
420<TR>
421<TD WIDTH="1%">0</TD>
422<TD WIDTH="20%">'Blues'</TD>
423<TD WIDTH="1%">20</TD>
424<TD WIDTH="20%">'Alternative'</TD>
425<TD WIDTH="1%">40</TD>
426<TD WIDTH="20%">'AlternRock'</TD>
427<TD WIDTH="1%">60</TD>
428<TD WIDTH="20%">'Top 40'</TD>
429</TR>
430<TR>
431<TD>1</TD>
432<TD>'Classic Rock'</TD>
433<TD>21</TD>
434<TD>'Ska'</TD>
435<TD>41</TD>
436<TD>'Bass'</TD>
437<TD>61</TD>
438<TD>'Christian Rap'</TD>
439</TR>
440<TR>
441<TD>2</TD>
442<TD>'Country'</TD>
443<TD>22</TD>
444<TD>'Death Metal'</TD>
445<TD>42</TD>
446<TD>'Soul'</TD>
447<TD>62</TD>
448<TD>'Pop/Funk'</TD>
449</TR>
450<TR>
451<TD>3</TD>
452<TD>'Dance'</TD>
453<TD>23</TD>
454<TD>'Pranks'</TD>
455<TD>43</TD>
456<TD>'Punk'</TD>
457<TD>63</TD>
458<TD>'Jungle'</TD>
459</TR>
460<TR>
461<TD>4</TD>
462<TD>'Disco'</TD>
463<TD>24</TD>
464<TD>'Soundtrack'</TD>
465<TD>44</TD>
466<TD>'Space'</TD>
467<TD>64</TD>
468<TD>'Native American'</TD>
469</TR>
470<TR>
471<TD>5</TD>
472<TD>'Funk'</TD>
473<TD>25</TD>
474<TD>'Euro-Techno'</TD>
475<TD>45</TD>
476<TD>'Meditative'</TD>
477<TD>65</TD>
478<TD>'Cabaret'</TD>
479</TR>
480<TR>
481<TD>6</TD>
482<TD>'Grunge'</TD>
483<TD>26</TD>
484<TD>'Ambient'</TD>
485<TD>46</TD>
486<TD>'Instrumental Pop'</TD>
487<TD>66</TD>
488<TD>'New Wave'</TD>
489</TR>
490<TR>
491<TD>7</TD>
492<TD>'Hip-Hop'</TD>
493<TD>27</TD>
494<TD>'Trip-Hop'</TD>
495<TD>47</TD>
496<TD>'Instrumental Rock'</TD>
497<TD>67</TD>
498<TD>'Psychadelic'</TD>
499</TR>
500<TR>
501<TD>8</TD>
502<TD>'Jazz'</TD>
503<TD>28</TD>
504<TD>'Vocal'</TD>
505<TD>48</TD>
506<TD>'Ethnic'</TD>
507<TD>68</TD>
508<TD>'Rave'</TD>
509</TR>
510<TR>
511<TD>9</TD>
512<TD>'Metal'</TD>
513<TD>29</TD>
514<TD>'Jazz+Funk'</TD>
515<TD>49</TD>
516<TD>'Gothic'</TD>
517<TD>69</TD>
518<TD>'Showtunes'</TD>
519</TR>
520<TR>
521<TD>10</TD>
522<TD>'New Age'</TD>
523<TD>30</TD>
524<TD>'Fusion'</TD>
525<TD>50</TD>
526<TD>'Darkwave'</TD>
527<TD>70</TD>
528<TD>'Trailer'</TD>
529</TR>
530<TR>
531<TD>11</TD>
532<TD>'Oldies'</TD>
533<TD>31</TD>
534<TD>'Trance'</TD>
535<TD>51</TD>
536<TD>'Techno-Industrial'</TD>
537<TD>71</TD>
538<TD>'Lo-Fi'</TD>
539</TR>
540<TR>
541<TD>12</TD>
542<TD>'Other'</TD>
543<TD>32</TD>
544<TD>'Classical'</TD>
545<TD>52</TD>
546<TD>'Electronic'</TD>
547<TD>72</TD>
548<TD>'Tribal'</TD>
549</TR>
550<TR>
551<TD>13</TD>
552<TD>'Pop'</TD>
553<TD>33</TD>
554<TD>'Instrumental'</TD>
555<TD>53</TD>
556<TD>'Pop-Folk'</TD>
557<TD>73</TD>
558<TD>'Acid Punk'</TD>
559</TR>
560<TR>
561<TD>14</TD>
562<TD>'R&amp;B'</TD>
563<TD>34</TD>
564<TD>'Acid'</TD>
565<TD>54</TD>
566<TD>'Eurodance'</TD>
567<TD>74</TD>
568<TD>'Acid Jazz'</TD>
569</TR>
570<TR>
571<TD>15</TD>
572<TD>'Rap'</TD>
573<TD>35</TD>
574<TD>'House'</TD>
575<TD>55</TD>
576<TD>'Dream'</TD>
577<TD>75</TD>
578<TD>'Polka'</TD>
579</TR>
580<TR>
581<TD>16</TD>
582<TD>'Reggae'</TD>
583<TD>36</TD>
584<TD>'Game'</TD>
585<TD>56</TD>
586<TD>'Southern Rock'</TD>
587<TD>76</TD>
588<TD>'Retro'</TD>
589</TR>
590<TR>
591<TD>17</TD>
592<TD>'Rock'</TD>
593<TD>37</TD>
594<TD>'Sound Clip'</TD>
595<TD>57</TD>
596<TD>'Comedy'</TD>
597<TD>77</TD>
598<TD>'Musical'</TD>
599</TR>
600<TR>
601<TD>18</TD>
602<TD>'Techno'</TD>
603<TD>38</TD>
604<TD>'Gospel'</TD>
605<TD>58</TD>
606<TD>'Cult'</TD>
607<TD>78</TD>
608<TD>'Rock &amp; Roll'</TD>
609</TR>
610<TR>
611<TD>19</TD>
612<TD>'Industrial'</TD>
613<TD>39</TD>
614<TD>'Noise'</TD>
615<TD>59</TD>
616<TD>'Gangsta'</TD>
617<TD>79</TD>
618<TD>'Hard Rock'</TD>
619</TR>
620</TABLE>
621<DIV ALIGN="LEFT"><BR>
622WinAmp expanded this table with next codes: </DIV>
623<TABLE BORDER="0" WIDTH="90%">
624<TR>
625<TD WIDTH="1%">80</TD>
626<TD WIDTH="20%">'Folk'</TD>
627<TD>92</TD>
628<TD>'Progressive Rock'</TD>
629<TD>104</TD>
630<TD>'Chamber Music'</TD>
631<TD>116</TD>
632<TD>'Ballad'</TD>
633</TR>
634<TR>
635<TD>81</TD>
636<TD>'Folk-Rock'</TD>
637<TD WIDTH="1%">93</TD>
638<TD WIDTH="20%">'Psychedelic Rock'</TD>
639<TD>105</TD>
640<TD>'Sonata'</TD>
641<TD>117</TD>
642<TD>'Poweer Ballad'</TD>
643</TR>
644<TR>
645<TD>82</TD>
646<TD>'National Folk'</TD>
647<TD>94</TD>
648<TD>'Symphonic Rock'</TD>
649<TD WIDTH="1%">106</TD>
650<TD WIDTH="20%">'Symphony'</TD>
651<TD>118</TD>
652<TD>'Rhytmic Soul'</TD>
653</TR>
654<TR>
655<TD>83</TD>
656<TD>'Swing'</TD>
657<TD>95</TD>
658<TD>'Slow Rock'</TD>
659<TD>107</TD>
660<TD>'Booty Brass'</TD>
661<TD WIDTH="1%">119</TD>
662<TD WIDTH="20%">'Freestyle'</TD>
663</TR>
664<TR>
665<TD>84</TD>
666<TD>'Fast Fusion'</TD>
667<TD>96</TD>
668<TD>'Big Band'</TD>
669<TD>108</TD>
670<TD>'Primus'</TD>
671<TD>120</TD>
672<TD>'Duet'</TD>
673</TR>
674<TR>
675<TD>85</TD>
676<TD>'Bebob'</TD>
677<TD>97</TD>
678<TD>'Chorus'</TD>
679<TD>109</TD>
680<TD>'Porn Groove'</TD>
681<TD>121</TD>
682<TD>'Punk Rock'</TD>
683</TR>
684<TR>
685<TD>86</TD>
686<TD>'Latin'</TD>
687<TD>98</TD>
688<TD>'Easy Listening'</TD>
689<TD>110</TD>
690<TD>'Satire'</TD>
691<TD>122</TD>
692<TD>'Drum Solo'</TD>
693</TR>
694<TR>
695<TD>87</TD>
696<TD>'Revival'</TD>
697<TD>99</TD>
698<TD>'Acoustic'</TD>
699<TD>111</TD>
700<TD>'Slow Jam'</TD>
701<TD>123</TD>
702<TD>'A Capela'</TD>
703</TR>
704<TR>
705<TD>88</TD>
706<TD>'Celtic'</TD>
707<TD>100</TD>
708<TD>'Humour'</TD>
709<TD>112</TD>
710<TD>'Club'</TD>
711<TD>124</TD>
712<TD>'Euro-House'</TD>
713</TR>
714<TR>
715<TD>89</TD>
716<TD>'Bluegrass'</TD>
717<TD>101</TD>
718<TD>'Speech'</TD>
719<TD>113</TD>
720<TD>'Tango'</TD>
721<TD>125</TD>
722<TD>'Dance Hall'</TD>
723</TR>
724<TR>
725<TD>90</TD>
726<TD>'Avantgarde'</TD>
727<TD>102</TD>
728<TD>'Chanson'</TD>
729<TD>114</TD>
730<TD>'Samba'</TD>
731<TD>&nbsp;</TD>
732<TD>&nbsp;</TD>
733</TR>
734<TR>
735<TD>91</TD>
736<TD>'Gothic Rock'</TD>
737<TD>103</TD>
738<TD>'Opera'</TD>
739<TD>115</TD>
740<TD>'Folklore'</TD>
741<TD>&nbsp;</TD>
742<TD>&nbsp;</TD>
743</TR>
744<TR>
745<TD COLSPAN=8>Any other value should be considered as 'Unknown'
746</TABLE>
747<P>&nbsp;</P></CENTER>
748
749<P ALIGN="center"><A NAME="MPEG TAG"></A><FONT SIZE="5"><B>MPEG Audio Tag ID3v2</B></FONT>
750<P>This is new proposed TAG format which is different than ID3v1 and ID3v1.1.
751Complete tech specs for it may be found at <A
752HREF="http://www.id3.org/">http://www.id3.org/</A>.
753<P><CENTER>
754<HR>
755<P><FONT SIZE="-1"> Created on September 1998. by <A HREF="http://www.dv.co.yu/broker/">Predrag
756Supurovic</A>.<BR>
757Thanks to <A HREF="http://www.jps.net/kyunghi/">Jean</A> for debugging and polishing
758of this document, <A HREF="http://members.tripod.com/~videoripper/home.htm">Peter
759Luijer</A>, Guwani, Rob Leslie and Franc Zijderveld<BR>
760for valuable comments and corrections.</FONT></P>
761<P>&copy; 1998, 1999 Copyright by DataVoyage</P>
762<P><FONT SIZE="-1">This document may be changed. Check <A
763HREF="http://www.dv.co.yu/mpgscript/mpeghdr.htm">http://www.dv.co.yu/mpgscript/mpeghdr.htm</A>
764for updates.<BR>
765You may use it freely. Distribution is allowed only in unaltered form. If you
766can help me make it more accurate, please do. </FONT></P>
767<P>&nbsp;</P>
768</CENTER>
769</BODY></HTML>