[FFmpeg-user] Corrupted output after concat ffmpeg command

Artem Belov whiteworkwork at gmail.com
Thu May 21 12:15:15 CEST 2015


Thank you Carl for your response.

Please, can you look again. After adding  -auto_convert 1 I'm getting this
output:

ffmpeg -f concat -i mylist.txt -auto_convert 1 output.mp4
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM
3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-vda
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, concat, from 'mylist.txt':
  Duration: N/A, start: 0.000000, bitrate: 342 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480
[SAR 1280:1281 DAR 16:9], 216 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 125 kb/s
[libx264 @ 0x7faf42804200] using SAR=1280/1281
[libx264 @ 0x7faf42804200] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7faf42804200] profile High, level 3.1
[libx264 @ 0x7faf42804200] 264 - core 144 r2533 c8a773e - H.264/MPEG-4 AVC
codec - Copyleft 2003-2015 - 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, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p,
854x480 [SAR 1280:1281 DAR 16:9], q=-1--1, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc56.26.100 libx264
    Stream #0:1: Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 44100
Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libvo_aacenc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libvo_aacenc))
Press [q] to stop, [?] for help
frame=  159 fps=0.0 q=29.0 size=      70kB time=00:00:05.39 bitrate=
105.7kbits/s  frame=  230 fps=229 q=29.0 size=     184kB time=00:00:07.76
bitrate= 194.1kbits/s  frame=  294 fps=194 q=29.0 size=     317kB
time=00:00:10.01 bitrate= 258.9kbits/s  [h264 @ 0x7faf4202f400] left block
unavailable for requested intra mode at 0 3
[h264 @ 0x7faf4202f400] error while decoding MB 0 3, bytestream 17699
[h264 @ 0x7faf4202f400] concealing 1507 DC, 1507 AC, 1507 MV errors in I
frame
[h264 @ 0x7faf4210ca00] Missing reference picture, default is 65536
    Last message repeated 1 times
[h264 @ 0x7faf4210ca00] cabac_init_idc 5 overflow
[h264 @ 0x7faf4210ca00] decode_slice_header error
[h264 @ 0x7faf4210d000] reference picture missing during reorder
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] concealing 1619 DC, 1619 AC, 1619 MV errors in P
frame
[h264 @ 0x7faf4202f400] Reference 3 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 8 0, bytestream 11356
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210ca00] reference count overflow
[h264 @ 0x7faf4210ca00] decode_slice_header error
[h264 @ 0x7faf4210d000] cabac_init_idc 5 overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] cabac_init_idc 5 overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
frame= 2643 fps=307 q=29.0 size=     725kB time=00:01:26.36 bitrate=
68.8kbits/s d[h264 @ 0x7faf4202f400] Reference -1 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 1 0, bytestream 611
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] Reference 5 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 0 0, bytestream 11270
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] Reference 3 >= 3
[h264 @ 0x7faf4210dc00] error while decoding MB 2 0, bytestream 3377
[h264 @ 0x7faf4210dc00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4202f400] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4202f400] reference count overflow
[h264 @ 0x7faf4202f400] decode_slice_header error
[h264 @ 0x7faf4210ca00] Reference 3 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 0 0, bytestream 8987
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] illegal memory management control operation 32
[h264 @ 0x7faf4210d600] deblocking_filter_idc 6 out of range
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] mmco: unref short failure
[h264 @ 0x7faf4210dc00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] cabac_init_idc 6 overflow
[h264 @ 0x7faf4202f400] decode_slice_header error
[h264 @ 0x7faf4210ca00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210ca00] illegal memory management control operation 32
[h264 @ 0x7faf4210ca00] deblocking_filter_idc 19 out of range
[h264 @ 0x7faf4210ca00] decode_slice_header error
[h264 @ 0x7faf4210d000] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210d000] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] Reference 3 >= 3
[h264 @ 0x7faf4210dc00] error while decoding MB 1 0, bytestream 696
[h264 @ 0x7faf4210dc00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4202f400] illegal memory management control operation 32
[h264 @ 0x7faf4202f400] cabac_init_idc 5 overflow
[h264 @ 0x7faf4202f400] decode_slice_header error
[h264 @ 0x7faf4210ca00] mmco: unref short failure
[h264 @ 0x7faf4210ca00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210ca00] Reference 3 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 23 0, bytestream 1928
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] cabac_init_idc 22 overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] illegal memory management control operation 24
[h264 @ 0x7faf4202f400] Reference 5 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 8 0, bytestream 3252
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] mmco: unref short failure
[h264 @ 0x7faf4210ca00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210ca00] Reference 4 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 4 0, bytestream 6269
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] deblocking_filter_idc 4 out of range
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4202f400] reference count overflow
[h264 @ 0x7faf4202f400] decode_slice_header error
[h264 @ 0x7faf4210ca00] top block unavailable for requested intra mode at 5
0
[h264 @ 0x7faf4210ca00] error while decoding MB 5 0, bytestream 452
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210d000] Reference 4 >= 3
[h264 @ 0x7faf4210d000] error while decoding MB 5 0, bytestream 6831
[h264 @ 0x7faf4210d000] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] Reference 4 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 4 0, bytestream 214
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] number of reference frames (0+5) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210ca00] Reference 3 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 2 0, bytestream 6184
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
frame= 2830 fps=310 q=29.0 size=     767kB time=00:01:32.60 bitrate=
67.9kbits/s d[h264 @ 0x7faf4210d000] reference picture missing during
reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] Reference 4 >= 3
[h264 @ 0x7faf4210d600] error while decoding MB 2 0, bytestream 7791
[h264 @ 0x7faf4210d600] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210dc00] number of reference frames (1+4) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4202f400] reference count overflow
[h264 @ 0x7faf4202f400] decode_slice_header error
[h264 @ 0x7faf4210ca00] Reference 10 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 0 0, bytestream 326
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] cabac_init_idc 25 overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] Reference 4 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 0 0, bytestream 224
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] illegal memory management control operation 8
[h264 @ 0x7faf4210ca00] Reference 3 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 1 0, bytestream 5863
[h264 @ 0x7faf4210ca00] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d000] mmco: unref short failure
[h264 @ 0x7faf4210d000] number of reference frames (1+4) exceeds max (4;
probably corrupt input), discarding one
[h264 @ 0x7faf4210d000] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d000] reference count overflow
[h264 @ 0x7faf4210d000] decode_slice_header error
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] cabac_init_idc 3 overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] Reference 6 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 0 0, bytestream 3118
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] cabac_init_idc 24 overflow
[h264 @ 0x7faf4210ca00] decode_slice_header error
[h264 @ 0x7faf4210d000] mmco: unref short failure
[h264 @ 0x7faf4210d000] Reference 3 >= 3
[h264 @ 0x7faf4210d000] error while decoding MB 4 0, bytestream 5092
[h264 @ 0x7faf4210d000] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210d600] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210d600] reference count overflow
[h264 @ 0x7faf4210d600] decode_slice_header error
[h264 @ 0x7faf4210dc00] reference picture missing during reorder
    Last message repeated 2 times
