How to play new flavor of mp3 files

soralx at cydem.org.ua soralx at cydem.org.ua
Mon Apr 14 22:30:17 PDT 2003


> Without knowing what a real mp3 file should look like, anything beyond
> "file" - which I tried, having seen avi files with an mp3 extension -
> doesn't do me any good.
> I wonder what the things really are?

continuous file of MP3 '32-bit, 44.1kHz, stereo' headers with junk :)

look at few other MP3 files

Here you can see data immediately following MP3 header, no ID3 tags:

`biew /usr/mp3/Running\ Wild/RunningWild-TheCurse.mp3`:
================================================================================
File : /usr/mp3/...-TheCurse.mp3    Size :  3071286 bytes                  0%
00000000: FF FB 90 44  00 00 04 5E  82 B2 80 22  5B 70 00 00    ÿûD  .^‚²€"[p
00000010: 06 50 00 00  00 0F 8A 0B  00 A1 05 0D  C0 84 00 60    .P   .Š. ¡..À„ `
00000020: 00 00 00 00  12 6B ED 7A  15 C7 63 B3  DD 9D C8 7F        .kíz.Çc³ÝÈ.
00000030: FF B3 BB 3F  FF EE EC FF  BA BB 64 FF  FF FF F7 55    ÿ³»?ÿîìÿº»dÿÿÿ÷U
00000040: 7F FF FF FC  35 75 D6 3E  CB AB A5 D7  65 F0 D7 2C    .ÿÿü5uÖ>Ë«¥×eð×,
00000050: 7C F9 C7 C4  C4 BA 96 5D  8F FE EA AE  BF AB 63 1F    |ùÇÄĺ–]þꮿ«c.
00000060: FF 0D BB 63  D9 31 3D 55  C4 C4 B9 B6  F6 3E 26 1B    ÿ.»cÙ1=UÄŶö>&.
00000070: 75 4F AF 86  D9 C6 3D 93  13 0D 5C F9  C4 D0 55 23    uO¯†ÙÆ=“..\ùÄÐU#
00000080: 52 E2 C2 61  BA 13 08 A4  6A 66 43 8F  84 F4 15 49    RâÂaº..¤jfC„ô.I
00000090: AF 50 D8 D4  F1 D3 C6 A3  B8 13 43 A1  30 D0 75 93    ¯PØÔñÓÆ£¸.C¡0Ðu“
000000A0: 0F 9D 36 21  46 B1 AC 84  2F 3A 6C 49  1D 42 50 6C    .6!F±¬„/:lI.BPl
[...]
================================================================================

Some MP3's have few KB of '0x00' or '0xff' after first header and before data

Here you see ID3 tag, followed by headers[s?], and data (which must look random,
because it's coded/compressed)

`biew /usr/mp3/Crematory/Crematory-Unspoken.mp3`:
================================================================================
File : /usr/mp3/...-Unspoken.mp3    Size :  4769260 bytes                  0%
00000000: 49 44 33 02  00 00 00 00  10 59 54 45  4E 00 00 10    ID3.    .YTEN  .
00000010: 00 53 6F 75  6E 64 4A 61  6D 20 76 32  2E 31 2E 31     SoundJam v2.1.1
00000020: 54 54 32 00  00 09 00 55  6E 73 70 6F  6B 65 6E 54    TT2  . UnspokenT
00000030: 50 31 00 00  0A 00 43 72  65 6D 61 74  6F 72 79 54    P1  . CrematoryT
00000040: 41 4C 00 00  08 00 42 65  6C 69 65 76  65 54 52 4B    AL  . BelieveTRK
00000050: 00 00 05 00  38 2F 31 32  54 59 45 00  00 05 00 32      . 8/12TYE  . 2
00000060: 30 30 30 54  43 4F 00 00  05 00 28 31  37 29 00 00    000TCO  . (17)
00000070: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
00000080: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
[...]
00000850: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
00000860: 00 00 00 FF  FB 92 40 00  00 00 00 00  37 80 00 00       ÿû’@     7€
00000870: 00 00 00 06  F0 00 00 00  00 00 00 DE  00 00 00 00       .ð      Þ
00000880: 00 00 1B C0  00 00 00 00  00 00 00 00  00 00 00 00      .À
00000890: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00
[...]
00001FF0: CA 8C 0A 14  30 D0 78 C2  F6 15 52 1A  2A 4C 58 48    ÊŒ..0ÐxÂö.R.*LXH
00002000: 09 44 A0 BE  10 81 A8 FE  58 12 73 43  22 92 75 19    .D ¾.¨þX.sC"’u.
00002010: D4 F6 94 93  5A 52 08 0A  25 92 2D 67  69 D2 DB 58    Ôö”“ZR..%’-giÒÛX
00002020: 21 C4 5A D6  1F 5E C5 03  E5 7F 2E A7  54 EB F3 DF    !ÄZÖ.^Å.å..§Tëóß
00002030: FA FF 53 D4  CB 3F D9 7D  3F FF FC 6D  30 00 00 00    úÿSÔË?Ù}?ÿüm0
00002040: 17 FF FF 92  86 CA C3 00  C7 57 CA 82  A6 A7 20 60    .ÿÿ’†Êà ÇWÊ‚¦§ `
00002050: E2 82 CA 8C  2B 14 E8 15  0A 9B 45 71  CB 38 9F EC    â‚ÊŒ+.è...EqË8Ÿì
[...]
================================================================================

