[FFmpeg-user] Concat error - No such filter '[0,0]'
Mike Kavanagh
mike.kavanagh at odx.uk.com
Wed Nov 7 11:56:02 CET 2012
Hi Nicholas,
Thanks for your response - what I want this to do is to join together the
three videos into a single video. So I want the AV of video one to run
contemporaneously and then AV of two and then AV of three - I do not want
each V and A stream split up.
Note that I am running this on a MS Vista PC - the command I used is similar
to the sample quoted in the documentation:
ffmpeg -i HV_movieAV10000.mp4 -i HV_movieAV10001.mp4 -i HV_movieAV10002.mp4
-filter_complex '[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=0 [a]
[v]' -map '[a]' -map '[v]' -report -y testfull.mp4
The resultant log file which produce the error " No such filter: '[0:0]' "
shows some an issue with single quotes:
ffmpeg started on 2012-11-07 at 10:26:56
Report written to "ffmpeg-20121107-102656.log"
Command line:
ffmpeg -i HV_movieAV10000.mp4 -i HV_movieAV10001.mp4 -i HV_movieAV10002.mp4
-filter_complex "'[0:0]" "[0:1]" "[1:0]" "[1:1]" "[2:0]" "[2:1]"
"concat=n=3:v=1:a=1" "[a]" "[v]'" -map "'[a]'" -map "'[v]'" -report -y
testfull.mp4
ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg
developers
built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 15.102 / 3. 15.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03421a60] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 03421a60] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 03421a60] File position before
avformat_find_stream_info() is 234308
[h264 @ 034404e0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 03421a60] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 03421a60] File position after
avformat_find_stream_info() is 76930
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
Duration: 00:00:27.36, start: 0.000000, bitrate: 68 kb/s
Stream #0:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #0:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 123 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[mov,mp4,m4a,3gp,3g2,mj2 @ 04472460] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 04472460] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 04472460] File position before
avformat_find_stream_info() is 91040
[h264 @ 040bec00] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 04472460] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 04472460] File position after
avformat_find_stream_info() is 61242
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10001.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
comment :
genre : Other
Duration: 00:00:05.00, start: 0.000000, bitrate: 145 kb/s
Stream #1:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #1:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 98 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[mov,mp4,m4a,3gp,3g2,mj2 @ 043e3020] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 043e3020] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 043e3020] File position before
avformat_find_stream_info() is 142608
[h264 @ 043e46e0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 043e3020] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 043e3020] File position after
avformat_find_stream_info() is 41010
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10002.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
Duration: 00:00:17.53, start: 0.000000, bitrate: 65 kb/s
Stream #2:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #2:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 66 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[AVFilterGraph @ 04470100] No such filter: '[0:0]'
Error configuring filters.
[AVIOContext @ 0032ff00] Statistics: 148337 bytes read, 2 seeks
[AVIOContext @ 034b4920] Statistics: 126112 bytes read, 2 seeks
[AVIOContext @ 04340c00] Statistics: 110654 bytes read, 2 seeks
So I then reran the command replacing all single quotes with double quotes:
ffmpeg -i HV_movieAV10000.mp4 -i HV_movieAV10001.mp4 -i HV_movieAV10002.mp4
-filter_complex "[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=0 [a]
[v]" -map "[a]" -map "[v]" -report -y testfull.mp4
I get the error:
Stream specifier ':0' in filtergraph description [0:0] [0:1] [1:0] [1:1]
[2:0] [2:1] concat=n=3:v=1:a=1 [a] [v] matches no streams.
This would indicate a mix up with streams - see the ffprobe report at the
end of the post which I may be misreading.
See the report file below:
ffmpeg started on 2012-11-07 at 10:34:21
Report written to "ffmpeg-20121107-103421.log"
Command line:
ffmpeg -i HV_movieAV10000.mp4 -i HV_movieAV10001.mp4 -i HV_movieAV10002.mp4
-filter_complex "[0:0] [0:1] [1:0] [1:1] [2:0] [2:1] concat=n=3:v=1:a=1 [a]
[v]" -map "[a]" -map "[v]" -report -y testfull.mp4
ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg
developers
built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 15.102 / 3. 15.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 022cd380] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 022cd380] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 022cd380] File position before
avformat_find_stream_info() is 234308
[h264 @ 0337f200] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 022cd380] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 022cd380] File position after
avformat_find_stream_info() is 76930
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10000.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
Duration: 00:00:27.36, start: 0.000000, bitrate: 68 kb/s
Stream #0:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #0:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 123 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[mov,mp4,m4a,3gp,3g2,mj2 @ 04340060] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 04340060] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 04340060] File position before
avformat_find_stream_info() is 91040
[h264 @ 04340560] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 04340060] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 04340060] File position after
avformat_find_stream_info() is 61242
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10001.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
comment :
genre : Other
Duration: 00:00:05.00, start: 0.000000, bitrate: 145 kb/s
Stream #1:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #1:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 98 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[mov,mp4,m4a,3gp,3g2,mj2 @ 040c67e0] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 040c67e0] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 040c67e0] File position before
avformat_find_stream_info() is 142608
[h264 @ 03457700] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 040c67e0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 040c67e0] File position after
avformat_find_stream_info() is 41010
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10002.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
Duration: 00:00:17.53, start: 0.000000, bitrate: 65 kb/s
Stream #2:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #2:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 66 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[concat @ 03458340] Setting entry with key 'n' to value '3'
[concat @ 03458340] Setting entry with key 'v' to value '1'
[concat @ 03458340] Setting entry with key 'a' to value '1'
Stream specifier ':0' in filtergraph description [0:0] [0:1] [1:0] [1:1]
[2:0] [2:1] concat=n=3:v=1:a=1 [a] [v] matches no streams.
[AVIOContext @ 022cd8e0] Statistics: 148337 bytes read, 2 seeks
[AVIOContext @ 022cace0] Statistics: 126112 bytes read, 2 seeks
[AVIOContext @ 040c6d60] Statistics: 110654 bytes read, 2 seeks
Finally the ffprobe output for a input video file show audio stream 0 and
video stream 1 (each input video file is the same has the same
configuration ) -
ffprobe started on 2012-11-06 at 17:17:40
Report written to "ffprobe-20121106-171740.log"
Command line:
ffprobe HV_movieAV10002.mp4 -report
ffprobe version N-44123-g5d55830 Copyright (c) 2007-2012 the FFmpeg
developers
built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads
--enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r
--enable-libass --enable-libcelt --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libfreetype --enable-libgsm
--enable-libmp3lame --enable-libnut --enable-libopenjpeg --enable-librtmp
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 25.104 / 54. 25.104
libavdevice 54. 2.100 / 54. 2.100
libavfilter 3. 15.102 / 3. 15.102
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 002dcf40] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 002dcf40] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 002dcf40] File position before
avformat_find_stream_info() is 142608
[h264 @ 03046320] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 002dcf40] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 002dcf40] File position after
avformat_find_stream_info() is 41010
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'HV_movieAV10002.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf54.25.104
Duration: 00:00:17.53, start: 0.000000, bitrate: 65 kb/s
Stream #0:0(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz,
mono, s16, 44 kb/s
Metadata:
handler_name : SoundHandler
Stream #0:1(und), 2, 1/1: Video: h264 (High) (avc1 / 0x31637661),
yuvj420p, 1340x886 [SAR 1339:1340 DAR 1339:886], 66 kb/s, 1 fps, 1 tbr, 1
tbn, 2 tbc
Metadata:
handler_name : VideoHandler
[h264 @ 03046320] detected 2 logical cores
[AVIOContext @ 002dd4c0] Statistics: 110654 bytes read, 2 seeks
Thanks again.
-Mike
--
View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Concat-error-No-such-filter-0-0-tp4654771p4654803.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.
More information about the ffmpeg-user
mailing list