[FFmpeg-user] Combine vf and filter_complex for the same video?
Paul B Mahol
onemda at gmail.com
Fri Sep 18 15:24:43 CEST 2015
On 9/18/15, Gilles <codecomplete at free.fr> wrote:
> 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?
Yes, just put scale filter where you want in filtergraph.
> Thank you.
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
More information about the ffmpeg-user