Answer the question
In order to leave comments, you need to log in
How to change video file permissions when merging?
ffmpeg -i img.png -i video.mp4 -filter_complex "overlay=(W-w)/2:(H-h)/2" out.mp4
Answer the question
In order to leave comments, you need to log in
Try like this:
ffmpeg \
-i img.png \
-i video.mp4 \
-filter_complex "[1]scale=iw*min(1920/iw\,1080/ih):ih*min(1920/iw\,1080/ih)[ov];
[0][ov]overlay=(W-w)/2:(H-h)/2" \
-y -hide_banner \
out.mp4
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question