[FFmpeg-user] mkv concat list > non monotonically increasing
Jon bae
jonbae77 at gmail.com
Fri Jul 1 14:18:20 CEST 2016
2016-07-01 13:05 GMT+02:00 Carl Eugen Hoyos <cehoyos at ag.or.at>:
>
> When asking for help here, please provide an actual command
> line (without variables) including its complete, uncut
> console output, don't forget to test current FFmpeg git
> head.
>
>
Ok I make a fresh new pull from ffmpeg.
My ffmpeg concat command is this:
ffmpeg -f concat -safe 0 -i /z/Jonathan/tmp/2016-07-03_check.list -c copy
-flags global_header -f null - 2> /z/Jonathan/tmp/out.txt
The full, uncut, output is to long for here, so you found it here:
https://gist.github.com/jb-alvarado/d59dff731d9096140891c08db684ad00
Here is compression command:
ffmpeg -i '/z/video.mp4' -i "/z/logo.png" -filter_complex
"[0:v]scale=640:360[s];[s][1:v]overlay=W-w-2:0[o]" -map [o] -map 0:a -r 25
-sws_flags bilinear+accurate_rnd+full_chroma_int -pix_fmt yuv420p -c:v
libx264 -crf 21 -g 25 -maxrate 750k -bufsize 750k -preset slower -profile:v
Main -level 3.1 -refs 3 -x264opts stitchable -c:a aac -b:a 128k -movflags
faststart '/z/out.mkv'
And the output:
ffmpeg version N-80893-g9ef5875-g2a8dadb+1 Copyright (c) 2000-2016 the
FFmpeg developers
built with gcc 5.4.0 (Rev1, Built by MSYS2 project)
configuration: --enable-avisynth --enable-gcrypt --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-decklink --enable-libzimg --enable-opengl
--enable-libfdk-aac --disable-w32threads --enable-gpl --enable-nonfree
--disable-debug
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Z:/video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.29.100
Duration: 00:53:54.52, start: 0.000000, bitrate: 2189 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
1024x576 [SAR 1:1 DAR 16:9], 1974 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,
stereo, fltp, 206 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, png_pipe, from 'Z:/logo.png':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: png, rgba(pc), 85x85 [SAR 2835:2835 DAR 1:1], 25
tbr, 25 tbn, 25 tbc
File 'Z:/Jonathan/tmp/out.mkv' already exists. Overwrite ? [y/N] y
[libx264 @ 00000204cfead240] using SAR=1/1
[libx264 @ 00000204cfead240] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 00000204cfead240] profile Main, level 3.1
[libx264 @ 00000204cfead240] 264 - core 148 r2705 3f5ed56 - 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=0x1:0x131 me=umh subme=9 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=0
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 stitchable=1 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=25
keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1
crf=21.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=750
vbv_bufsize=750 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[matroska @ 00000204cfeabfa0] Using AVStream.codec to pass codec parameters
to muxers is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, matroska, to 'Z:/Jonathan/tmp/out.mkv':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.41.100
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p,
640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)
Metadata:
encoder : Lavc57.48.101 libx264
Side data:
cpb: bitrate max/min/avg: 750000/0/0 buffer size: 750000 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz,
stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
encoder : Lavc57.48.101 aac
Stream mapping:
Stream #0:0 (h264) -> scale (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame=80863 fps=132 q=-1.0 Lsize= 274520kB time=00:53:54.40 bitrate=
695.3kbits/s speed=5.27x
video:220601kB audio:52205kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.628366%
[libx264 @ 00000204cfead240] frame I:3235 Avg QP:16.85 size: 21406
[libx264 @ 00000204cfead240] frame P:22830 Avg QP:19.83 size: 4390
[libx264 @ 00000204cfead240] frame B:54798 Avg QP:20.98 size: 1030
[libx264 @ 00000204cfead240] consecutive B-frames: 5.8% 7.0% 13.2% 73.9%
[libx264 @ 00000204cfead240] mb I I16..4: 43.7% 0.0% 56.3%
[libx264 @ 00000204cfead240] mb P I16..4: 7.4% 0.0% 1.8% P16..4:
47.0% 9.1% 13.4% 0.9% 0.3% skip:20.0%
[libx264 @ 00000204cfead240] mb B I16..4: 0.6% 0.0% 0.1% B16..8:
32.8% 3.3% 0.7% direct: 4.6% skip:57.9% L0:40.0% L1:51.0% BI: 9.1%
[libx264 @ 00000204cfead240] direct mvs spatial:100.0% temporal:0.0%
[libx264 @ 00000204cfead240] coded y,uvDC,uvAC intra: 41.4% 72.8% 38.6%
inter: 6.6% 23.1% 0.3%
[libx264 @ 00000204cfead240] i16 v,h,dc,p: 59% 13% 21% 8%
[libx264 @ 00000204cfead240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 9% 11% 10%
12% 11% 10% 11% 12%
[libx264 @ 00000204cfead240] i8c dc,h,v,p: 31% 37% 23% 9%
[libx264 @ 00000204cfead240] Weighted P-Frames: Y:1.4% UV:0.8%
[libx264 @ 00000204cfead240] ref P L0: 62.4% 7.9% 19.9% 9.8% 0.1%
[libx264 @ 00000204cfead240] ref B L0: 82.7% 13.1% 4.2%
[libx264 @ 00000204cfead240] ref B L1: 94.8% 5.2%
[libx264 @ 00000204cfead240] kb/s:558.71
[aac @ 00000204d1b58380] Qavg: 888.176
One thing I found out now is: when I try to recompress the clip, like:
ffmpeg -i '/z/out.mkv' -pix_fmt yuv420p -c:v libx264 -crf 21 -g 25 -maxrate
750k -bufsize 750k -preset slower -profile:v Main -level 3.1 -refs 3
-x264opts stitchable -c:a aac -b:a 128k -movflags faststart '/z/out2.mkv'
I got this message:
[aac @ 000002614f6470c0] Queue input is backward in time
This I can reproduce.
Here the second full output:
ffmpeg version N-80893-g9ef5875-g2a8dadb+1 Copyright (c) 2000-2016 the
FFmpeg developers
built with gcc 5.4.0 (Rev1, Built by MSYS2 project)
configuration: --enable-avisynth --enable-gcrypt --enable-libmp3lame
--enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264
--enable-libx265 --enable-decklink --enable-libzimg --enable-opengl
--enable-libfdk-aac --disable-w32threads --enable-gpl --enable-nonfree
--disable-debug
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Input #0, matroska,webm, from '/z/out.mkv':
Metadata:
COMPATIBLE_BRANDS: isomiso2avc1mp41
MAJOR_BRAND : isom
MINOR_VERSION : 512
ENCODER : Lavf57.28.102
Duration: 00:53:54.58, start: 0.000000, bitrate: 695 kb/s
Stream #0:0: Video: h264 (Main), yuv420p, 640x360 [SAR 1:1 DAR 16:9],
25 fps, 25 tbr, 1k tbn, 50 tbc (default)
Metadata:
ENCODER : Lavc57.28.103 libx264
DURATION : 00:53:54.581000000
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : SoundHandler
ENCODER : Lavc57.28.103 aac
DURATION : 00:53:54.314000000
[libx264 @ 0000019fe33a54e0] using SAR=1/1
[libx264 @ 0000019fe33a54e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0000019fe33a54e0] profile Main, level 3.1
[libx264 @ 0000019fe33a54e0] 264 - core 148 r2705 3f5ed56 - 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=0x1:0x131 me=umh subme=9 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=0
cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=11
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 stitchable=1 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=25
keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=25 rc=crf mbtree=1
crf=21.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=750
vbv_bufsize=750 crf_max=0.0 nal_hrd=none filler=0 ip_ratio=1.40 aq=1:1.00
[matroska @ 0000019fe19ae6a0] Using AVStream.codec to pass codec parameters
to muxers is deprecated, use AVStream.codecpar instead.
Last message repeated 1 times
Output #0, matroska, to '/z/out2.mkv':
Metadata:
COMPATIBLE_BRANDS: isomiso2avc1mp41
MAJOR_BRAND : isom
MINOR_VERSION : 512
encoder : Lavf57.41.100
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv420p,
640x360 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 1k tbn, 25 tbc (default)
Metadata:
DURATION : 00:53:54.581000000
encoder : Lavc57.48.101 libx264
Side data:
cpb: bitrate max/min/avg: 750000/0/0 buffer size: 750000 vbv_delay: -1
Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz,
stereo, fltp, 128 kb/s (default)
Metadata:
HANDLER_NAME : SoundHandler
DURATION : 00:53:54.314000000
encoder : Lavc57.48.101 aac
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[aac @ 0000019fe32c19e0] Queue input is backward in time
frame= 833 fps=153 q=-1.0 Lsize= 2764kB time=00:00:33.68 bitrate=
672.4kbits/s speed=6.17x
video:2208kB audio:537kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.685615%
[libx264 @ 0000019fe33a54e0] frame I:34 Avg QP:14.17 size: 15990
[libx264 @ 0000019fe33a54e0] frame P:237 Avg QP:16.92 size: 4291
[libx264 @ 0000019fe33a54e0] frame B:562 Avg QP:18.73 size: 1246
[libx264 @ 0000019fe33a54e0] consecutive B-frames: 5.8% 8.2% 14.0% 72.0%
[libx264 @ 0000019fe33a54e0] mb I I16..4: 52.7% 0.0% 47.3%
[libx264 @ 0000019fe33a54e0] mb P I16..4: 15.9% 0.0% 2.7% P16..4:
47.4% 9.7% 6.2% 0.7% 0.2% skip:17.3%
[libx264 @ 0000019fe33a54e0] mb B I16..4: 1.4% 0.0% 0.2% B16..8:
41.0% 4.4% 0.6% direct: 5.3% skip:47.2% L0:42.9% L1:49.2% BI: 8.0%
[libx264 @ 0000019fe33a54e0] direct mvs spatial:98.6% temporal:1.4%
[libx264 @ 0000019fe33a54e0] coded y,uvDC,uvAC intra: 25.9% 66.9% 30.7%
inter: 5.9% 24.9% 0.4%
[libx264 @ 0000019fe33a54e0] i16 v,h,dc,p: 74% 11% 12% 3%
[libx264 @ 0000019fe33a54e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 7% 14% 9%
13% 10% 11% 10% 12%
[libx264 @ 0000019fe33a54e0] i8c dc,h,v,p: 41% 31% 22% 6%
[libx264 @ 0000019fe33a54e0] Weighted P-Frames: Y:0.4% UV:0.0%
[libx264 @ 0000019fe33a54e0] ref P L0: 64.2% 7.5% 18.5% 9.7% 0.1%
[libx264 @ 0000019fe33a54e0] ref B L0: 83.1% 13.2% 3.7%
[libx264 @ 0000019fe33a54e0] ref B L1: 95.6% 4.4%
[libx264 @ 0000019fe33a54e0] kb/s:542.13
[aac @ 0000019fe32c19e0] Qavg: 628.212
More information about the ffmpeg-user
mailing list