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

조회 수: 1 (최근 30일)
Rashedur Rahman
Rashedur Rahman 2018년 8월 22일
답변: Vishal Bhutani 2018년 8월 30일
What is wrong here? I did not understand the error. I have attached the code and error message.

답변 (1개)

Vishal Bhutani
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);

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by