We’re getting started with a new project that involves some video-layering. We’ve got some webcam-capturing going on and want to combine that with extra layers of video (animations and stuff). I’ve got this working using a green background and a jit.chromakey, but with this approach I hardly get a fps of 20.
In jitter tutorial 29, it seems to be possible to blend a visual that contains an alpha channel with an underlying video. My problem here is that I can’t get it to work with a Quicktime RGB+Alpha video. Is this possible, and when it is: will this give a better performance than my current "solution"?
1. You need to use jit.alphablend or something like jit.gl.videoplane to take advantage of the alpha channel. If this is not working for you, you’ll need to send an example patch and link to a sample media file you are using.
2. You will get much higher framerates by using the GPU, either with alpha blending or chromakeying (the later requires using a shader).
Please read all the OpenGL tutorials to learn more about jit.gl.videoplane, and shaders.