Forums > Jitter

Stitching video pieces

August 20, 2011 | 12:49 pm

I’m trying to stitch pieces of a single video, delayed in 5 segments. In a fixed background, there’s a figure moving from right to left which I’m willing to isolate every time and stitch together to make some sort of a canon.

To do that, I need to make a black mask to cover everything not needed in every instance but I don’t know how to make this moving mask.

Here’s the patch so far:

– Pasted Max Patch, click to expand. –

August 23, 2011 | 12:18 pm

Eh? Come again? Don’t really understand what it is you want to do, maybe annotate your patch to describe what you want to happen.


September 4, 2011 | 5:35 am

Humm… ok.

This goes like that: There are 5 matrices, which are essentially the same, delayed a couple of seconds from one to each other. There is a character moving from right to left.

What I need to find out how is to make a moving mask that follows the character in each matrix, so that I can join every delayed matrix into a single one where the character is moving continuously.

What I actually have are the delayed matrices but haven´t found a way to make the moving mask. Any idea with that?

An advance on that is bellow:

– Pasted Max Patch, click to expand. –

September 4, 2011 | 3:04 pm

Maybe I am being slow…but you have a movie of a character moving, why aren’t you just looping the movement you want. What are the five sections for?

It sounds like you are saying you want to isolate a moving character in a movie and loop the movement. Would that be right? What is your main objective?

Are you able to edit your video before you bring it in to Max? If you have access to Adobe After Effects or similar its probably easier to draw a shaped mask and have it follow your character, then you can render a video with an alpha channel and just play this in Max.


September 5, 2011 | 1:20 am

Yes, It would be, but I’m doing this as part of a larger project. The idea is to be able to track movement in a sectioned matrix (like scissors) and trigger the movement rithm from there, for this to happen live.

As for now, I’m considering a fixed movement rate happening in a movie that I can control so that I can trigger it to get the character "chasing itself" closer or farther according to a control (I’m still deciding what kind of control).

Certainly it would be way easier to do this in AE but you can’t do it realtime nor reactive…


September 5, 2011 | 6:48 am

OK, think I am starting to get it now, maybe this will help you:

A simple patch that enables you to move a mask around using GL objects, you could replace jit.gl.gridshape with jit.gl.sketch to be able to draw your mask instead of using a shape.

– Pasted Max Patch, click to expand. –

September 5, 2011 | 7:23 am

That´s great!

Now, I only have to figure out how to make the shape a rectangle and fix its dimensions…

Thanks!


Viewing 7 posts - 1 through 7 (of 7 total)