[MPlayer-users] Video format recognition.

Rogier Wolff R.E.Wolff at BitWizard.nl
Sat Apr 25 12:07:42 CEST 2009


Hi,

I have a BIG source of video data... however, I don't recognize the
format. Neither does mplayer. I'm hoping someone here can provide an
educated guess at how to decode the frames.... 

I have been able to reverse engineer more or less where frames start
and end.

There is a 0x20 long trailer on each frame with the name of the
camera....

The frames are in reality 0x50 bytes longer than the "length" field in
the header, so there need to be 0x30 other header bytes. Around 0x18
header bytes are at the beginning. If the other 0x18 bytes are at the
end, they are here: 

00000  75 cf 13 c7 c5 c1 59 79   8d f0 2d eb 56 fa c2 02   uO.GEAYy.p-kVzB.
00010  ed 18 49 0d b0 7c 84 01   aa 62 47 b7 7e a1 66 c6   m.I.0|..*bG7~!fF
00020  bf d8 83 df af 26 0f 85   c2 67 1b 53 27 26 4e f4   ?X._/&..Bg.S'&Nt
00030  9c 8c 7b 6d fd 11 c9 82   51 de 51 d0 99 95 de 25   ..{m}.I.Q^QP..^%
00040  58 47 88 c3 a3 66 0e 47   66 be f6 f0 ec b9 01 7b   XG.C#f.Gf>vpl9.{
00050  e1 55 35 11 31 3a b7 20   3f b6 97 21 62 78 ff 3b   aU5.1:7 ?6.!bx.;
00060  5a 9d b0 79 b7 5e be 8f   a5 16 7e d1 83 bc 16 b3   Z.0y7^>.%.~Q.<.3
00070  5f 3d 49 ca 2a 4a 1e b4   e6 33 1b c0 37 25 91 e8   _=IJ*J.4f3. at 7%.h
00080  65 4c ff 33 c6 ac 20 66   13 65 3d db bf 00 cc 8c   eL.3F, f.e=[?.L.
00090  54 76 07 60 ac 7c 64 85   fc 89 d7 31 02 e1 9c 42   Tv.`,|d.|.W1.a.B
000a0  a1 f6 62 3e c9 dd 6f 89   0c de a4 f7 a2 c7 bc 0b   !vb>I]o..^$w"G<.
000b0  b8 9c b5 c7 ef 57 bd 54   7d 90 72 bb d4 e8 fb ec   8.5GoW=T}.r;Th{l
000c0  40 af 7a 6a bc d5 42 65   c5 84 82 e0 1d 98 b2 74   @/zj<UBeE..`..2t
000d0  b6 61 3c bb 90 8b a4 f6   45 21 01 c4 2d 00 6d 27   6a<;..$vE!.D-.m'
000e0  fd ee 03 77 29 4e c0 6f   a9 78 90 e8 c8 c9 42 44   }n.w)N at o)x.hHIBD
000f0  41 c4 fa ac 7e ee d8 cd   bc 5d a9 6d e5 05 b3 c2   ADz,~nXM<])me.3B

Of 16 frames, I dumped the last 0x10 bytes. I don't see any regularity, 
so I'm thinking it's not here..... 

Now on to the part that I do understand a bit.... 


