I have two command:

ffmpeg -i in.mp4 -vf crop='1280:720:0:0' -acodec copy croped.mp4
ffmpeg -loop 1 -i 1.jpg -i  croped.mp4 -filter_complex 'overlay=(W-w)/2:(H-h)/2:shortest=1,format=yuv420p' -c:a copy result.mp4

Can these be combined into a single command? If so, how?

1 Answer 1


I think you meant guys. Anyway, filtergraph uses label to handle one filter after another. In your case, you may try

ffmpeg -y -i vide.ts -i logo.png  -filter_complex "[0:v]crop=1280:720:0:0[crop]; [crop]overlay=(W-w)/2:(H-h)/2[out]" -map [out] -map 0:a crop_overlay.mp4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.