Opened 6 years ago

Closed 5 years ago

#7438 closed defect (needs_more_info)

Transcoding multiple HLS outputs causes corruption in m3u8 index filename

Reported by: ehollander Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Carl Eugen Hoyos)

Summary of the bug:Encoding 1 input file to 4 different outputs causes 2nd and 3rd m3u8 index filenames to be corrupt (additional junk characters appended) on Windows 10. (Input file was a large 4K video)
How to reproduce:
issue the following command on Windows 10:

ffmpeg -i %video% -c:v libx264 -profile:v high -level 3.1 -s 1920x1080 -b:v 800k -maxrate 800k -bufsize 2M -flags +cgop -g 600 -hls_list_size 0 -hls_time 10 -f hls %folder%/out0800_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1000k -maxrate 1000k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out1000_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1500k -maxrate 1500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out1500_.m3u8​^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 2500k -maxrate 2500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out2500_.m3u8​

Change History (12)

comment:1 by Steven Liu, 6 years ago

try as this command:

ffmpeg -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \
  -map 0:v -map 0:a -map 0:v -map 0:a -f hls -var_stream_map "v:0,a:0 v:1,a:1" \
  -hls_segment_filename 'file_%v_%03d.ts' out_%v.m3u8

comment:2 by Carl Eugen Hoyos, 6 years ago

Description: modified (diff)
Keywords: hls added

comment:3 by ehollander, 6 years ago

Sorry but how does that help? Your taking as input a *.ts which is completly different than the goal of the command I was asking about. In my case I am taking in an mp4 and transcoding it to an HLS file.

comment:4 by Carl Eugen Hoyos, 6 years ago

Pleas provide an actual command line without variables but using testsrc2 and sine as input and provide the command line together with the complete, uncut console output to make this a valid ticket.

comment:5 by ehollander, 6 years ago

ffmpeg -i testsrc2.mp4 -c:v libx264 -profile:v high -level 3.1 -s 1920x1080 -b:v 800k -maxrate 800k -bufsize 2M -flags +cgop -g 600 -hls_list_size 0 -hls_time 10 -f hls c:/users/name/documents/video/out/out0800_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1000k -maxrate 1000k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls c:/users/name/documents/video/out/out1000_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1500k -maxrate 1500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls c:/users/name/documents/video/out/out1500_.m3u8​^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 2500k -maxrate 2500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls c:/users/name/documents/video/out/out2500_.m3u8​

See the above for an updated command that uses testrc2.mp4 as the input file.

Last edited 6 years ago by Carl Eugen Hoyos (previous) (diff)

comment:6 by Carl Eugen Hoyos, 6 years ago

testsrc2 is a video filter that would allow to test your issue without needing your input file.

comment:7 by ehollander, 6 years ago

I'm sorry, I don't understand. Is that a question, a statement? Is there something you want me to run? Please explain.

comment:8 by Carl Eugen Hoyos, 6 years ago

Please provide a complete, actual command line starting as follows together with the complete, uncut console output to make this a valid ticket:

$ ffmpeg -f lavfi -i testsrc2 -c:v libx264 -profile:v ...

or, with audio:

$ ffmpeg -f lavfi -i testsrc2 -f lavfi -i sine -c:v libx264 -profile:v ...

comment:9 by ehollander, 6 years ago

I'm done. I've given you everything you need to duplicate and understand the issue. If you choose not to fix it fine.

comment:10 by Carl Eugen Hoyos, 6 years ago

Sorry, I did not understand the issue, that is why I asked you to provide the command line you tested together with the complete, uncut console output: This is what we require for every bug report, you have not provided it so far.
You can make reproducing the issue much easier for me by using (code blocks and) FFmpeg's internal input so that I don't have to try finding an input file with the same behaviour as your file.

Since you provided neither the console output (that would allow me to guess how the input file has to look like) nor the input file, the issue is difficult for me to reproduce as I hope you understand...

comment:11 by Steven Liu, 6 years ago

Can you provide the problem? Maybe i misunderstand your mean.
Test step is bellow:

