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

Gilles codecomplete at free.fr
Fri Sep 18 17:52:16 CEST 2015


On Fri, 18 Sep 2015 15:36:04 +0200, Moritz Barsnick <barsnick at gmx.net>
wrote:
>What's more, what we (I) suggested to you may have been sufficiently
>simple to justify "-vf" instead of "-filter_complex".

If you have an example, I'm interested.

>Anyway, in the chain where you have the combined result, add
>",scale=640:-1". Or better, when scaling down, scale before your
>brightness operations, like "scale=640:-1,split[v1][v2]"

ffmpeg -i input.mp4 -c:v libx264 -filter_complex
"scale=640:-1,split=2[v1][v2];
[v1]crop=200:306:456:0,lutyuv=y=val*0.75[brightpart];
[v2]lutyuv=y=val*2.5[darkpart];
[darkpart][brightpart]overlay=x=456:y=0[v]" -map "[v]" -c:a copy
-threads 2 -crf 20 -f mp4 output.mp4

Thanks much!



More information about the ffmpeg-user mailing list