Is it possible to play part of a movie by Screen('PlayMovie')

HI,
In my program I load a movie file and want to play part of the movie
starting at a certain frame for multiple time. Except the way to get a
stack of frames from the movie file and control the frame index and
timing myself, is there any simple way to do it, e.g. with
Screen('GetMovieImage') ? Thanks, WJ
Doable. See the PlayMoviesDemoOSX as a starter for realtime playback
of a movie.

The Screen('SetMovieTimeIndex'...) command allows you to seek to any
point in time in your movie track and the [tex
pts]=Screen('GetMovieImage', ...) command returns the timestamp 'pts'
of the current frame in the movie. If you want to define your own
video loop, you can simply check the 'pts' against the wanted end of
your loop and then seek back to the wanted beginning with the
'SetMovieTimeIndex' command.

Please note that not all movie formats are well suited for seeking.
Some do this very efficiently, others can cause dropped frames or
stutter on slow machines. You'll have to try.

-mario

--- In psychtoolbox@yahoogroups.com, "hunyuanqi2000" <jinwenjun@...>
wrote:
>
> HI,
> In my program I load a movie file and want to play part of the movie
> starting at a certain frame for multiple time. Except the way to get a
> stack of frames from the movie file and control the frame index and
> timing myself, is there any simple way to do it, e.g. with
> Screen('GetMovieImage') ? Thanks, WJ
>