Calculating The Number of frames
11 次查看(过去 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
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!