Using alpha masking with jit.lcd content overlay
One way to superimpose 2D graphics over a video is to draw into a jit.lcd object and then use alpha masking to overlay the jit.lcd contents on top of the video image.
One way to superimpose 2D graphics over a video is to draw into a jit.lcd object and then use alpha masking to overlay the jit.lcd contents on top of the video image.
You can switch between multiple videos without starting from the beginning of each clip after each every switch by acquiring the time the clip was stopped as the next starting point.
For this example to work properly, you will also need to download the small text file subtitles.txt.
One method of subtitling a video is shown in the example "Write subtitles onto a video". That shows hot to use the jit.lcd object in Jitter, and add its output to that of a jit.movie object. Another method is to render both video and text in GL using the jit.gl.videoplane and jit.gl.text objects.
Simple linear motion in 2D animation is achieved by interpolating between two points and successively drawing an object at each intermediate point, as demonstrated in the example on Animating 2D graphics.
This patch allows you to try different exponentialities of fade-in/fade-out of a video.
One way to combine text and video is to write text in jit.lcd as demonstrated in the example “Draw shapes and text
The jit.lcd object understands a variety of command messages for drawing simple things such as lines, geometric shapes, text, and pictures any place in a matrix.