using video clips as buffer

ratched's icon

Hi, I'm new to max/msp/jitter. I'm trying to create a patch with two side by side videos: one based on the jit.qt.grab object/iSight and another video with pre-recorded content. They play simultaneously. What I want is to be able to grab clips (photos, essentially) of the (iSight cam) footage and stack these over the other video.

How can I tell jitter to grab one second clips of the isight footage and have these appear in the patch rather than writing them to desktop

Andrew Benson's icon

What you are looking for is a ~30 frame video buffer. There are numerous ways to create this. The easiest way is to use the jit.matrixset object, which allows you to write and read frames in a bank. You will of course need to put together the logic for the recording and playback. There are also examples floating around of doing similar things with a 3D jit.matrix and JavaScript.

Best,
Andrew B.