Forums > Jitter

mixing video with .png

March 12, 2012 | 1:46 pm

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


March 12, 2012 | 9:16 pm

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

– Pasted Max Patch, click to expand. –

March 12, 2012 | 9:45 pm

And here’s the gl way:

– Pasted Max Patch, click to expand. –

March 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


March 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!

[attachment=188134,3538]

Attachments:
  1. carrot.png

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