Calculating The Number of frames

9 次查看(过去 30 天)
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

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2020-1-23

类别

Help CenterFile Exchange 中查找有关 Simscape Electrical 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by