stop playback at specific time

txesc's icon

I'm using the jit.qt.movie object to play a rather long video file that I want to split into multiple sections that automatically stop at differing lengths. I realise that I could edit it and load in multiple clips, but I'd like the option to change the input file after a while.
Triggering at specific times and stopping it are fine, as is getting a read out of time data etc.

However, getting the playback to stop at a specific place is proving to be more difficult than I thought. I tried using sel attached to the time number out but it doesn't seem to have any effect, however it is sending a bang when tested without movie playback (perhaps the numbers are updating too fast?).

I've googled and searched the forum/tutorials but haven't found anything that does this.

Does any one have any ideas? Next step is some data scaling into minutes/seconds from ms perhaps?

Thanks!

Rob Ramirez's icon

sel is not going to work, as there's very little chance the movie will output the exact time value you are looking for.

to stop at time value 1000, use something like
[ route time ] -> [ > 1000 ] -> [ togedge ] -> [ stop ]

txesc's icon

Thanks very much for the idea, I've got something working now.
Except, my timings are off, have you seen an accurate way to automate the conversion of Quicktime time units to ms? I seem to be a bit off.

txesc's icon

ignore that please! found in the tutorials...

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