[h264 @ 0x7faf4210dc00] reference count overflow
[h264 @ 0x7faf4210dc00] decode_slice_header error
[h264 @ 0x7faf4202f400] Reference 4 >= 3
[h264 @ 0x7faf4202f400] error while decoding MB 0 0, bytestream 2414
[h264 @ 0x7faf4202f400] Cannot use next picture in error concealment
[h264 @ 0x7faf4202f400] concealing 1620 DC, 1620 AC, 1620 MV errors in P
frame
[h264 @ 0x7faf4210ca00] Reference 6 >= 3
[h264 @ 0x7faf4210ca00] error while decoding MB 5 0, bytestream 4576
.............

Getting the corrupted output video file.

Also, I tried with

ffmpeg -f concat -i mylist.txt -auto_convert 1  -c copy output.mp4
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with Apple LLVM version 6.1.0 (clang-602.0.49) (based on LLVM
3.6.0svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.6.2 --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags=
--enable-libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-vda
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, concat, from 'mylist.txt':
  Duration: N/A, start: 0.000000, bitrate: 342 kb/s
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 854x480
[SAR 1280:1281 DAR 16:9], 216 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 125 kb/s
Output #0, mp4, to 'output.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 854x480
[SAR 1280:1281 DAR 16:9], q=2-31, 216 kb/s, 30 fps, 30 tbr, 15360 tbn,
15360 tbc
    Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125
kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=13951 fps=0.0 q=-1.0 size=   38587kB time=00:45:53.71 bitrate=
114.8kbits/s  frame=31764 fps=31761 q=-1.0 size=   83078kB time=01:43:52.81
bitrate= 109.2kbits/sframe=45520 fps=31678 q=-1.0 Lsize=  121951kB
time=02:28:39.53 bitrate= 112.0kbits/s
video:97127kB audio:23340kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.231770%

I'm getting the same result.

Thank you for your help.

On Thu, May 21, 2015 at 5:06 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:

> Artem Belov <whiteworkwork <at> gmail.com> writes:
>
> > mylist.txt
> >
> > file 'cut1.mp4'
> > file 'cut2.mp4'
> >
> > ffmpeg -f concat -i mylist.txt  -c copy output.mp4;
>
> Please test with -auto_convert 1
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list