[FFmpeg-user] Various problems exchanging end of video

Hauke Westemeier Hauke_Westemeier at web.de
Mon Sep 19 05:26:38 EEST 2016


Hi,

thanks for the quick reply

> Please always paste at least the first 100 and the last 100 lines 
> of the console output, do not cut them.

In the following I did so for the steps I took. Sorry if the line
breaks are ugly.

Step 0) Some details of the initial video:

$ ffmpeg.exe -i original.mp4 -f null -

ffmpeg version N-50911-g9efcfbe Copyright (c) 2000-2013 the FFmpeg
developers
  built on Mar 13 2013 21:26:48 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzli
b --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass
--enable-libbluray --enable-li
bcaca --enable-libfreetype --enable-libgsm --enable-libilbc
--enable-libmp3lame --enable-libopencore
-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-librtmp --enable-li
bschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-lib
vo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libx264 --enable-libxa
vs --enable-libxvid --enable-zlib
  libavutil      52. 19.100 / 52. 19.100
  libavcodec     55.  0.100 / 55.  0.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    54.  4.100 / 54.  4.100
  libavfilter     3. 45.103 /  3. 45.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'original.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
  Duration: 00:00:47.50, start: 0.000000, bitrate: 97 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 9
7 kb/s, 10 fps, 20 tbr, 10240 tbn, 40 tbc
    Metadata:
      handler_name    : VideoHandler
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf55.0.100
    Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p,
480x270 [SAR 1:1 DAR 16:9], q=2-
31, 200 kb/s, 90k tbn, 20 tbc
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> rawvideo)
Press [q] to stop, [?] for help
[null @ 0328c020] Encoder did not produce proper pts, making some up.
frame=  950 fps=0.0 q=0.0 Lsize=N/A time=00:00:47.50 bitrate=N/A
dup=475 drop=0
video:59kB audio:0kB subtitle:0 global headers:0kB muxing overhead
-100.036184%


Step 1) Remove end

$ ffmpeg.exe -i original.mp4 -codec copy -ss 00:00:00 -to 00:00:43 cut.mp4

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.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 'original.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
  Duration: 00:00:47.50, start: 0.000000, bitrate: 97 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 9
7 kb/s, 10 fps, 20 tbr, 10240 tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[mp4 @ 03df59c0] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream
.codecpar instead.
Output #0, mp4, to 'cut.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021),
yuv420p, 480x270 [SAR 1:1 DAR 16:
9], q=2-31, 97 kb/s, 10 fps, 20 tbr, 10240 tbn, 10240 tbc (default)
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  422 fps=0.0 q=-1.0 Lsize=     565kB time=00:00:42.90 bitrate=
107.8kbits/s speed= 698x
video:561kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 0.698407%



$ ffmpeg.exe -i cut.mp4 -f null -

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.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 'cut.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
  Duration: 00:00:43.00, start: 0.000000, bitrate: 107 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 1
06 kb/s, 9.81 fps, 20 tbr, 10240 tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[null @ 03fe0060] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStrea
m.codecpar instead.
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: wrapped_avframe, yuv420p, 480x270 [SAR
1:1 DAR 16:9], q=2-31, 200 kb/s,
 20 fps, 20 tbn, 20 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.55.101 wrapped_avframe
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
frame=  422 fps=0.0 q=-0.0 Lsize=N/A time=00:00:42.95 bitrate=N/A
speed= 110x
video:158kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown


Step 2) Create new end based on an image

$ ffmpeg.exe -loop 1 -i newEnd.png  -t 5 -r 9.81 -c:v libx264 -pix_fmt
yuv420p newEnd.mp4

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
Input #0, png_pipe, from 'newEnd.png':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 480x270 [SAR 3543:3543 DAR
16:9], 25 fps, 25 tbr, 25 tbn, 25
tbc
[libx264 @ 03f9a5e0] using SAR=1/1
[libx264 @ 03f9a5e0] using cpu capabilities: MMX2 SSE2Fast SSSE3
Cache64 SlowShuffle
[libx264 @ 03f9a5e0] profile High, level 2.1
[libx264 @ 03f9a5e0] 264 - core 148 r2705 3f5ed56 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2016 - ht
tp://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0
analyse=0x3:0x113 me=hex subm
e=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=3 lookahead_threads=1
sliced_threads=0 nr=0 decimate=1 i
nterlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2
b_adapt=1 b_bias=0 direct=1 we
ightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=9 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
[mp4 @ 03f11260] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream
.codecpar instead.
Output #0, mp4, to 'newEnd.mp4':
  Metadata:
    encoder         : Lavf57.49.100
    Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 480x270 [SAR 1:1 DAR 16:9]
, q=-1--1, 9.81 fps, 15696 tbn, 9.81 tbc
    Metadata:
      encoder         : Lavc57.55.101 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame=   29 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A
dup=0 drop=40 speed=   0x
frame=   50 fps= 49 q=25.0 size=       3kB time=00:00:00.00
bitrate=354875.0kbits/s dup=0 drop=73 sp
frame=   50 fps= 33 q=-1.0 Lsize=       5kB time=00:00:04.79 bitrate=
  8.5kbits/s dup=0 drop=74 spe
