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

1 vue (au cours des 30 derniers jours)
Rashedur Rahman
Rashedur Rahman le 22 Août 2018
What is wrong here? I did not understand the error. I have attached the code and error message.

Réponses (1)

Vishal Bhutani
Vishal Bhutani le 30 Août 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);

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by