MacBook:xxx StevenLiu$ ffmpeg -i testsrc2.mp4 -c:v libx264 -profile:v high -level 3.1 -s 1920x1080 -b:v 800k -maxrate 800k -bufsize 2M -flags +cgop -g 60 -r:v 30 -sc_threshold 0 -hls_list_size 0 -hls_time 2 -f hls out/out0800_.m3u8 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1000k -maxrate 1000k -bufsize 1M -flags +cgop -g 60 -r:v 30 -sc_threshold 0 -hls_list_size 0 -hls_time 2 -f hls out/out1000_.m3u8  -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1500k -maxrate 1500k -bufsize 1M -flags +cgop -g 60 -r:v 30 -sc_threshold 0 -hls_list_size 0 -hls_time 2 -f hls out/out1500_.m3u8 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 2500k -maxrate 2500k -bufsize 1M -r:v 30 -flags +cgop -g 60 -sc_threshold 0  -hls_list_size 0 -hls_time 2 -f hls out/out2500_.m3u8
ffmpeg version N-91602-g19acf1df62 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-libtesseract --enable-libspeex --enable-libfreetype --enable-libfontconfig --enable-libfdk-aac --enable-videotoolbox --enable-libxml2 --enable-librsvg
  libavutil      56. 19.100 / 56. 19.100
  libavcodec     58. 22.101 / 58. 22.101
  libavformat    58. 17.101 / 58. 17.101
  libavdevice    58.  4.101 / 58.  4.101
  libavfilter     7. 26.100 /  7. 26.100
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'testsrc2.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))
  Stream #0:0 -> #1:0 (h264 (native) -> h264 (libx264))
  Stream #0:2 -> #1:1 (ac3 (native) -> aac (native))
  Stream #0:0 -> #2:0 (h264 (native) -> h264 (libx264))
  Stream #0:2 -> #2:1 (ac3 (native) -> aac (native))
  Stream #0:0 -> #3:0 (h264 (native) -> h264 (libx264))
  Stream #0:2 -> #3:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7fe39a00a000] using SAR=1/1
