Overlay circular video with transparency with maskedmerge

Viewed 3373

I have a square video from Snap Spectacles (1088x1088) that I want to overlay on itself zoomed in and blurred.

Example input frame:

original snap spectacles video frame

Generated zoomed in and blurred background:

generated zoomed in and blurred background

Desired output:

desired output

I think I can do this with ffmpeg's maskedmerge, but I'm having trouble finding examples.

There's an example of maskedmerge that merges two videos of the same size and dynamically removes a green screen, and another that merges videos with transparency.

Here's the closest I've been able to get:

ffmpeg -i background.jpg -vf "movie=input.jpg[inner];[in][inner] overlay=#{offset}:0 [out]" -c:a copy output.jpg

enter image description here

tl;dr: given the first two frames, how could I generate the third frame (as video)?

1 Answers
Related