Opened 4 years ago

Closed 4 years ago

#5186 closed defect (duplicate)

concat of streamed mkv fails

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

Description

When you concatenate (with concat demuxer) matroska files which were created by ffmpeg in streaming mode (i.e. written to non-seekable file), it fails.

The error is this:

[concat @ 0x3dfa1a0] file:1 stream:0 pts:0 pts_time:0 dts:NOPTS dts_time:NOPTS -> pts:-9223372036854776 pts_time:-9.22337e+12 dts:NOPTS dts_time:NOPTS
DTS -9223363446920184, next:920000 st:0 invalid dropping
PTS -9223363446920184, next:920000 invalid dropping st:0
[matroska @ 0x3e33f80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x3e33f80] Starting new cluster at offset 8519 bytes, pts 9223372036854775808dts 920
[matroska @ 0x3e33f80] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument

How could this be worked around in concat demuxer? How is it supposed to be worked around in any libavformat application? As far as I rememeber matroska always used to have such NOPTS frames.

How to reproduce (https://gist.github.com/andrey-utkin/d24f2fa744bd18a2067a):

ffmpeg -loglevel debug -f lavfi -i testsrc -t 1 -vcodec libx264 -f matroska - >1.mkv
ffmpeg -loglevel debug -f lavfi -i testsrc -t 1 -vcodec libx264 -f matroska - >2.mkv

echo "ffconcat version 1.0
file 1.mkv
file 2.mkv
" > clips.concat

ffmpeg -loglevel debug -f concat -i clips.concat -c copy -y concat.mkv

Output (https://gist.github.com/andrey-utkin/f9b72c0ae711716500c8):

ffmpeg version N-78043-g1d8f9b7 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5)
  configuration: --enable-debug=3 --disable-optimizations --extra-cflags='-O0 -g3 -ggdb3' --enable-pic --disable-stripping --enable-openssl --enable-protocol=file --enable-protocol=pipe --enable-protocol=http --enable-protocol=https --enable-muxer=matroska --enable-muxer=mjpeg --enable-muxer=rtp --enable-muxer=mp4 --enable-muxer=rtsp --enable-muxer=rawvideo --enable-muxer=data --enable-demuxer=rtsp --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mjpeg --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=mjpeg --enable-encoder=mjpeg --enable-encoder=mpeg4 --enable-encoder=rawvideo --enable-encoder=libx264 --enable-libx264 --enable-gpl --enable-nonfree --enable-libfreetype --enable-libopenh264 --enable-libvpx
  libavutil      55. 14.100 / 55. 14.100
  libavcodec     57. 22.100 / 57. 22.100
  libavformat    57. 23.100 / 57. 23.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 27.100 /  6. 27.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input file with argument 'testsrc'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'matroska'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file testsrc.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: testsrc.
detected 4 logical cores
[Parsed_testsrc_0 @ 0x30499e0] size:320x240 rate:25/1 duration:-1.000000 sar:1/1
[AVFilterGraph @ 0x30489c0] query_formats: 2 queried, 1 merged, 0 already done, 0 delayed
[lavfi @ 0x30481e0] All info found
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 1/25, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file -.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 1.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
Applying option f (force format) with argument matroska.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'video_size' to value '320x240'
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'pix_fmt' to value '2'
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x3050100] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x3050100] w:320 h:240 pixfmt:rgb24 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0x304e600] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21]
[format @ 0x304e600] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21'
[auto-inserted scaler 0 @ 0x3059080] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x3059080] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x304e600] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x304fd60] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 0x3059080] picking yuv444p out of 8 ref:rgb24 alpha:0
[auto-inserted scaler 0 @ 0x3059080] w:320 h:240 fmt:rgb24 sar:1/1 -> w:320 h:240 fmt:yuv444p sar:1/1 flags:0x4
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x304d100] using mv_range_thread = 24
[libx264 @ 0x304d100] using SAR=1/1
[libx264 @ 0x304d100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x304d100] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
[libx264 @ 0x304d100] 264 - core 148 r2665M a01e339 - 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=4 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, matroska, to 'pipe:':
  Metadata:
    encoder         : Lavf57.23.100
    Stream #0:0, 0, 1/1000: Video: h264 (libx264), -1 reference frame (H264 / 0x34363248), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 1/25, q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.22.100 libx264
    Side data:
      unknown side data type 10 (24 bytes)
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 26 times
[output stream 0:0 @ 0x304e2e0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[libx264 @ 0x304d100] frame=   0 QP=19.50 NAL=3 Slice:I Poc:0   I:300  P:0    SKIP:0    size=2846 bytes
[matroska @ 0x304b9e0] Writing block at offset 15, size 3535, pts 0, dts -80, duration 40, keyframe 1
[libx264 @ 0x304d100] frame=   1 QP=23.13 NAL=2 Slice:P Poc:8   I:14   P:45   SKIP:241  size=629 bytes
[matroska @ 0x304b9e0] Writing block at offset 3558, size 629, pts 160, dts -40, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   2 QP=14.71 NAL=2 Slice:B Poc:4   I:4    P:24   SKIP:272  size=144 bytes
[matroska @ 0x304b9e0] Writing block at offset 4194, size 144, pts 80, dts 0, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   3 QP=15.57 NAL=0 Slice:B Poc:2   I:0    P:22   SKIP:278  size=53 bytes
[matroska @ 0x304b9e0] Writing block at offset 4345, size 53, pts 40, dts 40, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   4 QP=15.35 NAL=0 Slice:B Poc:6   I:1    P:13   SKIP:286  size=41 bytes
[matroska @ 0x304b9e0] Writing block at offset 4404, size 41, pts 120, dts 80, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   5 QP=21.30 NAL=2 Slice:P Poc:16  I:22   P:43   SKIP:235  size=477 bytes
[matroska @ 0x304b9e0] Writing block at offset 4451, size 477, pts 320, dts 120, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   6 QP=15.11 NAL=2 Slice:B Poc:12  I:1    P:24   SKIP:275  size=138 bytes
[matroska @ 0x304b9e0] Writing block at offset 4935, size 138, pts 240, dts 160, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   7 QP=13.00 NAL=0 Slice:B Poc:10  I:1    P:13   SKIP:286  size=39 bytes
[matroska @ 0x304b9e0] Writing block at offset 5080, size 39, pts 200, dts 200, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   8 QP=13.00 NAL=0 Slice:B Poc:14  I:0    P:15   SKIP:285  size=38 bytes
[matroska @ 0x304b9e0] Writing block at offset 5125, size 38, pts 280, dts 240, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=   9 QP=14.11 NAL=2 Slice:P Poc:24  I:10   P:38   SKIP:252  size=466 bytes
[matroska @ 0x304b9e0] Writing block at offset 5169, size 466, pts 480, dts 280, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  10 QP=14.38 NAL=2 Slice:B Poc:20  I:1    P:23   SKIP:276  size=112 bytes
[matroska @ 0x304b9e0] Writing block at offset 5642, size 112, pts 400, dts 320, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  11 QP=13.00 NAL=0 Slice:B Poc:18  I:0    P:18   SKIP:282  size=41 bytes
[matroska @ 0x304b9e0] Writing block at offset 5760, size 41, pts 360, dts 360, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  12 QP=13.00 NAL=0 Slice:B Poc:22  I:0    P:5    SKIP:295  size=24 bytes
[matroska @ 0x304b9e0] Writing block at offset 5807, size 24, pts 440, dts 400, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  13 QP=14.80 NAL=2 Slice:P Poc:32  I:9    P:40   SKIP:251  size=402 bytes
[matroska @ 0x304b9e0] Writing block at offset 5837, size 402, pts 640, dts 440, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  14 QP=14.38 NAL=2 Slice:B Poc:28  I:2    P:17   SKIP:281  size=82 bytes
[matroska @ 0x304b9e0] Writing block at offset 6246, size 82, pts 560, dts 480, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  15 QP=15.17 NAL=0 Slice:B Poc:26  I:1    P:9    SKIP:290  size=37 bytes
[matroska @ 0x304b9e0] Writing block at offset 6334, size 37, pts 520, dts 520, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  16 QP=13.00 NAL=0 Slice:B Poc:30  I:0    P:6    SKIP:293  size=29 bytes
[matroska @ 0x304b9e0] Writing block at offset 6377, size 29, pts 600, dts 560, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  17 QP=16.23 NAL=2 Slice:P Poc:40  I:13   P:41   SKIP:246  size=378 bytes
[matroska @ 0x304b9e0] Writing block at offset 6412, size 378, pts 800, dts 600, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  18 QP=13.89 NAL=2 Slice:B Poc:36  I:2    P:20   SKIP:278  size=89 bytes
[matroska @ 0x304b9e0] Writing block at offset 6797, size 89, pts 720, dts 640, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  19 QP=13.00 NAL=0 Slice:B Poc:34  I:0    P:13   SKIP:287  size=33 bytes
[matroska @ 0x304b9e0] Writing block at offset 6892, size 33, pts 680, dts 680, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  20 QP=16.19 NAL=0 Slice:B Poc:38  I:2    P:8    SKIP:290  size=53 bytes
[matroska @ 0x304b9e0] Writing block at offset 6931, size 53, pts 760, dts 720, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  21 QP=16.49 NAL=2 Slice:P Poc:42  I:6    P:47   SKIP:247  size=195 bytes
[matroska @ 0x304b9e0] Writing block at offset 6990, size 195, pts 840, dts 760, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  22 QP=17.29 NAL=2 Slice:P Poc:44  I:9    P:41   SKIP:250  size=175 bytes
[matroska @ 0x304b9e0] Writing block at offset 7192, size 175, pts 880, dts 800, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  23 QP=17.31 NAL=2 Slice:P Poc:46  I:13   P:39   SKIP:248  size=218 bytes
[matroska @ 0x304b9e0] Writing block at offset 7374, size 218, pts 920, dts 840, duration 40, keyframe 0
[libx264 @ 0x304d100] frame=  24 QP=17.92 NAL=2 Slice:P Poc:48  I:6    P:44   SKIP:250  size=171 bytes
[matroska @ 0x304b9e0] Writing block at offset 7599, size 171, pts 960, dts 880, duration 40, keyframe 0
frame=   25 fps=0.0 q=-1.0 Lsize=       8kB time=00:00:00.92 bitrate=  73.7kbits/s speed=13.4x    
video:7kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 11.593631%
Input file #0 (testsrc):
  Input stream #0:0 (video): 26 packets read (5990400 bytes); 26 frames decoded; 
  Total: 26 packets (5990400 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (video): 25 frames encoded; 25 packets muxed (7599 bytes); 
  Total: 25 packets (7599 bytes) muxed
26 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3050000] Statistics: 0 seeks, 2 writeouts
[libx264 @ 0x304d100] frame I:1     Avg QP:19.50  size:  2846
[libx264 @ 0x304d100] frame P:9     Avg QP:17.62  size:   346
[libx264 @ 0x304d100] frame B:15    Avg QP:14.18  size:    64
[libx264 @ 0x304d100] consecutive B-frames: 20.0%  0.0%  0.0% 80.0%
[libx264 @ 0x304d100] mb I  I16..4: 31.3% 41.7% 27.0%
[libx264 @ 0x304d100] mb P  I16..4:  1.2%  2.0%  0.6%  P16..4:  8.6%  3.3%  2.0%  0.0%  0.0%    skip:82.2%
[libx264 @ 0x304d100] mb B  I16..4:  0.2%  0.1%  0.0%  B16..8:  4.8%  0.1%  0.0%  direct: 0.2%  skip:94.5%  L0:39.7% L1:54.9% BI: 5.4%
[libx264 @ 0x304d100] 8x8 transform intra:44.1% inter:48.9%
[libx264 @ 0x304d100] coded y,u,v intra: 12.2% 11.2% 11.0% inter: 0.7% 0.9% 0.8%
[libx264 @ 0x304d100] i16 v,h,dc,p: 71% 19%  3%  7%
[libx264 @ 0x304d100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 71%  6% 23%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x304d100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 31% 15%  2%  1%  1%  0%  2%  0%
[libx264 @ 0x304d100] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x304d100] ref P L0: 63.4%  5.0% 23.5%  8.1%
[libx264 @ 0x304d100] ref B L0: 73.3% 23.3%  3.5%
[libx264 @ 0x304d100] ref B L1: 97.8%  2.2%
[libx264 @ 0x304d100] kb/s:55.28
ffmpeg version N-78043-g1d8f9b7 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5)
  configuration: --enable-debug=3 --disable-optimizations --extra-cflags='-O0 -g3 -ggdb3' --enable-pic --disable-stripping --enable-openssl --enable-protocol=file --enable-protocol=pipe --enable-protocol=http --enable-protocol=https --enable-muxer=matroska --enable-muxer=mjpeg --enable-muxer=rtp --enable-muxer=mp4 --enable-muxer=rtsp --enable-muxer=rawvideo --enable-muxer=data --enable-demuxer=rtsp --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mjpeg --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=mjpeg --enable-encoder=mjpeg --enable-encoder=mpeg4 --enable-encoder=rawvideo --enable-encoder=libx264 --enable-libx264 --enable-gpl --enable-nonfree --enable-libfreetype --enable-libopenh264 --enable-libvpx
  libavutil      55. 14.100 / 55. 14.100
  libavcodec     57. 22.100 / 57. 22.100
  libavformat    57. 23.100 / 57. 23.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 27.100 /  6. 27.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'lavfi'.
