mixing video with .png

seanzshow's icon

Hi,

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

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

And here's the gl way:

seanzshow's icon

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

Luke Woodbury's icon

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!

3538.carrot.png
png