[FFmpeg-user] error while using concat filter
johnd
john at tvplus.com
Wed Mar 20 18:54:04 CET 2013
I have been running ffmpeg on a physical server with no probelm. The
server runs slackware 14 with a default kernel.
I am now running my stuff on a amazon virtual machine running Ubuntu.
My program calls ffmpeg many times and all the calls work, except for
the last call to concat all the files.
in this example I simply wan't to concat to files
I get this error: Error while filtering
at the end of this I have a new file that is missing the second part
----------------------------------
john at acdc:~/ffmpeg_bug_repro$ ffmpeg -i 1.mp4
ffmpeg version N-50945-g1f68bac Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 22:06:48 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.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 '1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Duration: 00:00:05.06, start: 0.046440, bitrate: 560 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360, 426 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 129 kb/s
Metadata:
handler_name : SoundHandler
At least one output file must be specified
john at acdc:~/ffmpeg_bug_repro$ ffmpeg -i 2.mp4
ffmpeg version N-50945-g1f68bac Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 22:06:48 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.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 '2.mp4':
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Duration: 00:00:05.04, start: 0.030930, bitrate: 443 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360, 305 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s
Metadata:
handler_name : SoundHandler
At least one output file must be specified
john at acdc:~/ffmpeg_bug_repro$ /usr/local/bin/ffmpeg -y -i 1.mp4 -i
2.mp4 -filter_complex concat=n=2:v=1:a=1 3.mp4
ffmpeg version N-50945-g1f68bac Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 22:06:48 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.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 '1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Duration: 00:00:05.06, start: 0.046440, bitrate: 560 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360, 426 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 129 kb/s
Metadata:
handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Duration: 00:00:05.04, start: 0.030930, bitrate: 443 kb/s
Stream #1:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360, 305 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #1:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 128 kb/s
Metadata:
handler_name : SoundHandler
[libx264 @ 0x1ee6c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x1ee6c20] profile High, level 3.0
[libx264 @ 0x1ee6c20] 264 - core 130 r31 c832fe9 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2013 - 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=12 lookahead_threads=2 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 '3.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 640x360,
q=-1--1, 11988 tbn, 29.97 tbc
Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo,
s16, 128 kb/s
Stream mapping:
Stream #0:0 (h264) -> concat:in0:v0
Stream #0:1 (aac) -> concat:in0:a0
Stream #1:0 (h264) -> concat:in1:v0
Stream #1:1 (aac) -> concat:in1:a0
concat:out:v0 -> Stream #0:0 (libx264)
concat:out:a0 -> Stream #0:1 (libfdk_aac)
Press [q] to stop, [?] for help
Error while filtering.29.0 size= 193kB time=00:00:04.76 bitrate=
332.8kbits/s
frame= 140 fps=0.0 q=32766.0 Lsize= 323kB time=00:00:05.06 bitrate=
522.1kbits/s
video:236kB audio:80kB subtitle:0 global headers:0kB muxing overhead
1.925735%
[libx264 @ 0x1ee6c20] frame I:15 Avg QP:20.42 size: 8424
[libx264 @ 0x1ee6c20] frame P:45 Avg QP:21.34 size: 1937
[libx264 @ 0x1ee6c20] frame B:80 Avg QP:23.32 size: 344
[libx264 @ 0x1ee6c20] consecutive B-frames: 21.4% 4.3% 8.6% 65.7%
[libx264 @ 0x1ee6c20] mb I I16..4: 32.3% 41.4% 26.3%
[libx264 @ 0x1ee6c20] mb P I16..4: 11.4% 7.7% 1.3% P16..4: 27.9%
8.3% 2.5% 0.0% 0.0% skip:40.8%
[libx264 @ 0x1ee6c20] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 24.9%
0.8% 0.1% direct: 1.4% skip:72.8% L0:45.3% L1:52.7% BI: 2.0%
[libx264 @ 0x1ee6c20] 8x8 transform intra:40.1% inter:83.8%
[libx264 @ 0x1ee6c20] coded y,uvDC,uvAC intra: 40.7% 6.9% 1.9% inter:
3.5% 8.0% 0.9%
[libx264 @ 0x1ee6c20] i16 v,h,dc,p: 71% 19% 5% 4%
[libx264 @ 0x1ee6c20] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 15% 4% 4%
5% 5% 6% 6%
[libx264 @ 0x1ee6c20] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 33% 28% 10% 4% 5%
6% 5% 4% 4%
[libx264 @ 0x1ee6c20] i8c dc,h,v,p: 89% 7% 4% 0%
[libx264 @ 0x1ee6c20] Weighted P-Frames: Y:2.2% UV:0.0%
[libx264 @ 0x1ee6c20] ref P L0: 79.1% 12.0% 6.0% 1.3% 1.6%
[libx264 @ 0x1ee6c20] ref B L0: 92.5% 7.0% 0.5%
[libx264 @ 0x1ee6c20] ref B L1: 96.6% 3.4%
[libx264 @ 0x1ee6c20] kb/s:412.76
john at acdc:~/ffmpeg_bug_repro$ ffmpeg -i 3.mp4
ffmpeg version N-50945-g1f68bac Copyright (c) 2000-2013 the FFmpeg
developers
built on Mar 19 2013 22:06:48 with gcc 4.6.1 (Ubuntu/Linaro
4.6.1-9ubuntu3)
configuration: --enable-filter=color --enable-libx264 --enable-gpl
--enable-libfdk-aac --enable-nonfree
libavutil 52. 19.100 / 52. 19.100
libavcodec 55. 0.100 / 55. 0.100
libavformat 55. 0.100 / 55. 0.100
libavdevice 55. 0.100 / 55. 0.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 '3.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf55.0.100
Duration: 00:00:05.11, start: 0.046440, bitrate: 517 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p,
640x360, 413 kb/s, 29.97 fps, 29.97 tbr, 11988 tbn, 59.94 tbc
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
fltp, 129 kb/s
Metadata:
handler_name : SoundHandler
At least one output file must be specified
john at acdc:~/ffmpeg_bug_repro$
More information about the ffmpeg-user
mailing list