Reading option '-i' ... matched as input file with argument 'testsrc'.
Reading option '-t' ... matched as option 't' (record or transcode "duration" seconds of audio/video) with argument '1'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'matroska'.
Reading option '-' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file testsrc.
Applying option f (force format) with argument lavfi.
Successfully parsed a group of options.
Opening an input file: testsrc.
detected 4 logical cores
[Parsed_testsrc_0 @ 0x2cee9e0] size:320x240 rate:25/1 duration:-1.000000 sar:1/1
[AVFilterGraph @ 0x2ced9c0] query_formats: 2 queried, 1 merged, 0 already done, 0 delayed
[lavfi @ 0x2ced1e0] All info found
Input #0, lavfi, from 'testsrc':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 1, 1/25: Video: rawvideo, 1 reference frame (RGB[24] / 0x18424752), rgb24, 320x240 [SAR 1:1 DAR 4:3], 1/25, 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file -.
Applying option t (record or transcode "duration" seconds of audio/video) with argument 1.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument libx264.
Applying option f (force format) with argument matroska.
Successfully parsed a group of options.
Opening an output file: -.
Successfully opened the file.
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'video_size' to value '320x240'
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'pix_fmt' to value '2'
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'time_base' to value '1/25'
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x2cf5100] Setting 'frame_rate' to value '25/1'
[graph 0 input from stream 0:0 @ 0x2cf5100] w:320 h:240 pixfmt:rgb24 tb:1/25 fr:25/1 sar:1/1 sws_param:flags=2
[format @ 0x2cf3600] compat: called with args=[yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21]
[format @ 0x2cf3600] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21'
[auto-inserted scaler 0 @ 0x2cfe080] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x2cfe080] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x2cf3600] auto-inserting filter 'auto-inserted scaler 0' between the filter 'Parsed_null_0' and the filter 'format'
[AVFilterGraph @ 0x2cf4d60] query_formats: 5 queried, 3 merged, 1 already done, 0 delayed
[auto-inserted scaler 0 @ 0x2cfe080] picking yuv444p out of 8 ref:rgb24 alpha:0
[auto-inserted scaler 0 @ 0x2cfe080] w:320 h:240 fmt:rgb24 sar:1/1 -> w:320 h:240 fmt:yuv444p sar:1/1 flags:0x4
No pixel format specified, yuv444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x2cf2100] using mv_range_thread = 24
[libx264 @ 0x2cf2100] using SAR=1/1
[libx264 @ 0x2cf2100] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x2cf2100] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-bit
[libx264 @ 0x2cf2100] 264 - core 148 r2665M a01e339 - 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=4 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, matroska, to 'pipe:':
  Metadata:
    encoder         : Lavf57.23.100
    Stream #0:0, 0, 1/1000: Video: h264 (libx264), -1 reference frame (H264 / 0x34363248), yuv444p, 320x240 [SAR 1:1 DAR 4:3], 1/25, q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.22.100 libx264
    Side data:
      unknown side data type 10 (24 bytes)
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Clipping frame in rate conversion by 0.000008
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 26 times
[output stream 0:0 @ 0x2cf32e0] EOF on sink link output stream 0:0:default.
No more output streams to write to, finishing.
[libx264 @ 0x2cf2100] frame=   0 QP=19.50 NAL=3 Slice:I Poc:0   I:300  P:0    SKIP:0    size=2846 bytes
[matroska @ 0x2cf09e0] Writing block at offset 15, size 3535, pts 0, dts -80, duration 40, keyframe 1
[libx264 @ 0x2cf2100] frame=   1 QP=23.13 NAL=2 Slice:P Poc:8   I:14   P:45   SKIP:241  size=629 bytes
[matroska @ 0x2cf09e0] Writing block at offset 3558, size 629, pts 160, dts -40, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   2 QP=14.71 NAL=2 Slice:B Poc:4   I:4    P:24   SKIP:272  size=144 bytes
[matroska @ 0x2cf09e0] Writing block at offset 4194, size 144, pts 80, dts 0, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   3 QP=15.57 NAL=0 Slice:B Poc:2   I:0    P:22   SKIP:278  size=53 bytes
[matroska @ 0x2cf09e0] Writing block at offset 4345, size 53, pts 40, dts 40, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   4 QP=15.35 NAL=0 Slice:B Poc:6   I:1    P:13   SKIP:286  size=41 bytes
[matroska @ 0x2cf09e0] Writing block at offset 4404, size 41, pts 120, dts 80, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   5 QP=21.30 NAL=2 Slice:P Poc:16  I:22   P:43   SKIP:235  size=477 bytes
[matroska @ 0x2cf09e0] Writing block at offset 4451, size 477, pts 320, dts 120, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   6 QP=15.11 NAL=2 Slice:B Poc:12  I:1    P:24   SKIP:275  size=138 bytes
[matroska @ 0x2cf09e0] Writing block at offset 4935, size 138, pts 240, dts 160, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   7 QP=13.00 NAL=0 Slice:B Poc:10  I:1    P:13   SKIP:286  size=39 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5080, size 39, pts 200, dts 200, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   8 QP=13.00 NAL=0 Slice:B Poc:14  I:0    P:15   SKIP:285  size=38 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5125, size 38, pts 280, dts 240, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=   9 QP=14.11 NAL=2 Slice:P Poc:24  I:10   P:38   SKIP:252  size=466 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5169, size 466, pts 480, dts 280, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  10 QP=14.38 NAL=2 Slice:B Poc:20  I:1    P:23   SKIP:276  size=112 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5642, size 112, pts 400, dts 320, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  11 QP=13.00 NAL=0 Slice:B Poc:18  I:0    P:18   SKIP:282  size=41 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5760, size 41, pts 360, dts 360, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  12 QP=13.00 NAL=0 Slice:B Poc:22  I:0    P:5    SKIP:295  size=24 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5807, size 24, pts 440, dts 400, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  13 QP=14.80 NAL=2 Slice:P Poc:32  I:9    P:40   SKIP:251  size=402 bytes
[matroska @ 0x2cf09e0] Writing block at offset 5837, size 402, pts 640, dts 440, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  14 QP=14.38 NAL=2 Slice:B Poc:28  I:2    P:17   SKIP:281  size=82 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6246, size 82, pts 560, dts 480, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  15 QP=15.17 NAL=0 Slice:B Poc:26  I:1    P:9    SKIP:290  size=37 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6334, size 37, pts 520, dts 520, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  16 QP=13.00 NAL=0 Slice:B Poc:30  I:0    P:6    SKIP:293  size=29 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6377, size 29, pts 600, dts 560, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  17 QP=16.23 NAL=2 Slice:P Poc:40  I:13   P:41   SKIP:246  size=378 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6412, size 378, pts 800, dts 600, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  18 QP=13.89 NAL=2 Slice:B Poc:36  I:2    P:20   SKIP:278  size=89 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6797, size 89, pts 720, dts 640, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  19 QP=13.00 NAL=0 Slice:B Poc:34  I:0    P:13   SKIP:287  size=33 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6892, size 33, pts 680, dts 680, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  20 QP=16.19 NAL=0 Slice:B Poc:38  I:2    P:8    SKIP:290  size=53 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6931, size 53, pts 760, dts 720, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  21 QP=16.49 NAL=2 Slice:P Poc:42  I:6    P:47   SKIP:247  size=195 bytes
[matroska @ 0x2cf09e0] Writing block at offset 6990, size 195, pts 840, dts 760, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  22 QP=17.29 NAL=2 Slice:P Poc:44  I:9    P:41   SKIP:250  size=175 bytes
[matroska @ 0x2cf09e0] Writing block at offset 7192, size 175, pts 880, dts 800, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  23 QP=17.31 NAL=2 Slice:P Poc:46  I:13   P:39   SKIP:248  size=218 bytes
[matroska @ 0x2cf09e0] Writing block at offset 7374, size 218, pts 920, dts 840, duration 40, keyframe 0
[libx264 @ 0x2cf2100] frame=  24 QP=17.92 NAL=2 Slice:P Poc:48  I:6    P:44   SKIP:250  size=171 bytes
[matroska @ 0x2cf09e0] Writing block at offset 7599, size 171, pts 960, dts 880, duration 40, keyframe 0
frame=   25 fps=0.0 q=-1.0 Lsize=       8kB time=00:00:00.92 bitrate=  73.7kbits/s speed=17.3x    
video:7kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 11.593631%
Input file #0 (testsrc):
  Input stream #0:0 (video): 26 packets read (5990400 bytes); 26 frames decoded; 
  Total: 26 packets (5990400 bytes) demuxed