ed=3.18x
video:4kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 39.111473%
[libx264 @ 03f9a5e0] frame I:1     Avg QP:12.85  size:  1992
[libx264 @ 03f9a5e0] frame P:13    Avg QP: 7.28  size:    29
[libx264 @ 03f9a5e0] frame B:36    Avg QP: 9.67  size:    17
[libx264 @ 03f9a5e0] consecutive B-frames:  4.0%  0.0%  0.0% 96.0%
[libx264 @ 03f9a5e0] mb I  I16..4: 51.4% 43.1%  5.5%
[libx264 @ 03f9a5e0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%
0.0%  0.0%  0.0%  0.0%    skip:
99.9%
[libx264 @ 03f9a5e0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%
0.0%  0.0%  direct: 0.0%  skip:
100.0%  L0: 0.0% L1:100.0% BI: 0.0%
[libx264 @ 03f9a5e0] 8x8 transform intra:43.1% inter:0.0%
[libx264 @ 03f9a5e0] coded y,uvDC,uvAC intra: 3.5% 0.0% 0.0% inter:
0.0% 0.0% 0.0%
[libx264 @ 03f9a5e0] i16 v,h,dc,p: 89%  0% 11%  0%
[libx264 @ 03f9a5e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 63%  3% 34%  0%
0%  0%  0%  0%  0%
[libx264 @ 03f9a5e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 16% 23%  2%
6%  5%  5%  6%  5%
[libx264 @ 03f9a5e0] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 03f9a5e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 03f9a5e0] kb/s:4.68


$ ffmpeg.exe -i newEnd.mp4 -f null -

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.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 'newEnd.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
  Duration: 00:00:05.10, start: 0.000000, bitrate: 8 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 5
 kb/s, 9.81 fps, 9.81 tbr, 15696 tbn, 19.62 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[null @ 0330b7e0] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStrea
m.codecpar instead.
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: wrapped_avframe, yuv420p, 480x270 [SAR
1:1 DAR 16:9], q=2-31, 200 kb/s,
 9.81 fps, 9.81 tbn, 9.81 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.55.101 wrapped_avframe
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
frame=   50 fps=0.0 q=-0.0 Lsize=N/A time=00:00:05.09 bitrate=N/A
speed=88.3x
video:19kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown


Step 3) Concat the cutted video and new end to get final result

create videos.txt containing:
file cut.mp4
file newEnd.mp4

$ ffmpeg.exe -f concat -i videos.txt -codec copy -r 9.81 finalresult.mp4

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc    54.  0.100 / 54.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03e98740] Auto-inserting h264_mp4toannexb
bitstream filter
Input #0, concat, from 'videos.txt':
  Duration: N/A, start: 0.000000, bitrate: 106 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 1
06 kb/s, 9.81 fps, 20 tbr, 10240 tbn, 40 tbc
    Metadata:
      handler_name    : VideoHandler
[mp4 @ 03ea0700] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream
.codecpar instead.
Output #0, mp4, to 'finalresult.mp4':
  Metadata:
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: h264 (High) ([33][0][0][0] / 0x0021),
yuv420p, 480x270 [SAR 1:1 DAR 16:
9], q=2-31, 106 kb/s, 9.81 fps, 20 tbr, 15696 tbn, 9.81 tbc
    Metadata:
      handler_name    : VideoHandler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mov,mp4,m4a,3gp,3g2,mj2 @ 03e98740] Auto-inserting h264_mp4toannexb
bitstream filter
frame=  472 fps=0.0 q=-1.0 Lsize=     571kB time=00:01:13.25 bitrate=
 63.8kbits/s speed= 993x
video:564kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 1.132159%



$ ffmpeg.exe -i finalresult.mp4 -f null -

ffmpeg version N-81664-g6f062eb Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-dxva2 --enable-libmfx
--enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128
--enable-fontconfig --enable-fre
i0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libc
aca --enable-libfreetype --enable-libgme --enable-libgsm
--enable-libilbc --enable-libmodplug --enab
le-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsnappy --enable-lib
soxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-amr
wbenc --enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --ena
ble-libx265 --enable-libxavs --enable-libxvid --enable-libzimg
--enable-lzma --enable-decklink --ena
ble-zlib
  libavutil      55. 29.100 / 55. 29.100
  libavcodec     57. 55.101 / 57. 55.101
  libavformat    57. 49.100 / 57. 49.100
  libavdevice    57.  0.102 / 57.  0.102
  libavfilter     6. 62.100 /  6. 62.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 'finalresult.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
  Duration: 00:01:13.41, start: 0.000000, bitrate: 63 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
480x270 [SAR 1:1 DAR 16:9], 6
2 kb/s, 6.43 fps, 20 tbr, 15696 tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[null @ 03e06540] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStrea
m.codecpar instead.
Output #0, null, to 'pipe:':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.49.100
    Stream #0:0(und): Video: wrapped_avframe, yuv420p, 480x270 [SAR
