Forums > Jitter

Playing multiple video files in jitter

July 20, 2012 | 7:18 pm

Hello Jitter Community!
I am relatively new to MAX/MSP/Jitter, and am working my way through the tutorial. I have a relatively firm understanding of how everything works, but I am stumped by what I think should be a video problem.

I have a series of short (<5 second) videos. Let's call them, and I would like to load these into jitter, specifically into ram using the loadram command. I would then like to play the videos back, only one at a time. For instance in a sample circuit, the user would press 1 to play m1, 2 to play m2 and 3 to play m3. Seems simple enough, yet I'm having a problem preloading all of the movies into jitter.

So far I have used the commands read, then append, append (followed by loadram). This gives me one big file, but it is difficult to get it to play only

I have been trying to get the addtrack to do the same thing as append, but no luck. In my mind, addtrack should add the extra movies as tracks (like a cd has track 1, 2 and 3) and then I can just say ‘play track 2’ somehow. But so far this has not worked, nor have I been able to find much info in the documentation about how to select and play only 1 track.

Does anyone have an idea how this could easily be implemented? Seems like it should be straight forward, but so far no luck.

Thanks in advance for any input!!

July 20, 2012 | 7:34 pm

Here‘s a different way, but it works, and might be helpful. (Scroll to the bottom to see my solution.)

July 21, 2012 | 12:12 am

Thanks for the reply! I’ll test it out Monday when I have access to my computer with MAX on it. Does your elegant solution preload the videos into memory? I’ll check the circuit on Monday.
Thanks again for your help!

July 22, 2012 | 3:14 pm

To open the movies automatically, just trigger the ‘read’ messages with a loadbang object. To read the full movies into RAM instead of reading them off of disk, just replace the ‘read’ messages with ‘loadram’ messages.

July 24, 2012 | 7:48 am

load a movie into RAM when finished reading …

— Pasted Max Patch, click to expand. —
November 16, 2015 | 10:42 am

Hi Christopher, I’ve used your patch and found it very useful thanks, I was wondering if there would be a way of instead of having to click the different buttons on the radio group you could hit keys 1 , 2 , 3 etc for each movie.


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

Forums > Jitter