jit.qt.movie

Retrieve Timecode Info

In order to retrieve timecode information from a movie, you can send the message ‘gettimecodeinfo’ and ‘gettimecode’ to query the state of those attributes. The values come out of the right outlet as ‘timecodeinfo’ and ‘timecode’ messages.

‘timecode’ and ‘timecodeinfo’ are gettable attributes (but are not settable).

Dim of moviedim

Whenever a movie is read into jit.qt.movie, it sends out a read message that reports whether the movie was read in successfully. You can use that information to trigger a getmoviedim message to jit.qt.movie, and use the moviedim to set the dim of jit.qt.movie and all other objects that need to know that information.

Crossfade to new location in a video

To jump immediately to a new location in a movie, you can send the frame message to jit.movie (or jit.qt.movie). To crossfade to a new location, instead of a jump cut, you need to be playing the video twice, and crossfade from the current video to the second video, after which you can stop playing the first video. To do that again, you can just reverse the process: start the first video at the new location, crossfade back to the first video, and stop playing the second one.

Crossfade video and audio

You can make a crossfade between two videos or betwen two sounds by multiplying the amplitude of one of them by values going progressively from 1 to 0 while you multiply the other by values going progressively from 0 to 1. In this example, we use a slider object that outputs values from 0 to 1 to control the volume of two movie soundtracks, using the vol attribute of jit.qt.movie (or jit.movie).