number of frames in a video using VideoReader in r2015a

조회 수: 13 (최근 30일)
THONTI BEERAIAH
THONTI BEERAIAH 2020년 9월 9일
편집: THONTI BEERAIAH 2020년 9월 9일
A = VideoReader('Augthirtycm.mp4');
n=A.NumFrames;
%Above is my simple code but when I run code it is showing error like below
No appropriate method, property, or field 'NumFrames' for class 'VideoReader'.
Error in frmaes (line 2)
n=A.NumFrames;
is there any alternative command for finding total number of frames in my video in r2015a version

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 9월 9일
  댓글 수: 4
Walter Roberson
Walter Roberson 2020년 9월 9일
Look down in the Limitations of the current documentation:
  • For some AVI, MOV, or MP4 files on Windows®, using the readFrame function to read all of the frames in the file can result in a different number of frames than the value returned by the NumFrames property of the VideoReader object.
The NumFrames count is not exact.
THONTI BEERAIAH
THONTI BEERAIAH 2020년 9월 9일
편집: THONTI BEERAIAH 2020년 9월 9일
yes, 'NumberOfFrames' is showing exact number of frames thank you

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by