Control frame rate of video player in Vision System toolbox?

Viewed 1685

How can I control the playback rate of a video player in the Vision System toolbox in Matlab? Specifically, I want to slow video down. For instance, here is the simple example of how to load and display a movie from the documentation:

videoFReader = vision.VideoFileReader('viplanedeparture.mp4');
videoPlayer = vision.VideoPlayer;
while ~isDone(videoFReader)
  videoFrame = step(videoFReader);
  step(videoPlayer, videoFrame);
end
release(videoPlayer);
release(videoFReader);

I searched the User's Guide for how to change the frame rate in a simple way in such examples, but found nothing.

1 Answers
Related