Opened 3 months ago

Closed 2 months ago

#7305 closed defect (fixed)

HLS: hls_init_time stopped working?

Reported by: barhom Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
hls_init_time used to work, doesnt seem to be working anymore.

How to reproduce:

ffmpeg -i "ANY_INPUT_FILE" -map 0:0 -map 0:1 -c:v libx264 -preset superfast -g 50 \
-keyint_min 100 -sc_threshold 0 -b:v 900k -maxrate 900k -bufsize 2000k \
-filter:v yadif -c:a aac -b:a 64k \
-f tee "[f=mpegts]udp://239.240.0.109:3301?buffer_size=1316&pkt_size=1316|
\[f=hls:hls_init_time=4:hls_time=8:hls_list_size=10:hls_start_number_source=epoch:hls_flags=delete_segments+discont_start+program_date_time]/tmp/test/playlist.m3u8"

The produced segments are 4seconds long and will never change to become 8 seconds.

Expected behavior:
4s to start for 10 segments
8s after the initial 10 segments

Change History (5)

comment:1 Changed 3 months ago by cehoyos

Is the tee muxer required to reproduce the issue?
Please provide an actual command line (using -f lavfi -i testsrc2) including the complete, uncut console output to make this a valid ticket.

comment:2 Changed 3 months ago by stevenliu

Try this patch please:

https://patchwork.ffmpeg.org/patch/9653/

The patch can test passed here:

MacBook:xxx StevenLiu$ ./ffmpeg -f lavfi -i nullsrc=s=352x288 -vcodec libx264 -r:v 4 -g 8 -f hls -hls_init_time 4 -hls_time 8 -hls_list_size 10 -hls_flags delete_segments+discont_start+program_date_time -hls_start_number_source 0 -t 70 out_playlist.m3u8
ffmpeg version N-91445-g6cc6b619b9 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --enable-libass --enable-opengl --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.104 / 58. 21.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'nullsrc=s=352x288':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7f7fd7817e00] using SAR=1/1
[libx264 @ 0x7f7fd7817e00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7f7fd7817e00] profile High, level 1.2
[libx264 @ 0x7f7fd7817e00] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 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=2 keyint=8 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=8 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x7f7fd7816c00] Opening 'out_playlist0.ts' for writing
Output #0, hls, to 'out_playlist.m3u8':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 352x288 [SAR 1:1 DAR 11:9], q=-1--1, 4 fps, 90k tbn, 4 tbc
    Metadata:
      encoder         : Lavc58.21.104 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls @ 0x7f7fd7816c00] Opening 'out_playlist1.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist2.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist3.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist4.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist5.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist6.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist7.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist8.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist9.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist10.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist11.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist12.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist13.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist14.ts' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f7fd7816c00] Opening 'out_playlist.m3u8.tmp' for writing
