I want a circular section of "secondVideo" to replace the pixels of "firstVideo". Both videos are RGB32 and of the same size, speed and length. The mask is a white circle on a black background and has a 100 pixel diameter (which is smaller than the videos). Any advice as to what I am doing wrong?
Code:
maskimage = ImageSource("circle.png").ConvertToRGB32
maskVideo = firstVideo.blankclip.layer(maskimage, x=100, y=100) #to make the mask match the videos
Overlay(firstVideo, secondVideo, mask=ShowAlpha(maskVideo), y=100, x=100, mode="blend", opacity=1)
Note: the above is a simplified version of what I actually need but, if I get this to work, I can figure the rest out. Thank you.