필터 지우기
필터 지우기

Not showing number of frames for specific video even if it is present in current path in matlab

조회 수: 1 (최근 30일)
Below code is showing error for correct_script_video.avi.But it is working fine for other videos.This video is present in current path but still its showing error.What is the reason?
Error is:
Error in VideoReader (line 132)
obj.init(fileName);
Error in framescheck (line 1)
obj = VideoReader('correct_script_video.avi');
Source code:
vid = VideoReader('correct_script_video.avi');
nFrames=vid.NumberOfFrames;
nFrames

채택된 답변

Walter Roberson
Walter Roberson 2014년 5월 2일
AVI that are Variable Frame Rate cannot show the number of frames until the video has been read all the way to the end.
  댓글 수: 1
prashanth
prashanth 2014년 5월 2일
편집: prashanth 2014년 5월 2일
Actually i formatted video.So frame rate changed.Then what is the solution to get number of frames?

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

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by