number of frames in a video using VideoReader in r2015a
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
THONTI BEERAIAH
am 9 Sep. 2020
Bearbeitet: THONTI BEERAIAH
am 9 Sep. 2020
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
0 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 9 Sep. 2020
It used to be NumberOfFrames: https://www.mathworks.com/help/releases/R2015a/matlab/ref/videoreader-class.html#properties
n=A.NumberOfFrames;
4 Kommentare
Walter Roberson
am 9 Sep. 2020
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.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!