Not showing number of frames for specific video even if it is present in current path in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
prashanth
am 2 Mai 2014
Bearbeitet: prashanth
am 2 Mai 2014
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
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 2 Mai 2014
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 Kommentar
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!