Hi everyone,
I'm having some difficulty extracting some information from stimuli
generated using the ShowTime.mex function.
I'm currently using Showtime to generate a series of quicktime movies.
When I want to display them, I am reading the movies into memory, and
want to use the Psychtoolbox's WaitBlanking ability to control the
timing (as illustrated in the ShowTime documentation.
ie.
for frame = 1:1:nFrames
ShowTime('MovieFrameDisplay',movie,frame);
framesSinceLastWait = SCREEN(window,'WaitBlanking');
end
My issue arises because movie files have a differing number of frames
depending on certain conditions, condition levels etc., so I wish to
extract nFrames after each movie is loaded into the workspace.
I've tried:
nFrames = ShowtimeMovieFrameCount(movie); % as listed in the ShowTime
documentation
However, I get an error that this function is undefined.
I have a hacked up calculation which calculates the nFrames per movie
using the same routine that generated the stimuli files, but I would
love to be able to extract the number of frames upon load time so the
display routine is a bit more generalized.
Thanks for any assistance.
Cheers,
Kevin MacKenzie
------------------------------------------------------------------------
Kevin MacKenzie
mailto: kjmacken@...
Centre for Vision Research
York University, Toronto
------------------------------------------------------------------------
I'm having some difficulty extracting some information from stimuli
generated using the ShowTime.mex function.
I'm currently using Showtime to generate a series of quicktime movies.
When I want to display them, I am reading the movies into memory, and
want to use the Psychtoolbox's WaitBlanking ability to control the
timing (as illustrated in the ShowTime documentation.
ie.
for frame = 1:1:nFrames
ShowTime('MovieFrameDisplay',movie,frame);
framesSinceLastWait = SCREEN(window,'WaitBlanking');
end
My issue arises because movie files have a differing number of frames
depending on certain conditions, condition levels etc., so I wish to
extract nFrames after each movie is loaded into the workspace.
I've tried:
nFrames = ShowtimeMovieFrameCount(movie); % as listed in the ShowTime
documentation
However, I get an error that this function is undefined.
I have a hacked up calculation which calculates the nFrames per movie
using the same routine that generated the stimuli files, but I would
love to be able to extract the number of frames upon load time so the
display routine is a bit more generalized.
Thanks for any assistance.
Cheers,
Kevin MacKenzie
------------------------------------------------------------------------
Kevin MacKenzie
mailto: kjmacken@...
Centre for Vision Research
York University, Toronto
------------------------------------------------------------------------