On 9/18/15, Gilles <[email protected]> wrote: > 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?
Yes, just put scale filter where you want in filtergraph. > > Thank you. > > _______________________________________________ > ffmpeg-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
