3
I'm helping my daughter and her friends with their Youtube VLOG channel, and now they want to do screen-casts and put a smaller circular face close-up (e.g. in a the upper right or left corner) where you can see them talk about the actual thing they're screencasting. I've used FFmpeg for more basic stuff for almost ten years, but I can tell this is more of a complex task.
I stumbled onto another question thread ( https://stackoverflow.com/questions/42518592/circular-movie-overlay-in-ffmpeg ) thanks to Google, and I think he's trying to accomplish more or less the same, apart from him using the same source for both the small circular overlay and the "main" video, whereas I want to use separate inputs; use "main.mkv" and "facecloseup.mkv" for example command line if anyone is up for solving this delicate task! ;)
For simplicity I'll probably have the two sources with optimized resolution already, say 1080p for the main.mkv and 240x240 or something like that for the facecloseup.mkv and then I just need the math syntax to get a center-circle cropped from facecloseup.mkv and put in some corner, take the upper left for simplicity.
Cheers!
Wow, big thanks for a quick response! This was exactly what I was looking for. I would probably never have figured this one out by myself, since my math skills are on a basic arithmetic level, at most. Also, I'm convinced that this post will help others too; I searched the web for almost two hours for existing Q/A but to no avail. The link I posted was the closest I got to finding an answer. Oh, a small add-on question, say I wanted the "bubble" in the upper left corner instead, would that be much hassle achieving? Again, big thanks! This will help me a lot with automation. – Gew – 2017-11-23T22:16:50.570
In the overlay filter, the values for
x
andy
represent where the top-left corner of the overlaid video (cutout) is located with respect to the top-left corner of the base image (main). Here, x isW-w
i.e. atfull width of main - full width of cutout
which will right-align the two inputs horizontally. Change that to 0 to left-align. – Gyan – 2017-11-24T05:56:44.150