frame=  280 fps=0.0 q=-1.0 Lsize=N/A time=00:01:09.50 bitrate=N/A dup=0 drop=1463 speed= 175x
video:7kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7f7fd7817e00] frame I:35    Avg QP: 0.26  size:    77
[libx264 @ 0x7f7fd7817e00] frame P:70    Avg QP: 5.51  size:    20
[libx264 @ 0x7f7fd7817e00] frame B:175   Avg QP: 6.61  size:    16
[libx264 @ 0x7f7fd7817e00] consecutive B-frames: 12.5%  0.0% 37.5% 50.0%
[libx264 @ 0x7f7fd7817e00] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7f7fd7817e00] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x7f7fd7817e00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x7f7fd7817e00] 8x8 transform intra:0.0%
[libx264 @ 0x7f7fd7817e00] coded y,uvDC,uvAC intra: 0.0% 0.3% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7f7fd7817e00] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 0x7f7fd7817e00] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7f7fd7817e00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f7fd7817e00] kb/s:0.78
MacBook:xxx StevenLiu$ cat out_playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:5
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:36.000+0800
out_playlist5.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:40.000+0800
out_playlist6.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:44.000+0800
out_playlist7.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:48.000+0800
out_playlist8.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:52.000+0800
out_playlist9.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:56.000+0800
out_playlist10.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:00.000+0800
out_playlist11.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:04.000+0800
out_playlist12.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:12.000+0800
out_playlist13.ts
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:20.000+0800
out_playlist14.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ ./ffmpeg -f lavfi -i nullsrc=s=352x288 -vcodec libx264 -r:v 4 -g 8 -f hls -hls_init_time 4 -hls_time 8 -hls_list_size 10 -hls_flags delete_segments+discont_start+program_date_time -hls_start_number_source epoch -t 70 out_playlist.m3u8
ffmpeg version N-91445-g6cc6b619b9 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --enable-libass --enable-opengl --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.104 / 58. 21.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'nullsrc=s=352x288':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7f8704807400] using SAR=1/1
[libx264 @ 0x7f8704807400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7f8704807400] profile High, level 1.2
[libx264 @ 0x7f8704807400] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 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=2 keyint=8 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=8 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x7f8704080200] Opening 'out_playlist1531127422.ts' for writing
Output #0, hls, to 'out_playlist.m3u8':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 352x288 [SAR 1:1 DAR 11:9], q=-1--1, 4 fps, 90k tbn, 4 tbc
    Metadata:
      encoder         : Lavc58.21.104 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls @ 0x7f8704080200] Opening 'out_playlist1531127423.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127424.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127425.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127426.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127427.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127428.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127429.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127430.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127431.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127432.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127433.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127434.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127435.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist1531127436.ts' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f8704080200] Opening 'out_playlist.m3u8.tmp' for writing
frame=  280 fps=0.0 q=-1.0 Lsize=N/A time=00:01:09.50 bitrate=N/A dup=0 drop=1463 speed= 158x
video:7kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7f8704807400] frame I:35    Avg QP: 0.26  size:    77
[libx264 @ 0x7f8704807400] frame P:70    Avg QP: 5.51  size:    20
[libx264 @ 0x7f8704807400] frame B:175   Avg QP: 6.61  size:    16
[libx264 @ 0x7f8704807400] consecutive B-frames: 12.5%  0.0% 37.5% 50.0%
[libx264 @ 0x7f8704807400] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7f8704807400] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x7f8704807400] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x7f8704807400] 8x8 transform intra:0.0%
[libx264 @ 0x7f8704807400] coded y,uvDC,uvAC intra: 0.0% 0.3% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7f8704807400] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 0x7f8704807400] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7f8704807400] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f8704807400] kb/s:0.78
MacBook:xxx StevenLiu$ cat out_playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:1531127427
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:42.000+0800
out_playlist1531127427.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:46.000+0800
out_playlist1531127428.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:50.000+0800
out_playlist1531127429.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:54.000+0800
out_playlist1531127430.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:10:58.000+0800
out_playlist1531127431.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:02.000+0800
out_playlist1531127432.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:06.000+0800
out_playlist1531127433.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:10.000+0800
out_playlist1531127434.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:18.000+0800
out_playlist1531127435.ts
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:26.000+0800
out_playlist1531127436.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ ./ffmpeg -f lavfi -i nullsrc=s=352x288 -vcodec libx264 -r:v 4 -g 8 -f hls -hls_init_time 4 -hls_time 8 -hls_list_size 10 -hls_flags delete_segments+discont_start+program_date_time -hls_start_number_source epoch -t 50 out_playlist.m3u8
ffmpeg version N-91445-g6cc6b619b9 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --enable-libass --enable-opengl --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.104 / 58. 21.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'nullsrc=s=352x288':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7f916b87fc00] using SAR=1/1
[libx264 @ 0x7f916b87fc00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7f916b87fc00] profile High, level 1.2
[libx264 @ 0x7f916b87fc00] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 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=2 keyint=8 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=8 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127479.ts' for writing
Output #0, hls, to 'out_playlist.m3u8':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 352x288 [SAR 1:1 DAR 11:9], q=-1--1, 4 fps, 90k tbn, 4 tbc
    Metadata:
      encoder         : Lavc58.21.104 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127480.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127481.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127482.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127483.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127484.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127485.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127486.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127487.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127488.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127489.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127490.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist1531127491.ts' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7f916b87e000] Opening 'out_playlist.m3u8.tmp' for writing
