Reputation: 774
I'm trying to put video inside frame box like this one
I tried to use overly filter, but the video edges, were covered by the frame , I want at least the lower edge of the video to be moved up (e.g 20px or y=-90) to match with the frame inside border, but I didn't know what code to used to change the source video coordinates . this is my command
ffmpeg -y -i source.mp4 -i 480_border.png -filter_complex "overlay=x=0:y=0" effict0.mp4
Upvotes: 0
Views: 1001
Reputation: 1469
So what you need to do is scale
the video, then overlay. Also the first stream of overlay is the background so it should be inversed here.
ffmpeg -y -i 480_border.png -i source.mp4 -filter_complex "\
[1:v]scale=w=1280:h=720[src];\
[0:v][src]overlay=x=20:y=20[vid]" \
-map [vid] -c:v libx264 -preset slow -c:a copy \
effict0.mp4
Just need to scale the video to the right dimensions.
Upvotes: 1