Hello,
I am trying to present a 1 second movie-clip (.avi format). I am using a loop to present the movie according to the PTB best practice.
BUT - the movie presentation takes 1.5 seconds (even though the length of the clip is 1 second exactly).
Any ideas why this happens and how can I present the clip for 1 second exactly?
This is the part of my code displaying the movie:
movie = Screen('OpenMovie', window, fileName);
Screen('PlayMovie', movie, 1);
while 1
tex = Screen('GetMovieImage', window, movie);
if tex<=0
break;
end;
Screen('DrawTexture', window, tex);
Screen('Flip', window);
Screen('Close', tex);
end;
Screen('PlayMovie', movie, 0);
Screen('CloseMovie', movie);
Thank you!