[FFmpeg-trac] #7798(undetermined:new): hls muxer often generates segments shorter than -hls_time

FFmpeg trac at avcodec.org
Sun Mar 17 04:58:02 EET 2019


#7798: hls muxer often generates segments shorter than -hls_time
-------------------------------------+-------------------------------------
             Reporter:  JoshuaWalsh  |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  hls          |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by stevenliu):

 liuqideMacBook-Pro:dash liuqi$ mkdir output; ffmpeg -i
 ~/Movies/Test/bbb_sunflower_1080p_30fps_normal.mp4 -c:v libx264 -g 125
 -r:v 25 -x264opts scenecut=0:keyint_min=125 -f hls -hls_time 5
 -hls_list_size 0 -preset veryfast -t 60 output/output.m3u8
 mkdir: output: File exists
 ffmpeg version N-92522-g370b8bd847 Copyright (c) 2000-2018 the FFmpeg
 developers
   built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
   configuration: --enable-fontconfig --enable-gpl --enable-libass
 --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-
 libspeex --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-
 version3 --enable-nonfree --enable-videotoolbox --enable-libxml2
   libavutil      56. 24.101 / 56. 24.101
   libavcodec     58. 40.100 / 58. 40.100
   libavformat    58. 23.100 / 58. 23.100
   libavdevice    58.  6.100 / 58.  6.100
   libavfilter     7. 46.100 /  7. 46.100
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
 '/Users/liuqi/Movies/Test/bbb_sunflower_1080p_30fps_normal.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 1
     compatible_brands: isomavc1
     creation_time   : 2013-12-16T17:44:39.000000Z
     title           : Big Buck Bunny, Sunflower version
     artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
     comment         : Creative Commons Attribution 3.0 -
 http://bbb3d.renderfarming.net
     genre           : Animation
     composer        : Sacha Goedegebure
   Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 1920x1080 [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc
 (default)
     Metadata:
       creation_time   : 2013-12-16T17:44:39.000000Z
       handler_name    : GPAC ISO Video Handler
     Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo,
 fltp, 160 kb/s (default)
     Metadata:
       creation_time   : 2013-12-16T17:44:42.000000Z
       handler_name    : GPAC ISO Audio Handler
     Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side),
 fltp, 320 kb/s (default)
     Metadata:
       creation_time   : 2013-12-16T17:44:42.000000Z
       handler_name    : GPAC ISO Audio Handler
     Side data:
       audio service type: main
 Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
   Stream #0:2 -> #0:1 (ac3 (native) -> aac (native))
 Press [q] to stop, [?] for help
 [libx264 @ 0x7fb2d980d800] using SAR=1/1
 [libx264 @ 0x7fb2d980d800] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7fb2d980d800] profile High, level 4.0
 [libx264 @ 0x7fb2d980d800] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options:
 cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=1
 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=6
 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0
 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=125 keyint_min=63
 scenecut=0 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 [aac @ 0x7fb2d980f000] Using a PCE to encode channel layout "5.1(side)"
 [hls @ 0x7fb2d9801000] Opening 'output/output0.ts' for writing
 Output #0, hls, to 'output/output.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 1
     compatible_brands: isomavc1
     composer        : Sacha Goedegebure
     title           : Big Buck Bunny, Sunflower version
     artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
     comment         : Creative Commons Attribution 3.0 -
 http://bbb3d.renderfarming.net
     genre           : Animation
     encoder         : Lavf58.23.100
     Stream #0:0(und): Video: h264 (libx264), yuv420p(progressive),
 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
     Metadata:
       creation_time   : 2013-12-16T17:44:39.000000Z
       handler_name    : GPAC ISO Video Handler
       encoder         : Lavc58.40.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1(und): Audio: aac (LC), 48000 Hz, 5.1(side), fltp, 394 kb/s
 (default)
     Metadata:
       creation_time   : 2013-12-16T17:44:42.000000Z
       handler_name    : GPAC ISO Audio Handler
       encoder         : Lavc58.40.100 aac
     Side data:
       audio service type: main
 [hls @ 0x7fb2d9801000] Opening 'output/output1.ts' for writing/A dup=2
 drop=26 speed=2.03x
 [hls @ 0x7fb2d9801000] Cannot use rename on non file protocol, this may
 lead to races and temporary partial files
 [hls @ 0x7fb2d9801000] Opening 'output/output2.ts' for writing/A dup=2
 drop=48 speed=1.81x
 [hls @ 0x7fb2d9801000] Opening 'output/output3.ts' for writing/A dup=2
 drop=73 speed=1.76x
 [hls @ 0x7fb2d9801000] Opening 'output/output4.ts' for writing/A dup=2
 drop=102 speed=1.69x
 [hls @ 0x7fb2d9801000] Opening 'output/output5.ts' for writing/A dup=2
 drop=126 speed=1.78x
 [hls @ 0x7fb2d9801000] Opening 'output/output6.ts' for writing/A dup=2
 drop=149 speed=1.77x
 [hls @ 0x7fb2d9801000] Opening 'output/output7.ts' for writing/A dup=2
 drop=175 speed= 1.7x
 [hls @ 0x7fb2d9801000] Opening 'output/output8.ts' for writing/A dup=2
 drop=200 speed=1.66x
 [hls @ 0x7fb2d9801000] Opening 'output/output9.ts' for writing/A dup=2
 drop=224 speed=1.56x
 [hls @ 0x7fb2d9801000] Opening 'output/output10.ts' for writingA dup=2
 drop=249 speed=1.56x
 [hls @ 0x7fb2d9801000] Opening 'output/output11.ts' for writingA dup=2
 drop=276 speed=1.55x
 frame= 1500 fps= 39 q=-1.0 Lsize=N/A time=00:01:00.01 bitrate=N/A dup=2
 drop=298 speed=1.57x
 video:19037kB audio:2891kB subtitle:0kB other streams:0kB global
 headers:0kB muxing overhead: unknown
 [libx264 @ 0x7fb2d980d800] frame I:12    Avg QP:17.25  size:251213
 [libx264 @ 0x7fb2d980d800] frame P:415   Avg QP:21.68  size: 32557
 [libx264 @ 0x7fb2d980d800] frame B:1073  Avg QP:25.25  size:  2765
 [libx264 @ 0x7fb2d980d800] consecutive B-frames:  2.5%  4.8%  4.4% 88.3%
 [libx264 @ 0x7fb2d980d800] mb I  I16..4: 23.3% 19.6% 57.1%
 [libx264 @ 0x7fb2d980d800] mb P  I16..4:  5.0%  2.2%  0.8%  P16..4: 30.1%
 12.0%  7.3%  0.0%  0.0%    skip:42.5%
 [libx264 @ 0x7fb2d980d800] mb B  I16..4:  0.4%  0.1%  0.0%  B16..8:  6.5%
 1.7%  0.2%  direct: 2.2%  skip:88.9%  L0:35.2% L1:46.8% BI:18.1%
 [libx264 @ 0x7fb2d980d800] 8x8 transform intra:24.8% inter:45.5%
 [libx264 @ 0x7fb2d980d800] coded y,uvDC,uvAC intra: 34.2% 44.6% 21.0%
 inter: 5.7% 6.1% 0.8%
 [libx264 @ 0x7fb2d980d800] i16 v,h,dc,p: 69% 19%  8%  4%
 [libx264 @ 0x7fb2d980d800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 21% 28%  4%
 5%  5%  5%  5%  5%
 [libx264 @ 0x7fb2d980d800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 13% 10%  9%
 9% 10%  8% 12%  9%
 [libx264 @ 0x7fb2d980d800] i8c dc,h,v,p: 60% 19% 15%  6%
 [libx264 @ 0x7fb2d980d800] Weighted P-Frames: Y:4.6% UV:4.3%
 [libx264 @ 0x7fb2d980d800] kb/s:2599.04
 [aac @ 0x7fb2d980f000] Qavg: 192.171
 liuqideMacBook-Pro:dash liuqi$ cat output/output.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:5
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:5.000000,
 output0.ts
 #EXTINF:5.000000,
 output1.ts
 #EXTINF:5.000000,
 output2.ts
 #EXTINF:5.000000,
 output3.ts
 #EXTINF:5.000000,
 output4.ts
 #EXTINF:5.000000,
 output5.ts
 #EXTINF:5.000000,
 output6.ts
 #EXTINF:5.000000,
 output7.ts
 #EXTINF:5.000000,
 output8.ts
 #EXTINF:5.000000,
 output9.ts
 #EXTINF:5.000000,
 output10.ts
 #EXTINF:5.000000,
 output11.ts
 #EXT-X-ENDLIST
 liuqideMacBook-Pro:dash liuqi$

 use https://peach.blender.org/download/

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


More information about the FFmpeg-trac mailing list