jit.qt.movie support for jump to timecode

Anthony Palomba's icon

I want to be able to jump to 00:00:10. Is this possible with jit.qt.movie?

Thanks,
Anthony

Ben Bracken's icon

Hey Anthony,

There is no direct support for setting position via timecode. If the movie file has a timecode track, you can send the message 'timecode' to get the movie's timecode. There are a few other timecode-related messages that you can explore, check the jit.qt.movie reference for more info.

If you want to set the position with the timecode format, you would just need to do the math by hand.

Good luck!
-Ben

Anthony Palomba's icon

Hey Ben, thanks for your response. When ever I send a "timecode" message to jit.qt.movie, i get...
jit.qt.movie: doesn't understand "timecode"

Ben Bracken's icon

Sorry, does 'gettimecode' and 'gettimecodeinfo' work for you? Does the .mov have a timecode track?

-Ben

Anthony Palomba's icon

I don't think the movie I am using has a timecode track. :(

Another alternative would be able to specify the frame number that
corresponds to a time value. To do that I would need frame rate and
total time of the movie. But after looking over jit.qt.movie documentation,
it looks like this information is not provided.

Any ideas?

Christopher Dobrian's icon

As Ben suggested, you can do the math yourself, and I think it's pretty straightforward. Use the 'getfps' message to jit.qt.movie find out the frame rate of its movie, use that number to convert hh:mm:ss:ff to a number of frames, then use the 'frame ' message to jump to the desired frame.