i'm new to FFMPEG and i'm trying to combine some filters

First i use this command for cropping the video

-i input.mp4 -filter:v \"crop=in_w:in_h-380\" output1.mp4"

then i use this command for adding an overlay png at the bottom right of the video

-i output1.mp4 -i overlay.png -filter_complex \"[0:v][1:v] overlay=(W-w):(H-h)\" -c:a copy output2.mp4"

Finally i use this command to add a png at the bottom left of the video

"-i output2.mp4 -i overlay2.png -filter_complex \"[0:v][1:v] overlay=0:(H-h)\" -c:a copy final.mp4"

I have two questions :

1/ Is there a way to combine these 3 filters into a single command?

2/ Otherwise can i combine the last two commands (filter complex) into one command?

Thank you


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.