[vlc-devel] [PATCH 01/11] MP4 demux: only set fragmented flag if filecontains movie fragment atoms.

Francois Cartegnie fcvlcdev at free.fr
Wed Mar 19 14:13:02 CET 2014


Le 06/03/2014 01:12, Matthias Keiser a écrit :

> -    if( MP4_BoxCount( p_sys->p_root, "/moov/mvex" ) > 0 )
> +    if( MP4_BoxCount( p_sys->p_root, "/moov/mvex" ) > 0 &&
> +        MP4_BoxCount( p_sys->p_root, "/moof" ) > 0 )
>      {
>          p_sys->b_fragmented = true;
>      }

Breaks fragmented playback/fallback on avcodec
http://streams.videolan.org/samples/mov/fragments/au30sec.mp4


[00007fd8ecc014d8] mp4 stream debug: dumping root Box "root"
[00007fd8ecc014d8] mp4 stream debug: |   + ftyp size 24 offset 0
[00007fd8ecc014d8] mp4 stream debug: |   + uuid size 36 offset 24
[00007fd8ecc014d8] mp4 stream debug: |   + uuid size 60 offset 60
[00007fd8ecc014d8] mp4 stream debug: |   + uuid size 44 offset 120
[00007fd8ecc014d8] mp4 stream debug: |   + moov size 2266 offset 164
[00007fd8ecc014d8] mp4 stream debug: |   |   + mvex size 88 offset 172
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + mehd size 16 offset 180
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + trex size 32 offset 196
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + trex size 32 offset 228
[00007fd8ecc014d8] mp4 stream debug: |   |   + mvhd size 108 offset 260
[00007fd8ecc014d8] mp4 stream debug: |   |   + trak size 1604 offset 368
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + tkhd size 92 offset 376
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + mdia size 1504 offset 468
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + mdhd size 32
offset 476
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + hdlr size 33
offset 508
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + minf size 1431
offset 541
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + vmhd size 20
offset 549
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + dinf size 36
offset 569
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + dref size
28 offset 577
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   + url
size 12 offset 593
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + stbl size
1367 offset 605
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stts size
72 offset 613
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsd size
167 offset 685
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   + mp4v
size 151 offset 701
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   |   +
esds size 65 offset 787
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsz size
908 offset 852
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stss size
48 offset 1760
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsc size
88 offset 1808
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stco size
76 offset 1896
[00007fd8ecc014d8] mp4 stream debug: |   |   + trak size 458 offset 1972
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + tkhd size 92 offset 1980
[00007fd8ecc014d8] mp4 stream debug: |   |   |   + mdia size 358 offset 2072
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + mdhd size 32
offset 2080
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + hdlr size 33
offset 2112
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   + minf size 285
offset 2145
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + smhd size 16
offset 2153
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + dinf size 36
offset 2169
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + dref size
28 offset 2177
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   + url
size 12 offset 2193
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   + stbl size 225
offset 2205
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stts size
24 offset 2213
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsd size
69 offset 2237
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   + samr
size 53 offset 2253
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   |   |   +
damr size 17 offset 2289
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsz size
20 offset 2306
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stsc size
28 offset 2326
[00007fd8ecc014d8] mp4 stream debug: |   |   |   |   |   |   + stco size
76 offset 2354




More information about the vlc-devel mailing list