Forums > Jitter

mixing video with .png

Mar 12 2012 | 1:46 pm


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 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 | 9:16 pm

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

-- Pasted Max Patch, click to expand. --

Mar 12 2012 | 9:45 pm

And here’s the gl way:

-- Pasted Max Patch, click to expand. --

Mar 13 2012 | 2:23 am

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 | 8:04 am

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


Viewing 5 posts - 1 through 5 (of 5 total)

Forums > Jitter