displaying a jitter movie
one way of loading a movie file is to use the "jit.movie" object, with a few parameters.
jit.movie @vol 0 @moviefile bball.mov
the @vol 0 reduces the volume to zero, sometimes you don't want the audio from your video file
@moviefile specifies the file. bball.mov is a built-in movie file. You might have a full path, or even a file on the desktop. eg. Desktop:/myname.mov
The jit.movie object also needs a way to display - use a jit.pwindow. Plug the left output into the pwindow's left input.
You'll also need to bang the jit.movie to update the pwindow! You could plug a button (b) into the jit.movie and keep pressing it.........
But this is going to be annoying to do manually, so we can use a "metro" object (which is metronome) and specify how often we want to send a bang message. This is measured in milliseconds. To achieve 30 fps you'd use a value of 33. Because 1000/30 = 33.3333333333
So, hit n, type metro 33 then have that connected to the input of the jit.movie. Activate the metro by plugging a toggle (press t) into it.
Here's the setup at its simplest!
Something interesting you can do, is if you hijack the matrix between jit.movie and the pwindow, you can "resize" it. Here I've changed it to a 32x24 sized matrix, so my movie is now looking low resolution and pixellated. The first part of the arguments is specifying 4 planes (ARGB) and the type of matrix, which is float32.
Comments
Post a Comment