bash-2.05a# ls -alFG /usr/mp3/Crematory/Crematory-Unspoken.mp3
-rw-r--r--  1 root  wheel  4769260 Mar 25  2001 /usr/mp3/Crematory/Crematory-Unspoken.mp3
bash-2.05a# gzip -9 /usr/mp3/Crematory/Crematory-Unspoken.mp3
bash-2.05a# ls -alFG /usr/mp3/Crematory/Crematory-Unspoken.mp3.gz
-rw-r--r--  1 root  wheel  4670433 Mar 25  2001 /usr/mp3/Crematory/Crematory-Unspoken.mp3.gz

Only ~2.07216633188377232526639352855500% compression rate 8)


another one - `biew /usr/mp3/\!NEW/GammaRay-RebellionInDreamland.mp3`:
================================================================================
File : /usr/mp3/...Dreamland.mp3    Size :  8377701 bytes                  0%
00000000: FF FB 90 44  00 00 02 44  64 4B 50 21  13 6C 4A 0A    ÿûD  .DdKP!.lJ.
00000010: B8 A9 04 22  6D 89 35 81  6D A7 84 4D  B1 3F B0 2B    ¸©."m‰5m§„M±?°+
00000020: B5 10 89 B6  D0 09 50 92  55 8D D0 94  8C 82 D2 18    µ.‰¶Ð.P’UÐ”Œ‚Ò.
00000030: 07 69 A4 30  64 62 49 A9  74 9A 19 1D  36 B9 89 36    .i¤0dbI©tš..6¹‰6
00000040: C7 FB BB 3C  E8 BF FC 87  45 72 98 A3  8E 47 D9 D8    Çû»<è¿ü‡Er˜£ŽGÙØ
00000050: E7 27 FD BE  CC FF 76 67  FB B3 3F FF  F7 76 FB 3B    ç'ý¾Ìÿvgû³?ÿ÷vû;
00000060: B7 FF FF EE  CE BE 85 33  0C 73 94 98  F5 50 95 55    ·ÿÿîξ
3.s”˜õP•U
00000070: 6A BD A6 03  20 89 26 87  DA 4C 1C C4  93 00 CB A4    j½¦. ‰&‡ÚL.Ä“ ˤ
00000080: D0 C8 CA DA  E6 41 6D 8E  4F 77 67 9D  17 FF FF 67    ÐÈÊÚæAmŽOwg.ÿÿg
00000090: 76 7E EC 2C  E4 7E EC 75  FF 67 6F 76  67 6F 76 67    v~ì,ä~ìuÿgovgovg
000000A0: 6E CE C4 3F  DD 2C E8 A8  CE 44 5E A6  28 E6 8D 4D    nÎÄ?Ý,è¨ÎD^¦(æM
================================================================================

enough, I think :)

part of your file again:
================================================================================
00000000: FF FB 10 00  03 0A 02 0B  01 0B 03 05  02 04 04 08    ÿû. ............
00000010: 09 07 09 08  07 09 02 0A  05 08 01 02  0A 07 06 07    ................
00000020: 04 0A 0B 04  01 07 08 06  03 00 09 0A  00 06 02 00    ......... .. ..
00000030: 0B 05 0A 08  07 01 06 08  03 01 00 02  0A 06 0B 04    .......... .....
00000040: 04 02 05 05  00 04 00 05  0B 07 0A 07  08 0B 07 02    .... . .........
00000050: 0A 04 07 07  03 02 00 06  03 03 04 0B  01 0B 07 05    ...... .........
00000060: 07 05 00 07  00 0B 0A 0B  FF FB 10 00  05 0B 05 05    .. . ...ÿû. ....
00000070: 04 0B 00 09  01 0A 05 04  05 00 0B 0A  09 00 04 03    .. ...... ... ..
================================================================================

something really weird
I can't guarantee even 95%, however, that it's not a some sort of MPEG stream
I'm too lazy to go and read mp3 headers descriptions...

BTW, VBR MP3's look similar to the normal ones.

14.04.2003; 23:19:51
[SorAlx]  http://cydem.org.ua/


More information about the freebsd-multimedia mailing list