[FFmpeg-user] different filters to different outputs possible?

Roger Pack rogerdpack2 at gmail.com
Wed Nov 21 17:19:04 CET 2012


>> It seems from experimentation that if you specify a filter graph
>> (filter complex at least) then it only applies to the first output
>> file--the second just gets the straight data, with no filter applied.
>> So basically you can't send the same filter graph to different
>> outputs, though I would be happy to be proven wrong...
>
> Full command line and console output missing.

$ ffmpeg -i sintel.mpg -an -filter_complex "[0] scale=1000:1000" -y
yo.avi yo2.avi
ffmpeg version N-46649-g0a373c3 Copyright (c) 2000-2012 the FFmpeg developers
  built on Nov 12 2012 15:41:25 with gcc 4.7.1 (GCC)
  configuration: --enable-memalign-hack --arch=x86 --enable-gpl
--enable-libx264 --enable-avisynth --enable-libxvid
--target-os=mingw32
--cross-prefix=/home/rdp/dev/ffmpeg-windows-build-helpers/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-
--pkg-config=pkg-config --enable-libmp3lame --enable-version3
--enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread
--enable-zlib --extra-libs=-lwinmm --extra-libs=-lgdi32
--enable-librtmp --enable-libvorbis --enable-libtheora
--enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm
--enable-libfreetype --disable-optimizations
 --enable-mmx --disable-postproc --enable-fontconfig --enable-libass
--enable-libutvideo --enable-libopus --disable-w32threads
--extra-cflags=-DPTW32_STATIC_LIB --enable-frei0r
--enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib
--enable-runtime-cpudetect
  libavutil      52.  6.100 / 52.  6.100
  libavcodec     54. 71.100 / 54. 71.100
  libavformat    54. 36.100 / 54. 36.100
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 22.101 /  3. 22.101
  libswscale      2.  1.102 /  2.  1.102
  libswresample   0. 16.100 /  0. 16.100
[mpeg2video @ 03cbd6c0] ac-tex damaged at 40 7
[mpeg2video @ 03cbd6c0] Warning MVs not available
[mpeg2video @ 03cbd6c0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame
[mpeg @ 03cc0720] max_analyze_duration 5000000 reached at 5024000
Input #0, mpeg, from 'sintel.mpg':
  Duration: 00:14:47.58, start: 0.233367, bitrate: 4132 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480
[SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x80]: Audio: ac3, 48000 Hz, 5.1(side), s16, 448 kb/s
Output #0, avi, to 'yo.avi':
  Metadata:
    ISFT            : Lavf54.36.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 1000x1000
[SAR 16:9 DAR 16:9], q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
Output #1, avi, to 'yo2.avi':
  Metadata:
    ISFT            : Lavf54.36.100
    Stream #1:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 720x480
[SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 29.97 tbn, 29.97 tbc
    Stream #1:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p
Stream mapping:
  Stream #0:0 (mpeg2video) -> scale (graph 0)
  scale (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:0 -> #1:0 (mpeg2video -> mpeg4)
  Stream #0:1 -> #1:1 (ac3 -> libmp3lame)
Press [q] to stop, [?] for help
[mpeg2video @ 03cbd6c0] ac-tex damaged at 40 7
[mpeg2video @ 03cbd6c0] Warning MVs not available
[mpeg2video @ 03cbd6c0] concealing 1035 DC, 1035 AC, 1035 MV errors in I frame
frame=  730 fps=137 q=31.0 Lq=31.0 size=    2738kB time=00:00:26.71
bitrate= 839.6kbits/s
video:3866kB audio:418kB subtitle:0 global headers:0kB muxing overhead
-36.089504%

You'll notice the first output is "1000x1000" and the second "720x480"


More information about the ffmpeg-user mailing list