[libx264 @ 0x7fe39a00a000] frame MB size (120x68) > level limit (3600)
[libx264 @ 0x7fe39a00a000] DPB size (4 frames, 32640 mbs) > level limit (2 frames, 18000 mbs)
[libx264 @ 0x7fe39a00a000] MB rate (244800) > level limit (108000)
[libx264 @ 0x7fe39a00a000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fe39a00a000] profile High, level 3.1
[libx264 @ 0x7fe39a00a000] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 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=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=800 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=800 vbv_bufsize=2000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x7fe39a00da00] using SAR=1/1
[libx264 @ 0x7fe39a00da00] frame MB size (120x68) > level limit (3600)
[libx264 @ 0x7fe39a00da00] DPB size (4 frames, 32640 mbs) > level limit (2 frames, 18000 mbs)
[libx264 @ 0x7fe39a00da00] MB rate (244800) > level limit (108000)
[libx264 @ 0x7fe39a00da00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fe39a00da00] profile High, level 3.1
[libx264 @ 0x7fe39a00da00] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 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=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=1000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1000 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x7fe39a028400] using SAR=1/1
[libx264 @ 0x7fe39a028400] frame MB size (120x68) > level limit (3600)
[libx264 @ 0x7fe39a028400] DPB size (4 frames, 32640 mbs) > level limit (2 frames, 18000 mbs)
[libx264 @ 0x7fe39a028400] MB rate (244800) > level limit (108000)
[libx264 @ 0x7fe39a028400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fe39a028400] profile High, level 3.1
[libx264 @ 0x7fe39a028400] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 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=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=1500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=1500 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
[libx264 @ 0x7fe39a02be00] using SAR=1/1
[libx264 @ 0x7fe39a02be00] frame MB size (120x68) > level limit (3600)
[libx264 @ 0x7fe39a02be00] DPB size (4 frames, 32640 mbs) > level limit (2 frames, 18000 mbs)
[libx264 @ 0x7fe39a02be00] MB rate (244800) > level limit (108000)
[libx264 @ 0x7fe39a02be00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[libx264 @ 0x7fe39a02be00] profile High, level 3.1
[libx264 @ 0x7fe39a02be00] 264 - core 133 r2334M a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=1 ref=2 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=60 keyint_min=6 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=cbr mbtree=1 bitrate=2500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=2500 vbv_bufsize=1000 nal_hrd=none ip_ratio=1.40 aq=1:1.00
[aac @ 0x7fe39a00b800] Using a PCE to encode channel layout
[hls @ 0x7fe39a008400] Opening 'out/out0800_0.ts' for writing
Output #0, hls, to 'out/out0800_.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.17.101
    Stream #0:0(und): Video: h264 (libx264), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 800 kb/s, 30 fps, 90k tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc58.22.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 800000/0/800000 buffer size: 2000000 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.22.101 aac
    Side data:
      audio service type: main
[aac @ 0x7fe39a026200] Using a PCE to encode channel layout
[hls @ 0x7fe39a00be00] Opening 'out/out1000_0.ts' for writing
Output #1, hls, to 'out/out1000_.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.17.101
    Stream #1:0(und): Video: h264 (libx264), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1000 kb/s, 30 fps, 90k tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc58.22.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 1000000/0/1000000 buffer size: 1000000 vbv_delay: -1
    Stream #1: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.22.101 aac
    Side data:
      audio service type: main
[aac @ 0x7fe39a029c00] Using a PCE to encode channel layout
[hls @ 0x7fe39a026800] Opening 'out/out1500_0.ts' for writing
Output #2, hls, to 'out/out1500_.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.17.101
    Stream #2:0(und): Video: h264 (libx264), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 1500 kb/s, 30 fps, 90k tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc58.22.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 1500000/0/1500000 buffer size: 1000000 vbv_delay: -1
    Stream #2: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.22.101 aac
    Side data:
      audio service type: main
[aac @ 0x7fe39a02d600] Using a PCE to encode channel layout
[hls @ 0x7fe39a02a200] Opening 'out/out2500_0.ts' for writing
Output #3, hls, to 'out/out2500_.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.17.101
    Stream #3:0(und): Video: h264 (libx264), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 2500 kb/s, 30 fps, 90k tbn, 30 tbc (default)
    Metadata:
      creation_time   : 2013-12-16T17:44:39.000000Z
      handler_name    : GPAC ISO Video Handler
      encoder         : Lavc58.22.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 2500000/0/2500000 buffer size: 1000000 vbv_delay: -1
    Stream #3: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.22.101 aac
    Side data:
      audio service type: main
[hls @ 0x7fe39a008400] Opening 'out/out0800_1.ts' for writing=00:00:03.30 bitrate=N/A dup=8 drop=0 speed=0.502x
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_1.ts' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_1.ts' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_1.ts' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
[hls @ 0x7fe39a008400] Opening 'out/out0800_2.ts' for writing=00:00:05.22 bitrate=N/A dup=8 drop=0 speed=0.431x
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_2.ts' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_2.ts' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_2.ts' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
[hls @ 0x7fe39a008400] Opening 'out/out0800_3.ts' for writing=00:00:07.18 bitrate=N/A dup=8 drop=0 speed=0.306x
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_3.ts' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_3.ts' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_3.ts' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
[hls @ 0x7fe39a008400] Opening 'out/out0800_4.ts' for writing=00:00:09.55 bitrate=N/A dup=8 drop=0 speed=0.282x
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_4.ts' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_4.ts' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_4.ts' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
[hls @ 0x7fe39a008400] Opening 'out/out0800_5.ts' for writing=00:00:10.98 bitrate=N/A dup=8 drop=0 speed=0.256x
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_5.ts' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_5.ts' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_5.ts' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
[hls @ 0x7fe39a008400] Opening 'out/out0800_.m3u8.tmp' for writing
[hls @ 0x7fe39a00be00] Opening 'out/out1000_.m3u8.tmp' for writing
[hls @ 0x7fe39a026800] Opening 'out/out1500_.m3u8.tmp' for writing
[hls @ 0x7fe39a02a200] Opening 'out/out2500_.m3u8.tmp' for writing
frame=  340 fps=6.7 q=-1.0 Lq=-1.0 q=-1.0 q=-1.0 size=N/A time=00:00:11.26 bitrate=N/A dup=8 drop=0 speed=0.224x
video:5892kB audio:2130kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7fe39a00a000] frame I:6     Avg QP:21.19  size: 33369
[libx264 @ 0x7fe39a00a000] frame P:147   Avg QP:26.20  size:  4397
[libx264 @ 0x7fe39a00a000] frame B:187   Avg QP:23.82  size:   932
[libx264 @ 0x7fe39a00a000] consecutive B-frames: 19.1% 19.4%  9.7% 51.8%
[libx264 @ 0x7fe39a00a000] mb I  I16..4: 75.0% 19.7%  5.3%
[libx264 @ 0x7fe39a00a000] mb P  I16..4:  6.1%  7.3%  0.1%  P16..4:  8.3%  0.8%  0.6%  0.0%  0.0%    skip:76.9%
[libx264 @ 0x7fe39a00a000] mb B  I16..4:  0.5%  0.1%  0.0%  B16..8:  6.3%  0.1%  0.0%  direct: 3.7%  skip:89.2%  L0:37.9% L1:61.5% BI: 0.7%
[libx264 @ 0x7fe39a00a000] 8x8 transform intra:45.0% inter:69.6%
[libx264 @ 0x7fe39a00a000] coded y,uvDC,uvAC intra: 6.2% 19.3% 4.1% inter: 0.7% 3.6% 0.2%
[libx264 @ 0x7fe39a00a000] i16 v,h,dc,p: 75% 17%  5%  3%
[libx264 @ 0x7fe39a00a000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  8%  4% 83%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x7fe39a00a000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 19% 21%  6%  7%  6%  7%  4%  6%
[libx264 @ 0x7fe39a00a000] i8c dc,h,v,p: 75% 14% 10%  1%
[libx264 @ 0x7fe39a00a000] Weighted P-Frames: Y:16.3% UV:15.6%
[libx264 @ 0x7fe39a00a000] ref P L0: 82.5%  5.7% 11.6%  0.2%
[libx264 @ 0x7fe39a00a000] ref B L0: 88.6% 11.4%
[libx264 @ 0x7fe39a00a000] ref B L1: 98.2%  1.8%
[libx264 @ 0x7fe39a00a000] kb/s:720.64
[aac @ 0x7fe39a00b800] Qavg: 197.695
[libx264 @ 0x7fe39a00da00] frame I:6     Avg QP:20.97  size: 33761
[libx264 @ 0x7fe39a00da00] frame P:147   Avg QP:25.04  size:  5080
[libx264 @ 0x7fe39a00da00] frame B:187   Avg QP:23.03  size:  1000
[libx264 @ 0x7fe39a00da00] consecutive B-frames: 19.1% 19.4%  9.7% 51.8%
[libx264 @ 0x7fe39a00da00] mb I  I16..4: 74.1% 20.7%  5.3%
[libx264 @ 0x7fe39a00da00] mb P  I16..4:  6.2%  6.9%  0.1%  P16..4:  9.5%  1.1%  0.9%  0.0%  0.0%    skip:75.2%
[libx264 @ 0x7fe39a00da00] mb B  I16..4:  0.6%  0.0%  0.0%  B16..8:  7.3%  0.2%  0.0%  direct: 3.8%  skip:88.1%  L0:37.3% L1:62.1% BI: 0.6%
[libx264 @ 0x7fe39a00da00] 8x8 transform intra:43.0% inter:67.4%
[libx264 @ 0x7fe39a00da00] coded y,uvDC,uvAC intra: 6.8% 19.7% 4.5% inter: 0.9% 3.9% 0.2%
[libx264 @ 0x7fe39a00da00] i16 v,h,dc,p: 74% 17%  5%  3%
[libx264 @ 0x7fe39a00da00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10%  5% 80%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x7fe39a00da00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 18% 21%  6%  7%  5%  7%  4%  6%
[libx264 @ 0x7fe39a00da00] i8c dc,h,v,p: 73% 15% 11%  1%
[libx264 @ 0x7fe39a00da00] Weighted P-Frames: Y:16.3% UV:15.6%
[libx264 @ 0x7fe39a00da00] ref P L0: 82.8%  5.5% 11.5%  0.2%
[libx264 @ 0x7fe39a00da00] ref B L0: 88.8% 11.2%
[libx264 @ 0x7fe39a00da00] ref B L1: 98.2%  1.8%
[libx264 @ 0x7fe39a00da00] kb/s:802.15
[aac @ 0x7fe39a026200] Qavg: 197.695
[libx264 @ 0x7fe39a028400] frame I:6     Avg QP:18.49  size: 42077
[libx264 @ 0x7fe39a028400] frame P:147   Avg QP:22.44  size:  7196
[libx264 @ 0x7fe39a028400] frame B:187   Avg QP:20.59  size:  1324
[libx264 @ 0x7fe39a028400] consecutive B-frames: 19.1% 19.4%  9.7% 51.8%
[libx264 @ 0x7fe39a028400] mb I  I16..4: 74.9% 19.0%  6.0%
[libx264 @ 0x7fe39a028400] mb P  I16..4:  6.9%  6.9%  0.2%  P16..4: 11.8%  1.7%  1.4%  0.0%  0.0%    skip:71.2%
[libx264 @ 0x7fe39a028400] mb B  I16..4:  0.6%  0.0%  0.0%  B16..8:  9.4%  0.2%  0.1%  direct: 3.8%  skip:85.8%  L0:38.2% L1:61.2% BI: 0.6%
[libx264 @ 0x7fe39a028400] 8x8 transform intra:40.9% inter:63.1%
[libx264 @ 0x7fe39a028400] coded y,uvDC,uvAC intra: 7.5% 20.8% 5.2% inter: 1.4% 4.6% 0.4%
[libx264 @ 0x7fe39a028400] i16 v,h,dc,p: 73% 18%  6%  4%
[libx264 @ 0x7fe39a028400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14%  6% 74%  1%  1%  1%  1%  1%  1%
[libx264 @ 0x7fe39a028400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 18% 19%  6%  7%  6%  7%  4%  6%
[libx264 @ 0x7fe39a028400] i8c dc,h,v,p: 71% 16% 12%  1%
[libx264 @ 0x7fe39a028400] Weighted P-Frames: Y:16.3% UV:15.6%
[libx264 @ 0x7fe39a028400] ref P L0: 82.6%  5.5% 11.7%  0.2%
[libx264 @ 0x7fe39a028400] ref B L0: 90.0% 10.0%
[libx264 @ 0x7fe39a028400] ref B L1: 97.9%  2.1%
[libx264 @ 0x7fe39a028400] kb/s:1099.60
[aac @ 0x7fe39a029c00] Qavg: 197.695
[libx264 @ 0x7fe39a02be00] frame I:6     Avg QP:16.34  size: 47928
[libx264 @ 0x7fe39a02be00] frame P:147   Avg QP:19.12  size: 11450
[libx264 @ 0x7fe39a02be00] frame B:187   Avg QP:16.84  size:  1844
[libx264 @ 0x7fe39a02be00] consecutive B-frames: 19.1% 19.4%  9.7% 51.8%
[libx264 @ 0x7fe39a02be00] mb I  I16..4: 75.1% 18.4%  6.5%
[libx264 @ 0x7fe39a02be00] mb P  I16..4:  8.9%  5.4%  0.3%  P16..4: 15.3%  2.7%  2.2%  0.0%  0.0%    skip:65.1%
[libx264 @ 0x7fe39a02be00] mb B  I16..4:  0.6%  0.0%  0.0%  B16..8: 11.7%  0.3%  0.1%  direct: 4.0%  skip:83.2%  L0:39.1% L1:59.9% BI: 1.0%
[libx264 @ 0x7fe39a02be00] 8x8 transform intra:31.8% inter:59.4%
[libx264 @ 0x7fe39a02be00] coded y,uvDC,uvAC intra: 8.4% 22.6% 6.7% inter: 2.2% 5.9% 0.8%
[libx264 @ 0x7fe39a02be00] i16 v,h,dc,p: 73% 17%  6%  4%
[libx264 @ 0x7fe39a02be00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11%  8% 71%  1%  2%  1%  2%  1%  2%
[libx264 @ 0x7fe39a02be00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 18% 18%  5%  6%  5%  6%  4%  6%
[libx264 @ 0x7fe39a02be00] i8c dc,h,v,p: 70% 17% 12%  1%
[libx264 @ 0x7fe39a02be00] Weighted P-Frames: Y:16.3% UV:15.6%
[libx264 @ 0x7fe39a02be00] ref P L0: 81.1%  5.1% 13.7%  0.2%
[libx264 @ 0x7fe39a02be00] ref B L0: 88.2% 11.8%
[libx264 @ 0x7fe39a02be00] ref B L1: 97.2%  2.8%
[libx264 @ 0x7fe39a02be00] kb/s:1634.53
[aac @ 0x7fe39a02d600] Qavg: 197.695
MacBook:xxx StevenLiu$ ffmpeg
MacBook:xxx StevenLiu$ cat out
MacBook:xxx StevenLiu$ ls
Makefile      a.ts          config.h      ffmpeg        ffplay_g      fftools       libavfilter   libpostproc   out           testsrc2.mp4
Waveforms.svg b.svg         doc           ffmpeg_g      ffprobe       libavcodec    libavformat   libswresample src
a.svg         config.asm    ffbuild       ffplay        ffprobe_g     libavdevice   libavutil     libswscale    tests
MacBook:xxx StevenLiu$ ls out/
out0800_.m3u8 out0800_2.ts  out0800_5.ts  out1000_1.ts  out1000_4.ts  out1500_0.ts  out1500_3.ts  out2500_.m3u8 out2500_2.ts  out2500_5.ts  xxx1.ts       xxx4.ts
out0800_0.ts  out0800_3.ts  out1000_.m3u8 out1000_2.ts  out1000_5.ts  out1500_1.ts  out1500_4.ts  out2500_0.ts  out2500_3.ts  xxx.m3u8      xxx2.ts       xxx5.ts
out0800_1.ts  out0800_4.ts  out1000_0.ts  out1000_3.ts  out1500_.m3u8 out1500_2.ts  out1500_5.ts  out2500_1.ts  out2500_4.ts  xxx0.ts       xxx3.ts
MacBook:xxx StevenLiu$ cat out/out0800_.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2.000000,
out0800_0.ts
#EXTINF:2.000000,
out0800_1.ts
#EXTINF:2.000000,
out0800_2.ts
#EXTINF:2.000000,
out0800_3.ts
#EXTINF:2.000000,
out0800_4.ts
#EXTINF:1.333333,
out0800_5.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ cat out/out1000_.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2.000000,
out1000_0.ts
#EXTINF:2.000000,
out1000_1.ts
#EXTINF:2.000000,
out1000_2.ts
#EXTINF:2.000000,
out1000_3.ts
#EXTINF:2.000000,
out1000_4.ts
#EXTINF:1.333333,
out1000_5.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ cat out/out1500_.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2.000000,
out1500_0.ts
#EXTINF:2.000000,
out1500_1.ts
#EXTINF:2.000000,
out1500_2.ts
#EXTINF:2.000000,
out1500_3.ts
#EXTINF:2.000000,
out1500_4.ts
#EXTINF:1.333333,
out1500_5.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$ cat out/out2500_.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:2.000000,
out2500_0.ts
#EXTINF:2.000000,
out2500_1.ts
#EXTINF:2.000000,
out2500_2.ts
#EXTINF:2.000000,
out2500_3.ts
#EXTINF:2.000000,
out2500_4.ts
#EXTINF:1.333333,
out2500_5.ts
#EXT-X-ENDLIST
MacBook:xxx StevenLiu$
MacBook:xxx StevenLiu$

comment:12 by Steven Liu, 5 years ago

Resolution: needs_more_info
Status: newclosed
Note: See TracTickets for help on using tickets.