Calling multiple instances of one movie

genekogan's icon

Hi all,

I am trying to create a patch in which I can play multiple instances of the same movie file simultaneously, all at different points in the movie. I need to do this in the most efficient way possible, so loading multiple copies of the same movie wouldn't cut it--I need something that is like a buffer for video so that I can call the same buffer in multiple windows at once. Does anyone have an idea for this? Thanks!

genekogan's icon

Also, just as an addendum so people know the context of this question and my goal for this patch. I am playing 6 movies at once, and each of the 6 movies is playing data from one of 20 video files on my computer. It is possible that more than 1 of my 6 movies are playing different segments of the same video file simultaneously, and I am constantly changing what video files the movies are referring to.

The first way I tried this is to have 6 movies, and every time I switch one, it just reads in the new video file. But it's much too slow to constantly read in the same files over and over, so I'd like to load all 20 of the possible videos at once and keep them in ram. But in order to be able to play the same file up to six times at once, it would require me to load 6 copies of each of the 20 files for 120 movies in ram at once. This is obviously impractical. How can I do this where I just have each of the 20 movies loaded once?

Rob Ramirez's icon

this can be done with the forward object.
check out the multi-head example patch:
Max5/examples/jitter-examples/video/quicktime/jit.qt.movie-multi-head.maxpat

genekogan's icon

This looks really promising. The only thing is it seems to discard the audio. Since it's switching back and forth, would it be difficult to get the audio of both at once?

doubi73's icon

This solution lags a lot for me. 2 instances is ok. More it is not ok.
Solution ?

ctrlzjones's icon

>Solution ?

Take it to GL-land