MATLAB Answers

Calculating The Number of frames

조회 수: 24(최근 30일)
Abdussalam Elhanashi
Abdussalam Elhanashi 23 Jan 2020
답변: KALYAN ACHARJYA 23 Jan 2020
Hi guys
just asking
is this code accurate for calculating the number of frames for such video
vidObj = VideoReader('myfile.mp4');
numFrames = 0;
while hasFrame(vidObj)
readFrame(vidObj);
numFrames = numFrames + 1;
end

Community Treasure Hunt

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

Start Hunting!

Translated by