Jitter

Combine 2 Matrices

If you have a 3 plane matrix and a 4 plane matrix, and would like to combine these to create a 7 plane matrix, you would first unpack a multiple matrix into multiple single matrices using the jit.unpack object, and then combine again with the jit.pack object.

Change color with RGB values

Any desired color is produced by blending three primary colors of light: red, green and blue, each with its own intensity. The 4 planes of the matrix in the jit.matrix object are considered the alpha, red, green, blue, planes of the color of each pixel. The planes are numbered starting from 0: alpha=0, red=1, green=2, blue=3. Normally the data in a 4-plane image matrix is of type char, representing numbers from 0 to 255. 

Output video duration after read

This example shows how to automatically retrieve several information data regarding a loaded video on jit.qt.movie. In this case we are taking advance of the message read filename 1 that is output on the second outlet after a successful file load, and using that to trigger several get messages which will also be output out the second outlet and then routed to their proper place using the route object.

text to video

This example shows a simple way of putting text into video, with the lines of text stored in a coll object. After loading the video sending a read message to jit.qt.movie, you can load each line by clicking the button in the middle of the patch.

Retrieve Timecode Info

In order to retrieve timecode information from a movie, you can send the message ‘gettimecodeinfo’ and ‘gettimecode’ to query the state of those attributes. The values come out of the right outlet as ‘timecodeinfo’ and ‘timecode’ messages.

‘timecode’ and ‘timecodeinfo’ are gettable attributes (but are not settable).