Stitch Frames Vertically

sidora's icon

I would like to stitch the frames of a MOV and create one big frame in another matrix by stitching all of the frames one after another vertically so i can save it as one bmp.

Basically, i would like to create a contatenated film strip image like you can do with ImageMagick or
Image Stitcher     

I can't figure it out.
Its for a 16x16 movie (not more than 2000 frames).

I know i would need to change the Y dimension of the receiving matrix by NumberOfFrames*16
But i dont know how i could save each frame in it at position Yoffset=FrameNumber*16

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Something like this?

sidora's icon

Yes kinda like that.

The problem is, the number of frame varies from 1 to 2000 depending on video length.

I have an rslider to select the loop points of my jit.qt.movie and i lock the max length to 2000 frames.

I guess i could create a 2000 outlet cycle and a 2000 row jit.glue.. I'm dreading making all those conntections :P

I wonder if there would be simpler way.

sidora's icon

Just realized that jit.glue max number of rows is 16. So that plan would not work :(

Luke Woodbury's icon
Max Patch
Copy patch and select New From Clipboard in Max.

OK, yeah thats a big number! This might work for you, but you are talking about creating a 16 32000 dimension matrix. You might want to trigger your mov with frame numbers like in the last example or use the @unique 1 attribute so you only get the new frames.

sidora's icon

Thats working!! :D

Thanks a lot Luke!

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

This should work. (To learn about the dimension messages to jit.matrix, such as 'usedstdim', see Jitter Tutorial 14 Matrix Positioning.)

sidora's icon

ah yes! the dstdim messages! Thats what i was searching for! To place inputs at a specific spot.

Thanks a lot!