1:1 DAR 16:9], q=2-31, 200 kb/s,
 20 fps, 20 tbn, 20 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc57.55.101 wrapped_avframe
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> wrapped_avframe (native))
Press [q] to stop, [?] for help
[h264 @ 03db6640] QP 4294966164 out of range
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
[h264 @ 03db5e20] illegal memory management control operation 12
[h264 @ 03db5e20] deblocking_filter_idc 7 out of range
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 6
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] Missing reference picture, default is 2
[h264 @ 03db6640] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] reference count overflow
[h264 @ 03db5e20] decode_slice_header error:00:42.95 bitrate=N/A
speed=85.7x
[h264 @ 03db5e20] no frame!
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 17
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal modification_of_pic_nums_idc 7
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] reference count overflow
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] reference count overflow
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal modification_of_pic_nums_idc 5
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] deblocking_filter_idc 28 out of range
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 5
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal modification_of_pic_nums_idc 12
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] reference overflow 35 > 15 or 0 > 15
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal memory management control operation 9
[h264 @ 03db6240] co located POCs unavailable
[h264 @ 03db6640] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discardi
ng one
Invalid UE golomb code
[h264 @ 03db6640] reference count overflow
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] mb_type -1094995552 in B slice too large at 3 1
[h264 @ 03db6240] error while decoding MB 3 1
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6240] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6640] no frame!
[h264 @ 03db5e20] reference count overflow
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] deblocking_filter_idc 3 out of range
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] corrupted macroblock 4 0 (total_coeff=-1)
[h264 @ 03db5e20] co located POCs unavailable
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] error while decoding MB 4 0
[h264 @ 03db6240] reference count overflow
[h264 @ 03db6640] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db5e20] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6240] no frame!size=N/A time=00:00:42.95 bitrate=N/A
speed=42.5x
[h264 @ 03db6640] out of range intra chroma pred mode
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] illegal modification_of_pic_nums_idc 9
[h264 @ 03db6640] error while decoding MB 1 0
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db6640] concealing 510 DC, 510 AC, 510 MV errors in P frame
[h264 @ 03db5e20] no frame!
[h264 @ 03db6240] reference count overflow
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] reference count overflow
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] illegal modification_of_pic_nums_idc 8
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] deblocking_filter_idc 28 out of range
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal modification_of_pic_nums_idc 5
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] illegal modification_of_pic_nums_idc 12
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] deblocking_filter_idc 5 out of range
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal memory management control operation 9
[h264 @ 03db6640] co located POCs unavailable
[h264 @ 03db5e20] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discardi
ng one
Invalid UE golomb code
[h264 @ 03db5e20] reference count overflow
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] mb_type -1094995552 in B slice too large at 3 1
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db6640] error while decoding MB 3 1
[h264 @ 03db5e20] no frame!
[h264 @ 03db6640] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6240] reference count overflow
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] illegal memory management control operation 8
[h264 @ 03db5e20] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discardi
ng one
[h264 @ 03db6640] top block unavailable for requested intra mode -1
[h264 @ 03db5e20] corrupted macroblock 4 0 (total_coeff=-1)
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] error while decoding MB 9 0
[h264 @ 03db5e20] error while decoding MB 4 0
[h264 @ 03db6640] concealing 510 DC, 510 AC, 510 MV errors in P frame
[h264 @ 03db5e20] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6640] reference count overflow
[h264 @ 03db6240] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6640] decode_slice_header error:00:42.95 bitrate=N/A
speed=28.1x
[h264 @ 03db6640] no frame!
[h264 @ 03db5e20] illegal modification_of_pic_nums_idc 17
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 9
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] reference count overflow
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] reference count overflow
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 5
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] deblocking_filter_idc 28 out of range
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] illegal modification_of_pic_nums_idc 5
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6240] illegal modification_of_pic_nums_idc 12
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db6240] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db6640] reference overflow 35 > 15 or 0 > 15
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] illegal memory management control operation 9
[h264 @ 03db5e20] co located POCs unavailable
[h264 @ 03db6240] number of reference frames (0+4) exceeds max (3;
probably corrupt input), discardi
ng one
Invalid UE golomb code
[h264 @ 03db6240] reference count overflow
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] mb_type -1094995552 in B slice too large at 3 1
[h264 @ 03db6240] decode_slice_header error
[h264 @ 03db5e20] error while decoding MB 3 1
[h264 @ 03db6240] no frame!
[h264 @ 03db5e20] concealing 510 DC, 510 AC, 510 MV errors in B frame
[h264 @ 03db6640] reference count overflow
[h264 @ 03db6640] decode_slice_header error
[h264 @ 03db6640] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
[h264 @ 03db5e20] deblocking_filter_idc 7 out of range
[h264 @ 03db5e20] decode_slice_header error
[h264 @ 03db5e20] no frame!
Error while decoding stream #0:0: Invalid data found when processing input
frame=  422 fps=212 q=-0.0 Lsize=N/A time=00:00:42.95 bitrate=N/A
speed=21.6x
video:158kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: unknown


> If your input is not cfr, ffmpeg will not be able to produce a 
> valid output file (and no warning is printed).

I don't know if it is cfr or not.

I hope that the full output is helpfull for you.

Kind regards,

Hauke Westemeier



More information about the ffmpeg-user mailing list