[FFmpeg-trac] #8356(undetermined:closed): HLS segments not split on keyframe when there's multiple video streams

FFmpeg trac at avcodec.org
Tue Nov 5 08:17:19 EET 2019


#8356: HLS segments not split on keyframe when there's multiple video streams
-------------------------------------+-------------------------------------
             Reporter:  kmamal       |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:  wontfix
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by stevenliu):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 It splited and the keyframe when it codec copy.

 {{{
 bogon:dash liuqi$ ./ffmpeg -report -i in.mp4 -c copy -f hls out.m3u8
 ffmpeg started on 2019-11-05 at 14:05:04
 Report written to "ffmpeg-20191105-140504.log"
 Log level: 48
 ffmpeg version N-95607-gb414cff630 Copyright (c) 2000-2019 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. 35.101 / 56. 35.101
   libavcodec     58. 60.100 / 58. 60.100
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 66.100 /  7. 66.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.29.100
   Duration: 00:00:10.02, start: 0.000000, bitrate: 817 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
 fltp, 347 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Output #0, hls, to 'out.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.33.100
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], q=2-31, 464 kb/s, 25 fps, 25 tbr, 90k tbn, 25
 tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
 fltp, 347 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [hls @ 0x7fb527800600] Opening 'out0.ts' for writing
 [hls @ 0x7fb527800600] Opening 'out.m3u8.tmp' for writing
 [hls @ 0x7fb527800600] Opening 'out1.ts' for writing
 [hls @ 0x7fb527800600] Opening 'out.m3u8.tmp' for writing
 frame=  250 fps=0.0 q=-1.0 Lsize=N/A time=00:00:09.98 bitrate=N/A speed=
 419x
 video:567kB audio:425kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 bogon:dash liuqi$ ffmpeg -i out0.ts -i out1.ts
 ffmpeg version N-95347-gc8813b1a98 Copyright (c) 2000-2019 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 --samples
 =fate-suite/ --enable-libopencv
   libavutil      56. 35.100 / 56. 35.100
   libavcodec     58. 59.102 / 58. 59.102
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 62.100 /  7. 62.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mpegts, from 'out0.ts':
   Duration: 00:00:08.42, start: 1.458667, bitrate: 927 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn,
 50 tbc
     Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F),
 48000 Hz, 5.1, fltp, 361 kb/s
 Input #1, mpegts, from 'out1.ts':
   Duration: 00:00:01.69, start: 9.800000, bitrate: 553 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #1:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(progressive), 640x480 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 90k tbn,
 50 tbc
     Stream #1:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F),
 48000 Hz, 5.1, fltp, 313 kb/s
 At least one output file must be specified
 bogon:dash liuqi$ ffprobe -show_packets -select_streams v -of xml in.mp4|
 grep -r "K_"
 ffprobe version N-95347-gc8813b1a98 Copyright (c) 2007-2019 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 --samples
 =fate-suite/ --enable-libopencv
   libavutil      56. 35.100 / 56. 35.100
   libavcodec     58. 59.102 / 58. 59.102
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 62.100 /  7. 62.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.29.100
   Duration: 00:00:10.02, start: 0.000000, bitrate: 817 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
 fltp, 347 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 (standard input):        <packet codec_type="video" stream_index="0"
 pts="0" pts_time="0.000000" dts="-1024" dts_time="-0.080000"
 duration="512" duration_time="0.040000" size="43644" pos="48" flags="K_"/>
 (standard input):        <packet codec_type="video" stream_index="0"
 pts="107520" pts_time="8.400000" dts="106496" dts_time="8.320000"
 duration="512" duration_time="0.040000" size="22962" pos="911006"
 flags="K_"/>
 bogon:dash liuqi$
 }}}

 your command will transcode the to streams.


 and attention one warning bellow:

 {{{
 bogon:dash liuqi$ ./ffmpeg -report -i in.mp4 -filter_complex:v
 "[0:v]split=2[a][b]"  -map "[a]" -map "[b]" -f hls out.m3u8
 ffmpeg started on 2019-11-05 at 14:10:41
 Report written to "ffmpeg-20191105-141041.log"
 Log level: 48
 ffmpeg version N-95607-gb414cff630 Copyright (c) 2000-2019 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. 35.101 / 56. 35.101
   libavcodec     58. 60.100 / 58. 60.100
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 66.100 /  7. 66.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.29.100
   Duration: 00:00:10.02, start: 0.000000, bitrate: 817 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
 fltp, 347 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 (h264) -> split
   split:output0 -> Stream #0:0 (libx264)
   split:output1 -> Stream #0:1 (libx264)
 Press [q] to stop, [?] for help
 [libx264 @ 0x7f86f5008c00] using SAR=1/1
 [libx264 @ 0x7f86f5008c00] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7f86f5008c00] profile High, level 3.0
 [libx264 @ 0x7f86f5008c00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - 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=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 [libx264 @ 0x7f86f500a400] using SAR=1/1
 [libx264 @ 0x7f86f500a400] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7f86f500a400] profile High, level 3.0
 [libx264 @ 0x7f86f500a400] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - 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=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 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 @ 0x7f86f5004800] More than a single video stream present, expect
 issues decoding it.
 Output #0, hls, to 'out.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.33.100
     Stream #0:0: Video: h264 (libx264), yuv420p(progressive), 640x480 [SAR
 1:1 DAR 4:3], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc58.60.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
     Stream #0:1: Video: h264 (libx264), yuv420p, 640x480 [SAR 1:1 DAR
 4:3], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc58.60.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 [hls @ 0x7f86f5004800] Opening 'out0.ts' for writing0:07.40 bitrate=N/A
 speed=2.08x
 [hls @ 0x7f86f5004800] Opening 'out.m3u8.tmp' for writing
 [hls @ 0x7f86f5004800] Opening 'out1.ts' for writing
 [hls @ 0x7f86f5004800] Opening 'out.m3u8.tmp' for writing
 [hls @ 0x7f86f5004800] Opening 'out2.ts' for writing
 [hls @ 0x7f86f5004800] Opening 'out.m3u8.tmp' for writing
 frame=  250 fps= 60 q=-1.0 Lq=-1.0 size=N/A time=00:00:09.92 bitrate=N/A
 speed=2.39x
 video:1019kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 [libx264 @ 0x7f86f5008c00] frame I:2     Avg QP:15.30  size: 32673
 [libx264 @ 0x7f86f5008c00] frame P:134   Avg QP:21.06  size:  2917
 [libx264 @ 0x7f86f5008c00] frame B:114   Avg QP:23.33  size:   568
 [libx264 @ 0x7f86f5008c00] consecutive B-frames: 31.2% 21.6%  7.2% 40.0%
 [libx264 @ 0x7f86f5008c00] mb I  I16..4: 38.4% 22.2% 39.5%
 [libx264 @ 0x7f86f5008c00] mb P  I16..4:  0.2%  1.0%  0.3%  P16..4: 24.2%
 6.9%  5.1%  0.0%  0.0%    skip:62.1%
 [libx264 @ 0x7f86f5008c00] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 23.0%
 1.4%  0.3%  direct: 0.3%  skip:74.8%  L0:38.5% L1:56.4% BI: 5.2%
 [libx264 @ 0x7f86f5008c00] 8x8 transform intra:46.4% inter:59.6%
 [libx264 @ 0x7f86f5008c00] coded y,uvDC,uvAC intra: 62.3% 75.5% 46.2%
 inter: 7.6% 10.5% 1.0%
 [libx264 @ 0x7f86f5008c00] i16 v,h,dc,p: 42% 33% 13% 11%
 [libx264 @ 0x7f86f5008c00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 11%  5%
 11% 12% 10%  9%  9%
 [libx264 @ 0x7f86f5008c00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 16%  5%
 7%  7%  6%  7%  6%
 [libx264 @ 0x7f86f5008c00] i8c dc,h,v,p: 52% 22% 17% 10%
 [libx264 @ 0x7f86f5008c00] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7f86f5008c00] ref P L0: 74.4% 17.1%  7.1%  1.4%
 [libx264 @ 0x7f86f5008c00] ref B L0: 96.1%  3.6%  0.4%
 [libx264 @ 0x7f86f5008c00] ref B L1: 99.0%  1.0%
 [libx264 @ 0x7f86f5008c00] kb/s:416.78
 [libx264 @ 0x7f86f500a400] frame I:2     Avg QP:15.30  size: 32673
 [libx264 @ 0x7f86f500a400] frame P:134   Avg QP:21.06  size:  2917
 [libx264 @ 0x7f86f500a400] frame B:114   Avg QP:23.33  size:   568
 [libx264 @ 0x7f86f500a400] consecutive B-frames: 31.2% 21.6%  7.2% 40.0%
 [libx264 @ 0x7f86f500a400] mb I  I16..4: 38.4% 22.2% 39.5%
 [libx264 @ 0x7f86f500a400] mb P  I16..4:  0.2%  1.0%  0.3%  P16..4: 24.2%
 6.9%  5.1%  0.0%  0.0%    skip:62.1%
 [libx264 @ 0x7f86f500a400] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 23.0%
 1.4%  0.3%  direct: 0.3%  skip:74.8%  L0:38.5% L1:56.4% BI: 5.2%
 [libx264 @ 0x7f86f500a400] 8x8 transform intra:46.4% inter:59.6%
 [libx264 @ 0x7f86f500a400] coded y,uvDC,uvAC intra: 62.3% 75.5% 46.2%
 inter: 7.6% 10.5% 1.0%
 [libx264 @ 0x7f86f500a400] i16 v,h,dc,p: 42% 33% 13% 11%
 [libx264 @ 0x7f86f500a400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 11%  5%
 11% 12% 10%  9%  9%
 [libx264 @ 0x7f86f500a400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 16%  5%
 7%  7%  6%  7%  6%
 [libx264 @ 0x7f86f500a400] i8c dc,h,v,p: 52% 22% 17% 10%
 [libx264 @ 0x7f86f500a400] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7f86f500a400] ref P L0: 74.4% 17.1%  7.1%  1.4%
 [libx264 @ 0x7f86f500a400] ref B L0: 96.1%  3.6%  0.4%
 [libx264 @ 0x7f86f500a400] ref B L1: 99.0%  1.0%
 [libx264 @ 0x7f86f500a400] kb/s:416.78
 bogon:dash liuqi$
 }}}

 the line: [hls @ 0x7f86f5004800] More than a single video stream present,
 expect issues decoding it.

 maybe you should use the command bellow:


 {{{
 bogon:dash liuqi$ ./ffmpeg -report -i in.mp4 -filter_complex:v
 "[0:v]split=2[a][b]"  -map "[a]" -map "[b]" -f hls -var_stream_map "v:0
 v:1" out-%v.m3u8
 ffmpeg started on 2019-11-05 at 14:16:09
 Report written to "ffmpeg-20191105-141609.log"
 Log level: 48
 ffmpeg version N-95607-gb414cff630 Copyright (c) 2000-2019 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. 35.101 / 56. 35.101
   libavcodec     58. 60.100 / 58. 60.100
   libavformat    58. 33.100 / 58. 33.100
   libavdevice    58.  9.100 / 58.  9.100
   libavfilter     7. 66.100 /  7. 66.100
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'in.mp4':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.29.100
   Duration: 00:00:10.02, start: 0.000000, bitrate: 817 kb/s
     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
 640x480 [SAR 1:1 DAR 4:3], 464 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc
 (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1,
 fltp, 347 kb/s (default)
     Metadata:
       handler_name    : SoundHandler
 Stream mapping:
   Stream #0:0 (h264) -> split
   split:output0 -> Stream #0:0 (libx264)
   split:output1 -> Stream #0:1 (libx264)
 Press [q] to stop, [?] for help
 [libx264 @ 0x7f986b802e00] using SAR=1/1
 [libx264 @ 0x7f986b802e00] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7f986b802e00] profile High, level 3.0
 [libx264 @ 0x7f986b802e00] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - 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=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 [libx264 @ 0x7f986b804600] using SAR=1/1
 [libx264 @ 0x7f986b804600] using cpu capabilities: MMX2 SSE2Fast SSSE3
 SSE4.2 AVX
 [libx264 @ 0x7f986b804600] profile High, level 3.0
 [libx264 @ 0x7f986b804600] 264 - core 148 r2694 3b70645 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - 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=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 Output #0, hls, to 'out-%v.m3u8':
   Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2avc1mp41
     encoder         : Lavf58.33.100
     Stream #0:0: Video: h264 (libx264), yuv420p(progressive), 640x480 [SAR
 1:1 DAR 4:3], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc58.60.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
     Stream #0:1: Video: h264 (libx264), yuv420p, 640x480 [SAR 1:1 DAR
 4:3], q=-1--1, 25 fps, 90k tbn, 25 tbc (default)
     Metadata:
       encoder         : Lavc58.60.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 [hls @ 0x7f986b811c00] Opening 'out-00.ts' for writing07.72 bitrate=N/A
 speed= 2.5x
 [hls @ 0x7f986b811c00] Opening 'out-0.m3u8.tmp' for writing
 [hls @ 0x7f986b811c00] Opening 'out-10.ts' for writing
 [hls @ 0x7f986b811c00] Opening 'out-1.m3u8.tmp' for writing
 [hls @ 0x7f986b811c00] Opening 'out-01.ts' for writing
 [hls @ 0x7f986b811c00] Opening 'out-0.m3u8.tmp' for writing
 [hls @ 0x7f986b811c00] Opening 'out-11.ts' for writing
 [hls @ 0x7f986b811c00] Opening 'out-1.m3u8.tmp' for writing
 frame=  250 fps= 73 q=-1.0 Lq=-1.0 size=N/A time=00:00:09.92 bitrate=N/A
 speed= 2.9x
 video:1019kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: unknown
 [libx264 @ 0x7f986b802e00] frame I:2     Avg QP:15.30  size: 32673
 [libx264 @ 0x7f986b802e00] frame P:134   Avg QP:21.06  size:  2917
 [libx264 @ 0x7f986b802e00] frame B:114   Avg QP:23.33  size:   568
 [libx264 @ 0x7f986b802e00] consecutive B-frames: 31.2% 21.6%  7.2% 40.0%
 [libx264 @ 0x7f986b802e00] mb I  I16..4: 38.4% 22.2% 39.5%
 [libx264 @ 0x7f986b802e00] mb P  I16..4:  0.2%  1.0%  0.3%  P16..4: 24.2%
 6.9%  5.1%  0.0%  0.0%    skip:62.1%
 [libx264 @ 0x7f986b802e00] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 23.0%
 1.4%  0.3%  direct: 0.3%  skip:74.8%  L0:38.5% L1:56.4% BI: 5.2%
 [libx264 @ 0x7f986b802e00] 8x8 transform intra:46.4% inter:59.6%
 [libx264 @ 0x7f986b802e00] coded y,uvDC,uvAC intra: 62.3% 75.5% 46.2%
 inter: 7.6% 10.5% 1.0%
 [libx264 @ 0x7f986b802e00] i16 v,h,dc,p: 42% 33% 13% 11%
 [libx264 @ 0x7f986b802e00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 11%  5%
 11% 12% 10%  9%  9%
 [libx264 @ 0x7f986b802e00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 16%  5%
 7%  7%  6%  7%  6%
 [libx264 @ 0x7f986b802e00] i8c dc,h,v,p: 52% 22% 17% 10%
 [libx264 @ 0x7f986b802e00] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7f986b802e00] ref P L0: 74.4% 17.1%  7.1%  1.4%
 [libx264 @ 0x7f986b802e00] ref B L0: 96.1%  3.6%  0.4%
 [libx264 @ 0x7f986b802e00] ref B L1: 99.0%  1.0%
 [libx264 @ 0x7f986b802e00] kb/s:416.78
 [libx264 @ 0x7f986b804600] frame I:2     Avg QP:15.30  size: 32673
 [libx264 @ 0x7f986b804600] frame P:134   Avg QP:21.06  size:  2917
 [libx264 @ 0x7f986b804600] frame B:114   Avg QP:23.33  size:   568
 [libx264 @ 0x7f986b804600] consecutive B-frames: 31.2% 21.6%  7.2% 40.0%
 [libx264 @ 0x7f986b804600] mb I  I16..4: 38.4% 22.2% 39.5%
 [libx264 @ 0x7f986b804600] mb P  I16..4:  0.2%  1.0%  0.3%  P16..4: 24.2%
 6.9%  5.1%  0.0%  0.0%    skip:62.1%
 [libx264 @ 0x7f986b804600] mb B  I16..4:  0.0%  0.1%  0.0%  B16..8: 23.0%
 1.4%  0.3%  direct: 0.3%  skip:74.8%  L0:38.5% L1:56.4% BI: 5.2%
 [libx264 @ 0x7f986b804600] 8x8 transform intra:46.4% inter:59.6%
 [libx264 @ 0x7f986b804600] coded y,uvDC,uvAC intra: 62.3% 75.5% 46.2%
 inter: 7.6% 10.5% 1.0%
 [libx264 @ 0x7f986b804600] i16 v,h,dc,p: 42% 33% 13% 11%
 [libx264 @ 0x7f986b804600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 15% 11%  5%
 11% 12% 10%  9%  9%
 [libx264 @ 0x7f986b804600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 16%  5%
 7%  7%  6%  7%  6%
 [libx264 @ 0x7f986b804600] i8c dc,h,v,p: 52% 22% 17% 10%
 [libx264 @ 0x7f986b804600] Weighted P-Frames: Y:0.0% UV:0.0%
 [libx264 @ 0x7f986b804600] ref P L0: 74.4% 17.1%  7.1%  1.4%
 [libx264 @ 0x7f986b804600] ref B L0: 96.1%  3.6%  0.4%
 [libx264 @ 0x7f986b804600] ref B L1: 99.0%  1.0%
 [libx264 @ 0x7f986b804600] kb/s:416.78
 bogon:dash liuqi$ cat out-0.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:8
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.400000,
 out-00.ts
 #EXTINF:1.600000,
 out-01.ts
 #EXT-X-ENDLIST
 bogon:dash liuqi$ cat out-1.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:8
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.400000,
 out-10.ts
 #EXTINF:1.600000,
 out-11.ts
 #EXT-X-ENDLIST
 bogon:dash liuqi$
 }}}

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


More information about the FFmpeg-trac mailing list