Live camera and movie mix using alpha

staxas's icon

Hi all,

I'm making a patch which mixes a movie and live camera feed. The idea is that everything that isn't 'background' shows the movie and everything that moves is overlayed on the video. I just can't get it quite right. Anyone want to take a look?

1739.cvtest0011.maxpat
Max Patch