필터 지우기
필터 지우기

NumberOfFrames using VideoReader function matlab 2016a

조회 수: 9 (최근 30일)
Ravindra
Ravindra 2018년 11월 20일
댓글: Ravindra 2018년 11월 20일
Hi all,
The object created using VideoReader function in matlab does not show the NumberOfFrames.
This could be because of the variable frame rate.
The Number of frames can be estimated:
vidObj = VideoReader('myfile.MOV');
numFrames = ceil(vidObj.FrameRate*vidObj.Duration);
In My algorithm I needed to pick a particular frame, so I decded to export all frames as picture using:
vidObj = VideoReader('myfile.MOV');
numFrames = 0;
while hasFrame(vidObj)
readFrame(vidObj);
numFrames = numFrames + 1;
end
But after 14000 frame has been exported I encountered the following error:
What could be possible reason for this error? or skip this particular frame
How could this be fixed??
Thank you very much for your suggestions and help in advance.
  댓글 수: 2
Ravindra
Ravindra 2018년 11월 20일
Thanks Jan for the link.
After reading the discussion...that means the video is mix of encrypted and unencrypted (Mixed segments).
How it is possible to make it uniform??
Is there any tool available to convert the *.MOV file to *.avi or some other standard matlab format??

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Audio and Video Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by