mixing video with .png

Mar 12, 2012 at 1:46pm

mixing video with .png


I am working on a project where I would like to construct a video stream that consists of a .png file with a transparent background and a video file playing behind it.

I have tried jit.qt.mov which does not appear to support transparency, and also am struggling with actually layering the two streams as an xfade such as you get with the vizzie or jamoma modules is not what i’m looking for.

Any help would be great

Many thanks

Mar 12, 2012 at 9:16pm

Hey Sean, here’s the simple non GL way:

– Pasted Max Patch, click to expand. –
Mar 12, 2012 at 9:45pm

And here’s the gl way:

– Pasted Max Patch, click to expand. –
Mar 13, 2012 at 2:23am

Nice one Luke, do you know if there is a way to keep the non-transparent bits of the .png solid

Thanks for the help

Mar 13, 2012 at 8:04am

This process uses an existing alpha channel rather than keying anything out, so the non-transparent bits should be solid unless they have an opacity set… I think. Maybe try with another image like the one attached.

By the way, the non gl method will output at a resolution of the matrix that goes in the left side, so you might want to make your PNG the same size as your movie. The GL method is better though!


  1. carrot.png

You must be logged in to reply to this topic.