frame=  200 fps=0.0 q=-1.0 Lsize=N/A time=00:00:49.50 bitrate=N/A dup=0 drop=1043 speed= 152x
video:5kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7f916b87fc00] frame I:25    Avg QP: 0.36  size:    77
[libx264 @ 0x7f916b87fc00] frame P:50    Avg QP: 5.52  size:    20
[libx264 @ 0x7f916b87fc00] frame B:125   Avg QP: 6.61  size:    16
[libx264 @ 0x7f916b87fc00] consecutive B-frames: 12.5%  0.0% 37.5% 50.0%
[libx264 @ 0x7f916b87fc00] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7f916b87fc00] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x7f916b87fc00] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x7f916b87fc00] 8x8 transform intra:0.0%
[libx264 @ 0x7f916b87fc00] coded y,uvDC,uvAC intra: 0.0% 0.3% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7f916b87fc00] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 0x7f916b87fc00] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7f916b87fc00] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7f916b87fc00] kb/s:0.78
MacBook:xxx StevenLiu$ cat out_playlist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:1531127482
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:31.000+0800
out_playlist1531127482.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:35.000+0800
out_playlist1531127483.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:39.000+0800
out_playlist1531127484.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:43.000+0800
out_playlist1531127485.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:47.000+0800
out_playlist1531127486.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:51.000+0800
out_playlist1531127487.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:55.000+0800
out_playlist1531127488.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:11:59.000+0800
out_playlist1531127489.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:12:03.000+0800
out_playlist1531127490.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:12:07.000+0800
out_playlist1531127491.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$

and the result before the patch:

MacBook:xxx StevenLiu$ rm *.ts;./ffmpeg -f lavfi -i nullsrc=s=352x288 -vcodec libx264 -r:v 4 -g 8 -f hls -hls_init_time 4 -hls_time 8 -hls_list_size 10 -hls_flags delete_segments+discont_start+program_date_time -hls_start_number_source 0 -t 70 out_playlist.m3u8;cat out_playlist.m3u8
ffmpeg version N-91445-g6cc6b619b9 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --enable-libass --enable-opengl --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.104 / 58. 21.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'nullsrc=s=352x288':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7fd635090600] using SAR=1/1
[libx264 @ 0x7fd635090600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fd635090600] profile High, level 1.2
[libx264 @ 0x7fd635090600] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 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=2 keyint=8 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=8 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x7fd63508ea00] Opening 'out_playlist0.ts' for writing
Output #0, hls, to 'out_playlist.m3u8':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 352x288 [SAR 1:1 DAR 11:9], q=-1--1, 4 fps, 90k tbn, 4 tbc
    Metadata:
      encoder         : Lavc58.21.104 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls @ 0x7fd63508ea00] Opening 'out_playlist1.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist2.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist3.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist4.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist5.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist6.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist7.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist8.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist9.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist10.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist11.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist12.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist13.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist14.ts' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fd63508ea00] Opening 'out_playlist.m3u8.tmp' for writing
