Calculating The Number of frames

9 ビュー (過去 30 日間)
Abdussalam Elhanashi
Abdussalam Elhanashi 2020 年 1 月 23 日
回答済み: KALYAN ACHARJYA 2020 年 1 月 23 日
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 日

Community Treasure Hunt

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

Start Hunting!

Translated by