[FFmpeg-trac] #5307(avformat:new): HLS start_time and duration incorrect

FFmpeg trac at avcodec.org
Sat Jul 9 00:14:47 EEST 2016


#5307: HLS start_time and duration incorrect
--------------------------------+------------------------------------
             Reporter:  ronag   |                    Owner:
                 Type:  defect  |                   Status:  new
             Priority:  normal  |                Component:  avformat
              Version:  3.0.2   |               Resolution:
             Keywords:  hls     |               Blocked By:
             Blocking:          |  Reproduced by developer:  0
Analyzed by developer:  0       |
--------------------------------+------------------------------------

Comment (by an_ffmpeg_user):

 Replying to [comment:7 cehoyos]:
 > Is the issue reproducible with current FFmpeg git head?

 Confirming that the issue is reproducible with current head version
 git-2016-07-08-0f2654c, installed using Homebrew --HEAD option.

 The duration of last segment is incorrect within the m3u8.

 {{{
 $ brew install ffmpeg --with-tools --with-fdk-aac --with-ffplay --with-
 libssh --with-openssl --with-x265 --with-libebur128 --HEAD
 }}}

 {{{
 $ ffmpeg -version
 ffmpeg version git-2016-07-08-0f2654c Copyright (c) 2000-2016 the FFmpeg
 developers
 built with Apple LLVM version 7.3.0 (clang-703.0.31)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-
 libass --enable-ffplay --enable-libssh --enable-libfdk-aac --enable-
 openssl --enable-libx265 --enable-libebur128 --disable-lzma --enable-
 nonfree --enable-vda
 libavutil      55. 28.100 / 55. 28.100
 libavcodec     57. 49.103 / 57. 49.103
 libavformat    57. 41.100 / 57. 41.100
 libavdevice    57.  0.102 / 57.  0.102
 libavfilter     6. 47.100 /  6. 47.100
 libavresample   3.  0.  0 /  3.  0.  0
 libswscale      4.  1.100 /  4.  1.100
 libswresample   2.  1.100 /  2.  1.100
 libpostproc    54.  0.100 / 54.  0.100
 }}}

 {{{
 $ ffmpeg -i ./jellyfish.webm ./jellyfish.m3u8
 ffmpeg version git-2016-07-08-0f2654c Copyright (c) 2000-2016 the FFmpeg
 developers
   built with Apple LLVM version 7.3.0 (clang-703.0.31)
   configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
 --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
 opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-
 libass --enable-ffplay --enable-libssh --enable-libfdk-aac --enable-
 openssl --enable-libx265 --enable-libebur128 --disable-lzma --enable-
 nonfree --enable-vda
   libavutil      55. 28.100 / 55. 28.100
   libavcodec     57. 49.103 / 57. 49.103
   libavformat    57. 41.100 / 57. 41.100
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 47.100 /  6. 47.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  1.100 /  2.  1.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, matroska,webm, from './jellyfish.webm':
   Metadata:
     encoder         : Lavf56.40.101
   Duration: 00:00:30.03, start: 0.000000, bitrate: 2319 kb/s
     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)
 [libx264 @ 0x7fd2bb801600] using SAR=1/1
 [libx264 @ 0x7fd2bb801600] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2
 [libx264 @ 0x7fd2bb801600] profile High, level 3.1
 [hls @ 0x7fd2bb019000] Using AVStream.codec to pass codec parameters to
 muxers is deprecated, use AVStream.codecpar instead.
 Output #0, hls, to './jellyfish.m3u8':
   Metadata:
     encoder         : Lavf57.41.100
     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)
     Metadata:
       encoder         : Lavc57.49.103 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (vp8 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 frame=  900 fps= 25 q=-1.0 Lsize=N/A time=00:00:29.92 bitrate=N/A
 speed=0.818x
 video:11074kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 [libx264 @ 0x7fd2bb801600] frame I:4     Avg QP:23.16  size: 33695
 [libx264 @ 0x7fd2bb801600] frame P:890   Avg QP:24.75  size: 12536
 [libx264 @ 0x7fd2bb801600] frame B:6     Avg QP:26.83  size:  8062
 [libx264 @ 0x7fd2bb801600] consecutive B-frames: 98.7%  1.3%  0.0%  0.0%
 [libx264 @ 0x7fd2bb801600] mb I  I16..4: 11.6% 72.4% 16.0%
 [libx264 @ 0x7fd2bb801600] mb P  I16..4:  3.7% 12.2%  0.6%  P16..4: 53.3%
 13.7%  4.9%  0.0%  0.0%    skip:11.6%
 [libx264 @ 0x7fd2bb801600] mb B  I16..4:  0.9%  1.9%  0.1%  B16..8: 49.6%
 8.8%  1.8%  direct:11.5%  skip:25.4%  L0:34.6% L1:49.9% BI:15.5%
 [libx264 @ 0x7fd2bb801600] 8x8 transform intra:74.1% inter:56.7%
 [libx264 @ 0x7fd2bb801600] coded y,uvDC,uvAC intra: 24.5% 31.8% 10.1%
 inter: 40.3% 27.3% 2.7%
 [libx264 @ 0x7fd2bb801600] i16 v,h,dc,p: 33% 18% 38% 11%
 [libx264 @ 0x7fd2bb801600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 10% 55%  2%
 2%  3%  2%  3%  3%
 [libx264 @ 0x7fd2bb801600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 13% 30%  6%
 7%  7%  5%  6%  4%
 [libx264 @ 0x7fd2bb801600] i8c dc,h,v,p: 52% 16% 30%  3%
 [libx264 @ 0x7fd2bb801600] Weighted P-Frames: Y:11.2% UV:0.2%
 [libx264 @ 0x7fd2bb801600] ref P L0: 64.2% 24.7%  8.1%  2.8%  0.2%
 [libx264 @ 0x7fd2bb801600] ref B L0: 92.2%  7.8%
 [libx264 @ 0x7fd2bb801600] kb/s:3020.93
 }}}
 {{{
 $ cat ./jellyfish.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:9
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.341667,
 jellyfish0.ts
 #EXTINF:6.639967,
 jellyfish1.ts
 #EXTINF:8.341667,
 jellyfish2.ts
 #EXTINF:6.673333,
 jellyfish3.ts
 #EXT-X-ENDLIST
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5307#comment:9>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list