frame=  280 fps=0.0 q=-1.0 Lsize=N/A time=00:01:09.50 bitrate=N/A dup=0 drop=1463 speed= 161x
video:7kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7fd635090600] frame I:35    Avg QP: 0.26  size:    77
[libx264 @ 0x7fd635090600] frame P:70    Avg QP: 5.51  size:    20
[libx264 @ 0x7fd635090600] frame B:175   Avg QP: 6.61  size:    16
[libx264 @ 0x7fd635090600] consecutive B-frames: 12.5%  0.0% 37.5% 50.0%
[libx264 @ 0x7fd635090600] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7fd635090600] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x7fd635090600] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x7fd635090600] 8x8 transform intra:0.0%
[libx264 @ 0x7fd635090600] coded y,uvDC,uvAC intra: 0.0% 0.3% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7fd635090600] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 0x7fd635090600] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7fd635090600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fd635090600] kb/s:0.78
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:5
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:00.000+0800
out_playlist5.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:04.000+0800
out_playlist6.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:08.000+0800
out_playlist7.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:12.000+0800
out_playlist8.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:16.000+0800
out_playlist9.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:20.000+0800
out_playlist10.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:24.000+0800
out_playlist11.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:28.000+0800
out_playlist12.ts
#EXTINF:8.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:36.000+0800
out_playlist13.ts
#EXTINF:6.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:44.000+0800
out_playlist14.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ rm *.ts;./ffmpeg -f lavfi -i nullsrc=s=352x288 -vcodec libx264 -r:v 4 -g 8 -f hls -hls_init_time 4 -hls_time 8 -hls_list_size 10 -hls_flags delete_segments+discont_start+program_date_time -hls_start_number_source epoch -t 60 out_playlist.m3u8;cat out_playlist.m3u8
ffmpeg version N-91445-g6cc6b619b9 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 9.1.0 (clang-902.0.39.2)
  configuration: --enable-libass --enable-opengl --enable-libx264 --enable-libmp3lame --enable-gpl --enable-nonfree --prefix=/usr/local --enable-libopencv --enable-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox
  libavutil      56. 18.102 / 56. 18.102
  libavcodec     58. 21.104 / 58. 21.104
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 25.100 /  7. 25.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, lavfi, from 'nullsrc=s=352x288':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 352x288 [SAR 1:1 DAR 11:9], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x7fc51706a600] using SAR=1/1
[libx264 @ 0x7fc51706a600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fc51706a600] profile High, level 1.2
[libx264 @ 0x7fc51706a600] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 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=2 keyint=8 keyint_min=1 scenecut=40 intra_refresh=0 rc_lookahead=8 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128000.ts' for writing
Output #0, hls, to 'out_playlist.m3u8':
  Metadata:
    encoder         : Lavf58.17.101
    Stream #0:0: Video: h264 (libx264), yuv420p, 352x288 [SAR 1:1 DAR 11:9], q=-1--1, 4 fps, 90k tbn, 4 tbc
    Metadata:
      encoder         : Lavc58.21.104 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128001.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128002.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128003.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128004.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128005.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128006.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128007.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128008.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128009.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128010.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128011.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128012.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128013.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128014.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128015.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128016.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128017.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist1531128018.ts' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
[hls @ 0x7fc517068a00] Opening 'out_playlist.m3u8.tmp' for writing
frame=  240 fps=0.0 q=-1.0 Lsize=N/A time=00:00:59.50 bitrate=N/A dup=0 drop=1253 speed= 150x
video:6kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7fc51706a600] frame I:30    Avg QP: 0.30  size:    77
[libx264 @ 0x7fc51706a600] frame P:60    Avg QP: 5.52  size:    20
[libx264 @ 0x7fc51706a600] frame B:150   Avg QP: 6.61  size:    16
[libx264 @ 0x7fc51706a600] consecutive B-frames: 12.5%  0.0% 37.5% 50.0%
[libx264 @ 0x7fc51706a600] mb I  I16..4: 100.0%  0.0%  0.0%
[libx264 @ 0x7fc51706a600] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:100.0%
[libx264 @ 0x7fc51706a600] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.0%  skip:100.0%
[libx264 @ 0x7fc51706a600] 8x8 transform intra:0.0%
[libx264 @ 0x7fc51706a600] coded y,uvDC,uvAC intra: 0.0% 0.3% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7fc51706a600] i16 v,h,dc,p: 94%  0%  6%  0%
[libx264 @ 0x7fc51706a600] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x7fc51706a600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fc51706a600] kb/s:0.78
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:4
#EXT-X-MEDIA-SEQUENCE:1531128009
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:36.000+0800
out_playlist1531128009.ts
#EXTINF:4.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:40.000+0800
out_playlist1531128010.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:44.000+0800
out_playlist1531128011.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:46.000+0800
out_playlist1531128012.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:48.000+0800
out_playlist1531128013.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:50.000+0800
out_playlist1531128014.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:52.000+0800
out_playlist1531128015.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:54.000+0800
out_playlist1531128016.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:56.000+0800
out_playlist1531128017.ts
#EXTINF:2.000000,
#EXT-X-PROGRAM-DATE-TIME:2018-07-09T17:20:58.000+0800
out_playlist1531128018.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$

comment:3 Changed 3 months ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords hls added
  • Version changed from unspecified to git-master

comment:4 Changed 3 months ago by barhom

@stevenliu

Your patch works as expected. I see now what the problem was.
I believe this should be upstreamed.

Thanks

comment:5 Changed 2 months ago by stevenliu

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.