motion blur frame composite patch

8888's icon

Hello,

I want to make a patch that will take an incoming live video signal, store the frames into a buffer, and then output a video with composited frames layered on top of one another. For example: 10 frames of live video go into a buffer and then these frames are output with each of the frames overlapping each other (on top of one another) so that 1 frame of the output video is made up of 10 overlapping frames of the incoming live video.

I have looked on the forums for some clue as to how to do this, and I may be going in the right direction with one patch I found that stores individual frames into a buffer and allows for shuffling between frames. I have posted it here.

My question is: how would I output all captured frames from the buffer so that they overlap one another in the final output video?

Thanks for any advice.

3403.Untitled6.maxpat
Max Patch
Tobias Rosenberger's icon
Max Patch
Copy patch and select New From Clipboard in Max.

like this?

8888's icon

Thanks for posting, but I don't think this is what I'm looking for.

I've done some more patching and searching on the forums - here is my patch so far, but I'm still having the same problem: I would like to collect "x" number of frames into a buffer and then output all of these frames simultaneously (to one matrix, one jit.pwindow). I would like each frame to be "overlayed" in terms of composite mode, with the opacity of each frame being equivalent to all others.

In the patch, I have posted my question in light blue. The green portion of the patch is where I will have my frame collector. The current setup that I have with [bag] is not working so well.

Max Patch
Copy patch and select New From Clipboard in Max.

Any thoughts and suggestions would be greatly appreciated.

Pedro Santos's icon

See if it helps. Good luck!

Max Patch
Copy patch and select New From Clipboard in Max.