Changes between Version 1 and Version 2 of Ticket #5307, comment 6


Ignore:
Timestamp:
Jun 29, 2016, 4:32:12 AM (4 years ago)
Author:
an_ffmpeg_user
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5307, comment 6

    v1 v2  
    1 Thanks @cehoyos
    2 
    3 >Is the issue reproducible with current FFmpeg git head?
    4 
    5 It is reproducible using FFmpeg 3.1 (stable), which is less than 24 hours old.
    6 
    7 Full, uncut console output below, tested using source material as supplied by @ronag, the original poster.
    8 
    9 The key part is that
    10 
    11   #EXTINF:6.673333,
    12   jellyfish3.ts
    13 
    14 does not equal
    15 
    16   $ ffprobe -loglevel quiet -print_format flat -show_entries format=duration "./jellyfish3.ts"
    17   format.duration="6.706700"
    18 
    19 All other segments are correctly declared in the m3u8.
    20 
    21 {{{
    22 $ ./ffmpeg -i jellyfish.webm jellyfish.m3u8
    23 
    24 ffmpeg version 3.1-tessus Copyright (c) 2000-2016 the FFmpeg developers
    25   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)
    26   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
    27   libavutil      55. 27.100 / 55. 27.100
    28   libavcodec     57. 48.101 / 57. 48.101
    29   libavformat    57. 40.101 / 57. 40.101
    30   libavdevice    57.  0.101 / 57.  0.101
    31   libavfilter     6. 46.102 /  6. 46.102
    32   libswscale      4.  1.100 /  4.  1.100
    33   libswresample   2.  1.100 /  2.  1.100
    34   libpostproc    54.  0.100 / 54.  0.100
    35 Input #0, matroska,webm, from 'jellyfish.webm':
    36   Metadata:
    37     encoder         : Lavf56.40.101
    38   Duration: 00:00:30.03, start: 0.000000, bitrate: 2319 kb/s
    39     Stream #0:0(eng): Video: vp8, yuv420p, 1024x576, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 1k tbn, 1k tbc (default)
    40 [libx264 @ 0x7faa8b800000] using SAR=1/1
    41 [libx264 @ 0x7faa8b800000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    42 [libx264 @ 0x7faa8b800000] profile High, level 3.1
    43 [hls @ 0x7faa8a80be00] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
    44 Output #0, hls, to 'jellyfish.m3u8':
    45   Metadata:
    46     encoder         : Lavf57.40.101
    47     Stream #0:0(eng): Video: h264 (libx264), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], q=-1--1, 29.97 fps, 90k tbn, 29.97 tbc (default)
    48     Metadata:
    49       encoder         : Lavc57.48.101 libx264
    50     Side data:
    51       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    52 Stream mapping:
    53   Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
    54 Press [q] to stop, [?] for help
    55 frame=  900 fps= 24 q=-1.0 Lsize=N/A time=00:00:29.92 bitrate=N/A speed=0.782x   
    56 video:11093kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    57 [libx264 @ 0x7faa8b800000] frame I:4     Avg QP:22.94  size: 34424
    58 [libx264 @ 0x7faa8b800000] frame P:570   Avg QP:23.88  size: 13197
    59 [libx264 @ 0x7faa8b800000] frame B:326   Avg QP:27.59  size: 11348
    60 [libx264 @ 0x7faa8b800000] consecutive B-frames: 50.7%  2.0%  3.3% 44.0%
    61 [libx264 @ 0x7faa8b800000] mb I  I16..4: 11.0% 72.9% 16.2%
    62 [libx264 @ 0x7faa8b800000] mb P  I16..4:  4.7% 18.6%  1.5%  P16..4: 44.7% 13.0%  4.6%  0.0%  0.0%    skip:12.8%
    63 [libx264 @ 0x7faa8b800000] mb B  I16..4:  1.0%  3.5%  0.4%  B16..8: 52.5% 12.5%  2.7%  direct: 8.8%  skip:18.6%  L0:48.7% L1:36.4% BI:14.9%
    64 [libx264 @ 0x7faa8b800000] 8x8 transform intra:74.6% inter:62.0%
    65 [libx264 @ 0x7faa8b800000] coded y,uvDC,uvAC intra: 32.5% 34.8% 12.0% inter: 35.7% 27.1% 2.5%
    66 [libx264 @ 0x7faa8b800000] i16 v,h,dc,p: 34% 18% 38% 11%
    67 [libx264 @ 0x7faa8b800000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19%  9% 50%  3%  4%  4%  3%  4%  3%
    68 [libx264 @ 0x7faa8b800000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 12% 23%  8%  9%  9%  6%  7%  5%
    69 [libx264 @ 0x7faa8b800000] i8c dc,h,v,p: 52% 16% 29%  3%
    70 [libx264 @ 0x7faa8b800000] Weighted P-Frames: Y:5.4% UV:1.6%
    71 [libx264 @ 0x7faa8b800000] ref P L0: 64.2% 21.4%  9.6%  4.5%  0.3%
    72 [libx264 @ 0x7faa8b800000] ref B L0: 93.6%  4.5%  1.9%
    73 [libx264 @ 0x7faa8b800000] ref B L1: 98.6%  1.4%
    74 [libx264 @ 0x7faa8b800000] kb/s:3026.07
    75 }}}
    76 
    77 {{{
    78 $ cat ./jellyfish.m3u8
    79 #EXTM3U
    80 #EXT-X-VERSION:3
    81 #EXT-X-TARGETDURATION:9
    82 #EXT-X-MEDIA-SEQUENCE:0
    83 #EXTINF:8.341667,
    84 jellyfish0.ts
    85 #EXTINF:6.639967,
    86 jellyfish1.ts
    87 #EXTINF:8.341667,
    88 jellyfish2.ts
    89 #EXTINF:6.673333,
    90 jellyfish3.ts
    91 #EXT-X-ENDLIST
    92 }}}
    93 {{{
    94 $ ffprobe -loglevel quiet -print_format flat -show_entries format=duration "./jellyfish0.ts"
    95 format.duration="8.341667"
    96 $ ffprobe -loglevel quiet -print_format flat -show_entries format=duration "./jellyfish1.ts"
    97 format.duration="6.639967"
    98 $ ffprobe -loglevel quiet -print_format flat -show_entries format=duration "./jellyfish2.ts"
    99 format.duration="8.341667"
    100 $ ffprobe -loglevel quiet -print_format flat -show_entries format=duration "./jellyfish3.ts"
    101 format.duration="6.706700"
    102 }}}