Output file #0 (pipe:):
  Output stream #0:0 (video): 25 frames encoded; 25 packets muxed (7599 bytes); 
  Total: 25 packets (7599 bytes) muxed
26 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x2cf5000] Statistics: 0 seeks, 2 writeouts
[libx264 @ 0x2cf2100] frame I:1     Avg QP:19.50  size:  2846
[libx264 @ 0x2cf2100] frame P:9     Avg QP:17.62  size:   346
[libx264 @ 0x2cf2100] frame B:15    Avg QP:14.18  size:    64
[libx264 @ 0x2cf2100] consecutive B-frames: 20.0%  0.0%  0.0% 80.0%
[libx264 @ 0x2cf2100] mb I  I16..4: 31.3% 41.7% 27.0%
[libx264 @ 0x2cf2100] mb P  I16..4:  1.2%  2.0%  0.6%  P16..4:  8.6%  3.3%  2.0%  0.0%  0.0%    skip:82.2%
[libx264 @ 0x2cf2100] mb B  I16..4:  0.2%  0.1%  0.0%  B16..8:  4.8%  0.1%  0.0%  direct: 0.2%  skip:94.5%  L0:39.7% L1:54.9% BI: 5.4%
[libx264 @ 0x2cf2100] 8x8 transform intra:44.1% inter:48.9%
[libx264 @ 0x2cf2100] coded y,u,v intra: 12.2% 11.2% 11.0% inter: 0.7% 0.9% 0.8%
[libx264 @ 0x2cf2100] i16 v,h,dc,p: 71% 19%  3%  7%
[libx264 @ 0x2cf2100] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 71%  6% 23%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x2cf2100] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 31% 15%  2%  1%  1%  0%  2%  0%
[libx264 @ 0x2cf2100] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x2cf2100] ref P L0: 63.4%  5.0% 23.5%  8.1%
[libx264 @ 0x2cf2100] ref B L0: 73.3% 23.3%  3.5%
[libx264 @ 0x2cf2100] ref B L1: 97.8%  2.2%
[libx264 @ 0x2cf2100] kb/s:55.28
ffmpeg version N-78043-g1d8f9b7 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (Gentoo 5.3.0 p1.0, pie-0.6.5)
  configuration: --enable-debug=3 --disable-optimizations --extra-cflags='-O0 -g3 -ggdb3' --enable-pic --disable-stripping --enable-openssl --enable-protocol=file --enable-protocol=pipe --enable-protocol=http --enable-protocol=https --enable-muxer=matroska --enable-muxer=mjpeg --enable-muxer=rtp --enable-muxer=mp4 --enable-muxer=rtsp --enable-muxer=rawvideo --enable-muxer=data --enable-demuxer=rtsp --enable-demuxer=matroska --enable-demuxer=mjpeg --enable-decoder=h264 --enable-decoder=mpeg4 --enable-decoder=mjpeg --enable-parser=h264 --enable-parser=mpeg4video --enable-parser=mjpeg --enable-encoder=mjpeg --enable-encoder=mpeg4 --enable-encoder=rawvideo --enable-encoder=libx264 --enable-libx264 --enable-gpl --enable-nonfree --enable-libfreetype --enable-libopenh264 --enable-libvpx
  libavutil      55. 14.100 / 55. 14.100
  libavcodec     57. 22.100 / 57. 22.100
  libavformat    57. 23.100 / 57. 23.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 27.100 /  6. 27.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'concat'.
