I want to overlay an image on top of a video and have reached these two links:
How to overlay/place an image on a video in ffmpeg [duplicate]
Add an image overlay in front of video using ffmpeg
And this is my command:
ffmpeg -i flower.mp4 -i rose.png \ -filter_complex "[0:v][1:v] overlay=W-w/2:H-h/2" \ -pix_fmt yuv420p -c:a copy flowers.mp4 -y
But I have not reached the thing I want yet.
I want the image be placed in top right with 10 percent space from right and 3 percent from top, or 10px from right and 5px from top right.
How to reach this to work with my desired percent?
There are some other videos with different scales, so I cannot use fix x and y for all of them.
Thanks in advance