You cannot set the 'ErrorHandler' property of FrameReaderMessageHandler.
1 次查看(过去 30 天)
显示 更早的评论
What is wrong here? I did not understand the error. I have attached the code and error message.
0 个评论
回答(1 个)
Vishal Bhutani
2018-8-30
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);
For more information you can refer to the following link: https://www.mathworks.com/matlabcentral/answers/250033-number-of-frames-in-video-file-with-matlab-2015b
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!