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 Center および File ExchangeStartup and Shutdown についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by