Timing for Video (random start & stop)
I want to have a movie playing for a short random amount of time, then stop it for a longer random amount of time. At this point I would like the video to disappear (or fill the jit.qt.window with black). Then after that time is up, resume the playback at the same frame. I am currently using jit.qt.movie.
The next thing is I want is for that random range to change over time, so that in the beginning there are short bursts of video and long pauses, then through time that reverses so there are longer video playbacks and shorter pauses in between. [note: by short I mean 1/10th second, and long would be maybe 1 or 2 seconds.]
Perhaps this is more of a logic/ procedural question, but I am new at this and don’t quite see how all the tools work together to get this to happen. I know how to play movies and how to set random ranges. I am just not sure how to control the videos, starting and stoping while keeping track of the current frame and then restarting at that same frame. i.e. I am not sure how to take the random number and make it pause the video for that amount of time. I am not sure of the best way to make the window go black when the video is paused. And finally I am not sure how to alter the random range through time.
Thanks in advance for any assistance you can provide - - -
Hello, you can take a look on the jitter tutorials.. https://docs.cycling74.com/max5/tutorials/jit-tut/jitterchapter04.html.
I think you can send a clear message to [jit.qt.movie] object for going to black screen.
I have found a way to start and stop the video and its sound track, aka pause the video, using a [gswith] after a [toggle] controlling both a [start] and [stop] message sent to the [jit.qt.movie] object. I will post that as an example for other users.
Unfortunately I have found no mention of a 'clear' message in the documentation to display a blank black frame while the video is paused. Any other ideas?
I will work on varying the range of the random number generators later...
The point is to 'compose' the global parameters of a piece while the local parameters (details) are handled by chance operations. A piece has to have direction for it to make sense to an audence.
Okay, got it! While you cannot send a [clear] message to a [jit.qt.movie], you can to a [jit.marix]. To pause the movie and set it to black during the pause, you make a separate matrix that is the same size as the movie, clear it to black (followed by a [bang]), then you have to switch between the [jit.qt.movie] and the [jit.matrix] when the [start] and [stop] messages are generated in the Pause Sequence described above. I will post the final patch. This works very smoothly. I just wish there was a [pause] message for the [jit.qt.movie] object.
thanks - - -