Reading option '-i' ... matched as input file with argument 'clips.concat'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option 'concat.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file clips.concat.
Applying option f (force format) with argument concat.
Successfully parsed a group of options.
Opening an input file: clips.concat.
[matroska,webm @ 0x3e03300] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x3e03300] Before avformat_find_stream_info() pos: 707 bytes read:8480 seeks:0
[h264 @ 0x3e05360] user data:"x264 - core 148 r2665M a01e339 - 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=4 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"
    Last message repeated 1 times
[h264 @ 0x3e05360] no picture 
[matroska,webm @ 0x3e03300] All info found
[matroska,webm @ 0x3e03300] After avformat_find_stream_info() pos: 5107 bytes read:8480 seeks:0 frames:4
[matroska,webm @ 0x3e03300] Auto-inserting h264_mp4toannexb bitstream filter
[concat @ 0x3dfa1a0] Before avformat_find_stream_info() pos: 44 bytes read:44 seeks:0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:0 pts_time:0 dts:NOPTS dts_time:NOPTS -> pts:0 pts_time:0 dts:NOPTS dts_time:NOPTS
[h264 @ 0x3e30da0] user data:"x264 - core 148 r2665M a01e339 - 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=4 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"
[h264 @ 0x3e30da0] no picture 
[concat @ 0x3dfa1a0] file:0 stream:0 pts:160 pts_time:0.16 dts:NOPTS dts_time:NOPTS -> pts:160 pts_time:0.16 dts:NOPTS dts_time:NOPTS
[concat @ 0x3dfa1a0] file:0 stream:0 pts:80 pts_time:0.08 dts:0 dts_time:0 -> pts:80 pts_time:0.08 dts:0 dts_time:0
[concat @ 0x3dfa1a0] All info found
[concat @ 0x3dfa1a0] After avformat_find_stream_info() pos: 44 bytes read:44 seeks:0 frames:3
Input #0, concat, from 'clips.concat':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0, 3, 1/1000: Video: h264 (High 4:4:4 Predictive), 4 reference frames, yuv444p(left), 320x240 [SAR 1:1 DAR 4:3], 1/50, 25 fps, 25 tbr, 1k tbn, 50 tbc
    Metadata:
      ENCODER         : Lavc57.22.100 libx264
