WebSound.ru Home
    | | | | AudioTag.info | | reTracked |  



  :

WebSound.Ru:
:
Powered by




  , :




Audio watermarking
TrustedAudio.com



 

Формат заголовка .MP3-файлов

 
  Byte 0   Byte 1   Byte 2   Byte 3
---------T--------T--------T--------
76543210765432107654321076543210
LTTTTTTTT+TTTTTTTT+TTTTTTTT+TTTTTTTT-
 ++++++++-++-+-+- +++-+- +-+-+-
                      L--- 00=Emphasis None
                           01=Emphasis 50/15 microseconds
                           10=Emphasis Dunno
                           11=Emphasis CITT j.17
                      
                      L---- 0=Original NO
                            1=Original YES
                      
                      L----- 0=Copyright NO
                             1=Copyright YES
                     
                     L------- Смотри таблицу <<Mode extension>>
                    
                    L--------- 00=Stereo
                               01=Joint stereo
                               10=Dual channel
                               11=Single Channel (Mono)
                   
                   L----------- 0=Extension None
                                1=Extension Private
                   
                   L------------ 0=Unused bits are filled (padding req.)
                                 1=All bits in frame are used
                  
                  L-------------- Смотри таблицу <<Sample Rate Index>>
               
               L------------------ Смотри таблицу <<Bitrate>>
              
              L-------------------- 0=Error Protection Bit CRC is ON
                                    1=Error Protection Bit CRC is OFF
             
             L---------------------- 00=Layer-?
                                     01=Layer-3
                                     10=Layer-2
                                     11=Layer-1
            
            L------------------------ 00=MPEG-2.5 (44100 Hz)
                                      01=MPEG-?
                                      10=MPEG-2.0 (22050 Hz)
                                      11=MPEG-1.0 (11025 Hz)
 
 L------------------------------------ Sync Header, всегда 0xFFEx



Таблица SAMPLE RATE


  MPEG-1         MPEG-2
г==T=====     г==T=====
0044100     0022050
0148000     0124000
1032000     1016000
11?????     11????? <=- ошибка "Stream error!"
L=======-     L=======-



Таблица MODE EXTENSION

   When encoding with joint stereo, this specifies to which freq. band it
is bound.

Layer-1,2    Layer-3
 г==T==     г==T==
 00 4     00 0
 01 8     01 4
 1012     10 8
 1116     1116
 L====-     L====-



Таблица BIT RATE (kBit/s)


         MPEG-1                       MPEG-2
г====T=====T=====T=====     г====T=====T=====T=====
    380004410048000         160002205024000
====+=====+=====+=====     ====+=====+=====+=====
0000   0    0    0      0000   0    0    0 
0001  32   32   32      0001  32    8    8 
0010  64   48   40      0010  48   16   16 
0011  96   56   48      0011  56   24   24 
0100 128   64   56      0100  64   32   32 
0101 160   80   64      0101  80   40   40 
0110 192   96   80      0110  96   48   48 
0111 224  112   96      0111 112   56   56 
1000 256  128  112      1000 128   64   64 
1001 288  160  128      1001 144   80   80 
1010 320  192  160      1010 160   96   96 
1011 352  224  192      1011 176  112  112 
1100 384  256  224      1100 192  128  128 
1101 416  320  256      1101 224  144  144 
1110 448  384  320      1110 256  160  160 
1111 ???  ???  ???      1111 ???  ???  ??? 
L===================-     L===================-

Layer 2/3 FrameSize=144*bps/Sample_Frequency+PaddingBit


           Stereo   Mono
MPEG 1.0     32      17
MPEG 2.x     17      09


А это описание инфоpмационного тэга, тоже должно пpигодиться:



Offset 00h    db 'TAG'                  ;сигнатура информационного тэга
Offset 03h    db rep 1Eh (ASCII)        ;Hазвание 30 байт ASCII
Offset 21h    db rep 1Eh (ASCII)        ;Исполнитель 30 байт ASCII
Offset 3Fh    db rep 1Eh (ASCII)        ;Альбом 30 байт ASCII
Offset 5Dh    db rep 04h (ASCII)        ;Год 4 байта ASCII
Offset 61h    db rep 1Eh (ASCII)        ;Комментарий 30 байт ASCII
Offset 7Fh    db ?                      ;Жанр

    Коды жанров 0x00...147 :
Blues
Classic Rock
Country
Dance
Disco
Funk
Grunge
Hip-Hop
Jazz
Metal
New Age
Oldies
Other
Pop
R&B
Rap
Reggae
Rock
Techno
Industrial
Alternative
Ska
Death Metal
Pranks
Soundtrack
Euro-Techno
Ambient
Trip-Hop
Vocal
Jazz+Funk
Fusion
Trance
Classical
Instrumental
Acid
House
Game
Sound Clip
Gospel
Noise
Alt. Rock
Bass
Soul
Punk
Space
Meditative
Instrumental Pop
Instrumental Rock
Ethnic
Gothic
Darkwave
Techno-Industrial
Electronic
Pop-Folk
Eurodance
Dream
Southern Rock
Comedy
Cult
Gangsta Rap
Top 40
Christian Rap
Pop/Funk
Jungle
Native American
Cabaret
New Wave
Psychedelic
Rave
Showtunes
Trailer
Lo-Fi
Tribal
Acid Punk
Acid Jazz
Polka
Retro
Musical
Rock & Roll
Hard Rock
Folk
Folk/Rock
National Folk
Swing
Fast-Fusion
Bebob
Latin
Revival
Celtic
Bluegrass
Avantgarde
Gothic Rock
Progressive Rock
Psychedelic Rock
Symphonic Rock
Slow Rock
Big Band
Chorus
Easy Listening
Acoustic
Humour
Speech
Chanson
Opera
Chamber Music
Sonata
Symphony
Booty Bass
Primus
Porn Groove
Satire
Slow Jam
Club
Tango
Samba
Folklore
Ballad
Power Ballad
Rhythmic Soul
Freestyle
Duet
Punk Rock
Drum Solo
A Cappella
Euro-House
Dance Hall
Goa
Drum & Bass
Club-House
Hardcore
Terror
Indie
BritPop
Negerpunk
Polsk Punk
Beat
Christian Gangsta Rap
Heavy Metal
Black Metal
Crossover
Contemporary Christian
Christian Rock
Merengue
Salsa
Thrash Metal
Anime
JPop
Synthpop

148...254 -- зарезервированы
      255 -- отсутствует