00000  ff 14 f1 43 ac 63 02 00   53 0f 00 00 83 20 08 ab   ..qC,c..S.... .+
00010  ff 14 f1 43 b7 8a 02 00   46 18 00 00 83 00 88 f2   ..qC7...F......r
00020  00 15 f1 43 4d a3 02 00   3c 17 00 00 83 00 88 27   ..qCM#..<......'
00030  00 15 f1 43 d9 ba 02 00   d5 17 00 00 83 00 88 59   ..qCY:..U......Y
00040  00 15 f1 43 fe d2 02 00   74 18 00 00 83 00 88 8c   ..qC~R..t.......
00050  00 15 f1 43 c2 eb 02 00   9d 0e 00 00 83 20 08 ab   ..qCBk....... .+
00060  00 15 f1 43 84 12 03 00   f1 18 00 00 83 00 88 f2   ..qC....q......r
00070  01 15 f1 43 c5 2b 03 00   8d 17 00 00 83 00 88 27   ..qCE+.........'
00080  01 15 f1 43 a2 43 03 00   cb 17 00 00 83 00 88 59   ..qC"C..K......Y
00090  01 15 f1 43 bd 5b 03 00   0b 17 00 00 83 00 88 8c   ..qC=[..........
000a0  01 15 f1 43 18 73 03 00   c9 0e 00 00 83 20 08 ab   ..qC.s..I.... .+
000b0  01 15 f1 43 62 9a 03 00   97 17 00 00 83 00 88 f2   ..qCb..........r
000c0  02 15 f1 43 49 b2 03 00   69 17 00 00 83 00 88 27   ..qCI2..i......'
000d0  02 15 f1 43 02 ca 03 00   27 18 00 00 83 00 88 59   ..qC.J..'......Y
000e0  02 15 f1 43 79 e2 03 00   70 18 00 00 83 00 88 8c   ..qCyb..p.......
000f0  02 15 f1 43 39 fb 03 00   ad 08 00 00 83 20 08 ab   ..qC9{..-.... .+
                                                   ^^^^^ ???
                                             ^^^^^ flags? 0x20 = smaller frame.
                                 ^^^^^^^^^^^ frame length.
                   ^^^^^^^^^^^ location in file of THIS frame.
       ^^^^^^^^^^^ timestamp?

00000  38 00 00 80 02 12 05 28   58 c4 da 99 b7 70 a2 c2   8......(XDZ.7p"B
00010  38 00 00 80 2a 12 05 3a   b8 7a 65 93 c3 9c 2b 23   8...*..:8ze.C.+#
00020  38 00 00 80 2e 12 05 38   97 16 98 38 30 f4 04 a4   8......8...80t.$
00030  38 00 00 80 32 12 05 3a   b8 34 40 26 d3 91 42 bf   8...2..:84@&S.B?
00040  38 00 00 80 36 12 05 38   97 6a a2 2c 17 8b 4e 85   8...6..8.j",..N.
00050  38 00 00 80 06 12 05 04   16 65 d0 fb 79 05 6c d8   8........eP{y.lX
00060  38 00 00 80 3e 12 05 3c   42 fa 46 e3 3d 24 0b 5a   8...>..<BzFc=$.Z
00070  38 00 00 80 42 12 05 36   37 46 7a 5c d1 40 c8 2c   8...B..67Fz\Q at H,
00080  38 00 00 80 46 12 05 3b   58 9c 28 f1 81 2e 1c 1a   8...F..;X.(q....
00090  38 00 00 80 4a 12 05 3c   57 91 02 d8 2b e3 86 c8   8...J..<W..X+c.H
000a0  38 00 00 80 0a 12 05 3c   6d 8d 0e 42 a6 b1 3c 07   8......<m..B&1<.
000b0  38 00 00 80 52 12 05 3e   14 ba 71 92 e1 e8 4e 09   8...R..>.:q.ahN.
000c0  38 00 00 80 56 12 05 3a   ba c5 81 51 2c 2b e0 58   8...V..::E.Q,+`X
000d0  38 00 00 80 5a 12 05 22   6d c7 31 1f c3 88 b0 98   8...Z.."mG1.C.0.
000e0  38 00 00 80 5e 12 05 3d   ad 0d 27 0a 5c 07 8a 81   8...^..=-.'.\...
000f0  38 00 00 80 0e 12 05 3b   7b 9b ce 42 a6 54 2d 42   8......;{.NB&T-B
                                 ^^^^^^^^^^^^^^^^^^^^^^ frame data/more header?
                      ^^^^^^^^ ????
                ^^^^^ counts through 80-83 and 0x02...0xfe by 4
       ^^^^^^^ more flags?

Does anybody recognise this as an existing video format? Any
suggestions on how to decode this data?

	Roger. 

-- 
** R.E.Wolff at BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2600998 **
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **
*-- BitWizard writes Linux device drivers for any device you may have! --*
Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
Does it sit on the couch all day? Is it unemployed? Please be specific! 
Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ


More information about the MPlayer-users mailing list