Successfully opened the file.
Parsing a group of options: output file concat.mkv.
Applying option c (codec name) with argument copy.
Successfully parsed a group of options.
Opening an output file: concat.mkv.
Successfully opened the file.
[matroska @ 0x3e33f80] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to 'concat.mkv':
  Metadata:
    encoder         : Lavf57.23.100
    Stream #0:0, 0, 1/1000: Video: h264, 1 reference frame (H264 / 0x34363248), yuv444p(left), 320x240 (0x0) [SAR 1:1 DAR 4:3], 1/1000, q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc
    Metadata:
      ENCODER         : Lavc57.22.100 libx264
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[matroska @ 0x3e33f80] Writing block at offset 718, size 3574, pts 0, dts -80, duration 40, keyframe 1
[matroska @ 0x3e33f80] Writing block at offset 4300, size 629, pts 160, dts 0, duration 40, keyframe 0
[matroska @ 0x3e33f80] Writing block at offset 4936, size 144, pts 80, dts 0, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:40 pts_time:0.04 dts:40 dts_time:0.04 -> pts:40 pts_time:0.04 dts:40 dts_time:0.04
[matroska @ 0x3e33f80] Writing block at offset 5087, size 53, pts 40, dts 40, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:120 pts_time:0.12 dts:80 dts_time:0.08 -> pts:120 pts_time:0.12 dts:80 dts_time:0.08
[matroska @ 0x3e33f80] Writing block at offset 5146, size 41, pts 120, dts 80, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:320 pts_time:0.32 dts:120 dts_time:0.12 -> pts:320 pts_time:0.32 dts:120 dts_time:0.12
[matroska @ 0x3e33f80] Writing block at offset 5193, size 477, pts 320, dts 120, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:240 pts_time:0.24 dts:160 dts_time:0.16 -> pts:240 pts_time:0.24 dts:160 dts_time:0.16
[matroska @ 0x3e33f80] Writing block at offset 5677, size 138, pts 240, dts 160, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:200 pts_time:0.2 dts:200 dts_time:0.2 -> pts:200 pts_time:0.2 dts:200 dts_time:0.2
[matroska @ 0x3e33f80] Writing block at offset 5822, size 39, pts 200, dts 200, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:280 pts_time:0.28 dts:240 dts_time:0.24 -> pts:280 pts_time:0.28 dts:240 dts_time:0.24
[matroska @ 0x3e33f80] Writing block at offset 5867, size 38, pts 280, dts 240, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:480 pts_time:0.48 dts:280 dts_time:0.28 -> pts:480 pts_time:0.48 dts:280 dts_time:0.28
[matroska @ 0x3e33f80] Writing block at offset 5911, size 466, pts 480, dts 280, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:400 pts_time:0.4 dts:320 dts_time:0.32 -> pts:400 pts_time:0.4 dts:320 dts_time:0.32
[matroska @ 0x3e33f80] Writing block at offset 6384, size 112, pts 400, dts 320, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:360 pts_time:0.36 dts:360 dts_time:0.36 -> pts:360 pts_time:0.36 dts:360 dts_time:0.36
[matroska @ 0x3e33f80] Writing block at offset 6502, size 41, pts 360, dts 360, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:440 pts_time:0.44 dts:400 dts_time:0.4 -> pts:440 pts_time:0.44 dts:400 dts_time:0.4
[matroska @ 0x3e33f80] Writing block at offset 6549, size 24, pts 440, dts 400, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:640 pts_time:0.64 dts:440 dts_time:0.44 -> pts:640 pts_time:0.64 dts:440 dts_time:0.44
[matroska @ 0x3e33f80] Writing block at offset 6579, size 402, pts 640, dts 440, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:560 pts_time:0.56 dts:480 dts_time:0.48 -> pts:560 pts_time:0.56 dts:480 dts_time:0.48
[matroska @ 0x3e33f80] Writing block at offset 6988, size 82, pts 560, dts 480, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:520 pts_time:0.52 dts:520 dts_time:0.52 -> pts:520 pts_time:0.52 dts:520 dts_time:0.52
[matroska @ 0x3e33f80] Writing block at offset 7076, size 37, pts 520, dts 520, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:600 pts_time:0.6 dts:560 dts_time:0.56 -> pts:600 pts_time:0.6 dts:560 dts_time:0.56
[matroska @ 0x3e33f80] Writing block at offset 7119, size 29, pts 600, dts 560, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:800 pts_time:0.8 dts:600 dts_time:0.6 -> pts:800 pts_time:0.8 dts:600 dts_time:0.6
[matroska @ 0x3e33f80] Writing block at offset 7154, size 378, pts 800, dts 600, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:720 pts_time:0.72 dts:640 dts_time:0.64 -> pts:720 pts_time:0.72 dts:640 dts_time:0.64
[matroska @ 0x3e33f80] Writing block at offset 7539, size 89, pts 720, dts 640, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:680 pts_time:0.68 dts:680 dts_time:0.68 -> pts:680 pts_time:0.68 dts:680 dts_time:0.68
[matroska @ 0x3e33f80] Writing block at offset 7634, size 33, pts 680, dts 680, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:760 pts_time:0.76 dts:720 dts_time:0.72 -> pts:760 pts_time:0.76 dts:720 dts_time:0.72
[matroska @ 0x3e33f80] Writing block at offset 7673, size 53, pts 760, dts 720, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:840 pts_time:0.84 dts:760 dts_time:0.76 -> pts:840 pts_time:0.84 dts:760 dts_time:0.76
[matroska @ 0x3e33f80] Writing block at offset 7732, size 195, pts 840, dts 760, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:880 pts_time:0.88 dts:800 dts_time:0.8 -> pts:880 pts_time:0.88 dts:800 dts_time:0.8
[matroska @ 0x3e33f80] Writing block at offset 7934, size 175, pts 880, dts 800, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:920 pts_time:0.92 dts:840 dts_time:0.84 -> pts:920 pts_time:0.92 dts:840 dts_time:0.84
[matroska @ 0x3e33f80] Writing block at offset 8116, size 218, pts 920, dts 840, duration 40, keyframe 0
[concat @ 0x3dfa1a0] file:0 stream:0 pts:960 pts_time:0.96 dts:880 dts_time:0.88 -> pts:960 pts_time:0.96 dts:880 dts_time:0.88
[matroska @ 0x3e33f80] Writing block at offset 8341, size 171, pts 960, dts 880, duration 40, keyframe 0
[AVIOContext @ 0x3e0b9c0] Statistics: 8480 bytes read, 0 seeks
[matroska,webm @ 0x3e90320] Format matroska,webm probed with size=2048 and score=100
st:0 removing common factor 1000000 from timebase
[matroska,webm @ 0x3e90320] Before avformat_find_stream_info() pos: 707 bytes read:8480 seeks:0
[h264 @ 0x3e91580] user data:"x264 - core 148 r2665M a01e339 - 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=4 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"
    Last message repeated 1 times
