MATLAB Answers

0

You cannot set the 'ErrorHandler' property of FrameReade​rMessageHa​ndler.

Asked by Rashedur Rahman on 22 Aug 2018
Latest activity Answered by Vishal Bhutani on 30 Aug 2018
What is wrong here? I did not understand the error. I have attached the code and error message.

  0 Comments

Sign in to comment.

1 Answer

Answer by Vishal Bhutani on 30 Aug 2018

Based on my understanding, you want to get the number of frames by using property NumberOfFrames. As this is property is depreciated from MATLAB 2015b. You can try another work around like:
vidFile = '20180720_1505.avi';
vid = VideoReader(vidFile);
numFrames = ceil(vid.FrameRate*vid.Duration);

  0 Comments

Sign in to comment.