Ronald S. Bultje <rsbul...@gmail.com> added the comment:

Once you decode the header (and add pn-wmt as mimetype to rtpdec_asf.c), 
the header looks like this:


00000000  00 00 00 00 02 0c d2 14 30 26 b2 75 8e 66 cf 11 
........0&.u.f..
00000010  a6 d9 00 aa 00 62 ce 6c 98 14 00 00 00 00 00 00 
.....b.l........
00000020  07 00 00 00 01 02 33 26 b2 75 8e 66 cf 11 a6 d9 
......3&.u.f....
00000030  00 aa 00 62 ce 6c 5e 00 00 00 00 00 00 00 18 00 
...b.l^.........
00000040  0e 00 16 00 00 00 00 00 52 00 54 00 45 00 20 00 ........R.T.E. 
.
00000050  52 00 61 00 64 00 69 00 6f 00 20 00 31 00 00 00 R.a.d.i.o. 
.1...
00000060  52 00 54 00 45 00 2e 00 69 00 65 00 00 00 a9 00 
R.T.E...i.e.....
00000070  20 00 52 00 54 00 45 00 20 00 32 00 30 00 31 00  .R.T.E. 
.2.0.1.
00000080  30 00 00 00 40 a4 d0 d2 07 e3 d2 11 97 f0 00 a0 
0...@...........
00000090  c9 5e a8 50 a4 00 00 00 00 00 00 00 03 00 1c 00 
.^.P............
000000a0  57 00 4d 00 46 00 53 00 44 00 4b 00 56 00 65 00 
W.M.F.S.D.K.V.e.
000000b0  72 00 73 00 69 00 6f 00 6e 00 00 00 00 00 1c 00 
r.s.i.o.n.......
000000c0  31 00 30 00 2e 00 30 00 30 00 2e 00 30 00 30 00 
1.0...0.0...0.0.
000000d0  2e 00 34 00 30 00 30 00 35 00 00 00 1a 00 57 00 
..4.0.0.5.....W.
000000e0  4d 00 46 00 53 00 44 00 4b 00 4e 00 65 00 65 00 
M.F.S.D.K.N.e.e.
000000f0  64 00 65 00 64 00 00 00 00 00 16 00 30 00 2e 00 
d.e.d.......0...
00000100  30 00 2e 00 30 00 2e 00 30 00 30 00 30 00 30 00 
0...0...0.0.0.0.
00000110  00 00 0c 00 49 00 73 00 56 00 42 00 52 00 00 00 
....I.s.V.B.R...
00000120  02 00 04 00 00 00 00 00 40 52 d1 86 1d 31 d0 11 
........@r...1..
00000130  a3 a4 00 a0 c9 03 48 f6 ae 00 00 00 00 00 00 00 
......H.........
00000140  41 52 d1 86 1d 31 d0 11 a3 a4 00 a0 c9 03 48 f6 
AR...1........H.
00000150  01 00 00 00 02 00 18 00 57 00 69 00 6e 00 64 00 
........W.i.n.d.
00000160  6f 00 77 00 73 00 20 00 4d 00 65 00 64 00 69 00 o.w.s. 
.M.e.d.i.
00000170  61 00 20 00 41 00 75 00 64 00 69 00 6f 00 20 00 a. .A.u.d.i.o. 
.
00000180  39 00 2e 00 31 00 00 00 24 00 20 00 33 00 32 00 9...1...$. 
.3.2.
00000190  20 00 6b 00 62 00 70 00 73 00 2c 00 20 00 32 00  .k.b.p.s.,. 
.2.
000001a0  32 00 20 00 6b 00 48 00 7a 00 2c 00 20 00 73 00 2. .k.H.z.,. 
.s.
000001b0  74 00 65 00 72 00 65 00 6f 00 20 00 31 00 2d 00 t.e.r.e.o. 
.1.-.
000001c0  70 00 61 00 73 00 73 00 20 00 43 00 42 00 52 00 p.a.s.s. 
.C.B.R.
000001d0  00 00 02 00 61 01 ce 75 f8 7b 8d 46 d1 11 8d 82 
....a..u.{.F....
000001e0  00 60 97 c9 a2 b2 20 00 00 00 00 00 00 00 01 00 .`.... 
.........
000001f0  01 00 85 7f 00 00 a1 dc ab 8c 47 a9 cf 11 8e e4 
..........G.....
00000200  00 c0 0c 20 53 65 68 00 00 00 00 00 00 00 f7 07 ... 
Seh.........
00000210  45 6c 75 d2 6a 46 aa 76 0a 0f d7 a1 b1 56 ca 14 
Elu.jF.v.....V..
00000220  00 00 00 00 00 00 e0 81 2a 2f 46 27 cb 01 ff ff 
........*/F'....
00000230  ff ff 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
................
00000240  00 00 00 00 00 00 2b 06 00 00 00 00 00 00 09 00 
......+.........
00000250  00 00 ee 05 00 00 ee 05 00 00 85 7f 00 00 b5 03 
................
00000260  bf 5f 2e a9 cf 11 8e e3 00 c0 0c 20 53 65 d0 11 ._......... 
Se..
00000270  00 00 00 00 00 00 11 d2 d3 ab ba a9 cf 11 8e e6 
................
00000280  00 c0 0c 20 53 65 06 00 a2 11 00 00 a9 46 43 7c ... 
Se.......FC|
00000290  e0 ef fc 4b b2 29 39 3e de 41 5c 85 34 00 00 00 
...K.)9>.A\.4...
000002a0  00 00 00 00 02 00 0c 65 00 6e 00 2d 00 69 00 65 .......e.n.-
.i.e
000002b0  00 00 00 0c 65 00 6e 00 2d 00 75 00 73 00 00 00 ....e.n.-
.u.s...
000002c0  ea cb f8 c5 af 5b 77 48 84 67 aa 8c 44 fa 4c ca 
.....[wH.g..D.L.
000002d0  fc 00 00 00 00 00 00 00 04 00 00 00 01 00 0c 00 
................
000002e0  02 00 02 00 00 00 49 00 73 00 56 00 42 00 52 00 
......I.s.V.B.R.
000002f0  00 00 00 00 00 00 01 00 34 00 00 00 06 00 00 00 
........4.......
00000300  44 00 65 00 76 00 69 00 63 00 65 00 43 00 6f 00 
D.e.v.i.c.e.C.o.
00000310  6e 00 66 00 6f 00 72 00 6d 00 61 00 6e 00 63 00 
n.f.o.r.m.a.n.c.
00000320  65 00 54 00 65 00 6d 00 70 00 6c 00 61 00 74 00 
e.T.e.m.p.l.a.t.
00000330  65 00 00 00 4c 00 32 00 00 00 00 00 01 00 2e 00 
e...L.2.........
00000340  03 00 04 00 00 00 57 00 4d 00 2f 00 57 00 4d 00 
......W.M./.W.M.
00000350  41 00 44 00 52 00 43 00 50 00 65 00 61 00 6b 00 
A.D.R.C.P.e.a.k.
00000360  52 00 65 00 66 00 65 00 72 00 65 00 6e 00 63 00 
R.e.f.e.r.e.n.c.
00000370  65 00 00 00 79 2b 00 00 00 00 01 00 34 00 03 00 
e...y+......4...
00000380  04 00 00 00 57 00 4d 00 2f 00 57 00 4d 00 41 00 
....W.M./.W.M.A.
00000390  44 00 52 00 43 00 41 00 76 00 65 00 72 00 61 00 
D.R.C.A.v.e.r.a.
000003a0  67 00 65 00 52 00 65 00 66 00 65 00 72 00 65 00 
g.e.R.e.f.e.r.e.
000003b0  6e 00 63 00 65 00 00 00 1d 0f 00 00 cb a5 e6 14 
n.c.e...........
000003c0  72 c6 32 43 83 99 a9 69 52 06 5b 5a 58 00 00 00 
r.2C...iR.[ZX...
000003d0  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
................
000003e0  00 00 00 00 18 7d 00 00 2b 06 00 00 00 00 00 00 
.....}..+.......
000003f0  18 7d 00 00 2b 06 00 00 00 00 00 00 cf 05 00 00 
.}..+...........
00000400  00 00 00 00 01 00 01 00 00 00 00 00 00 00 00 00 
................
00000410  00 00 00 00 5d 8b f1 26 84 45 ec 47 9f 5f 0e 65 
....]..&.E.G._.e
00000420  1f 04 52 c9 1a 00 00 00 00 00 00 00 02 01 74 d4 
..R...........t.
00000430  06 18 df ca 09 45 a4 ba 9a ab cb 96 aa e8 00 10 
.....E..........


The first 8 byte can be skipped, then follows an asf header, a comment 
header, etc. (i.e. the regular ASF file header). Using that to init the 
ASF demuxer gives expected output. What's left now is to create the 
streams embedded in the ASF (similar to how RDT does it) and then parse 
the packet data, if it's different from regular ASF as served by WMS.

I might be able to finish this today. ;-).

________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/issue1607>
________________________________________________

Attachment: wmt.patch
Description: Binary data

Reply via email to