[FFmpeg-user] -filter_complex Gudiance Needed
Steve Kelly
steve at aatw.com
Thu Sep 25 18:05:05 CEST 2014
Struggling to get -filter_complex to work. Source file is an MXF with 4 mono audio streams. I want to take the first two audio streams, convert them to 16 bit and map them into a stereo stream and re-encode the video to a prores MOV
ffmpeg -i "TEST.MXF" —filter_complex "[0:1][0:2] amerge=inputs=2, aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" -map '[0:v]' -map '[a_out]' -codec:v prores -profile:v 3 -codec:a pcm_s16le "TEST_CONV.mov"
Gives an error of "[NULL @ 0x2154200] Unable to find a suitable output format for '—filter_complex'
—filter_complex: Invalid argument"
Console output below:
ffmpeg -i "TEST.MXF" —filter_complex "[0:1][0:2] amerge=inputs=2, aformat=sample_fmts=s16:channel_layouts=stereo [a_out]" -map '[0:v]' -map '[a_out]' -codec:v prores -profile:v 3 -codec:a pcm_s16le "TEST_CONV.mov"
ffmpeg version 2.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Sep 15 2014 14:00:03 with gcc 4.9.1 (Debian 4.9.1-14)
configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libiec61883 --enable-libfdk-aac --enable-vaapi --enable-libx265 --enable-libdc1394 --disable-altivec --disable-armv5te --disable-armv6 --shlibdir=/usr/lib/x86_64-linux-gnu
libavutil 54. 7.100 / 54. 7.100
libavcodec 56. 1.100 / 56. 1.100
libavformat 56. 4.101 / 56. 4.101
libavdevice 56. 0.100 / 56. 0.100
libavfilter 5. 1.100 / 5. 1.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0.100 / 3. 0.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 0.100 / 53. 0.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Input #0, mxf, from 'TEST.MXF':
Metadata:
uid : c85c4076-b5ac-465a-afd9-00bebc593763
generation_uid : ac208c14-faec-4572-91f0-b74f47c0916b
company_name : SONY
product_name : XDCAM Transfer
product_version : 650
application_platform: SONY MXF Development Kit (MacOS X)
product_uid : 060e2b34-0401-0103-0e06-012002410200
modification_date: 2014-08-07 12:28:35
timecode : 00:00:00:00
Duration: 00:02:31.92, start: 0.000000, bitrate: 55232 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s
[NULL @ 0x2154200] Unable to find a suitable output format for '—filter_complex'
—filter_complex: Invalid argument
More information about the ffmpeg-user
mailing list