[FFmpeg-user] Combine vf and filter_complex for the same video?

Gilles codecomplete at free.fr
Fri Sep 18 15:18:49 CEST 2015


Hello

Besides cropping part of the screen, I also need to resize the whole
screen, but vf and filter_complex are mutually exclusive:

===============
ffmpeg -i input.mp4 -c:v libx264 -vf scale=640:-1 -pix_fmt yuv420p
-filter_complex "magic here" -c:a copy -f mp4 output.mp4
===============
Filtergraph 'scale=640:-1' was specified through the -vf/-af/-filter
option for output stream 0:0, which is fed from a complex filtergraph.

-vf/-af/-filter and -filter_complex cannot be used together for the
same stream.
===============

To avoid two encodings in a row, is it possible to use filter_commplex
to also resize a video?

Thank you.



More information about the ffmpeg-user mailing list