[h264 @ 0x3e91580] no picture 
[matroska,webm @ 0x3e90320] All info found
[matroska,webm @ 0x3e90320] After avformat_find_stream_info() pos: 5107 bytes read:8480 seeks:0 frames:4
[matroska,webm @ 0x3e90320] Auto-inserting h264_mp4toannexb bitstream filter
[concat @ 0x3dfa1a0] file:1 stream:0 pts:0 pts_time:0 dts:NOPTS dts_time:NOPTS -> pts:-9223372036854776 pts_time:-9.22337e+12 dts:NOPTS dts_time:NOPTS
DTS -9223363446920184, next:920000 st:0 invalid dropping
PTS -9223363446920184, next:920000 invalid dropping st:0
[matroska @ 0x3e33f80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[matroska @ 0x3e33f80] Starting new cluster at offset 8519 bytes, pts 9223372036854775808dts 920
[matroska @ 0x3e33f80] Can't write packet with unknown timestamp
av_interleaved_write_frame(): Invalid argument
No more output streams to write to, finishing.
[matroska @ 0x3e33f80] end duration = 1000
[matroska @ 0x3e33f80] stream 0 end duration = 1000
frame=   26 fps=0.0 q=-1.0 Lsize=       8kB time=00:00:00.92 bitrate=  74.2kbits/s speed= 219x    
video:11kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (clips.concat):
  Input stream #0:0 (video): 26 packets read (11212 bytes); 
  Total: 26 packets (11212 bytes) demuxed
Output file #0 (concat.mkv):
  Output stream #0:0 (video): 26 packets muxed (11212 bytes); 
  Total: 26 packets (11212 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x3e30c80] Statistics: 19 seeks, 41 writeouts
[AVIOContext @ 0x3e04d80] Statistics: 8480 bytes read, 0 seeks
[AVIOContext @ 0x3dfa880] Statistics: 44 bytes read, 0 seeks
Conversion failed!

Change History (1)

comment:1 Changed 4 years ago by andrey.utkin

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of http://trac.ffmpeg.org/ticket/5189, works-for-me (practically resolvable).

Note: See TracTickets for help on using tickets.