Calculating The Number of frames

5 visualizzazioni (ultimi 30 giorni)
Abdussalam Elhanashi
Abdussalam Elhanashi il 23 Gen 2020
Risposto: KALYAN ACHARJYA il 23 Gen 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

Risposte (1)

KALYAN ACHARJYA
KALYAN ACHARJYA il 23 Gen 2020

Categorie

Scopri di più su Simscape Electrical in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by