Calculating The Number of frames

9 visualizaciones (últimos 30 días)
Abdussalam Elhanashi
Abdussalam Elhanashi el 23 de En. de 2020
Respondida: KALYAN ACHARJYA el 23 de En. de 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

Respuestas (1)

KALYAN ACHARJYA
KALYAN ACHARJYA el 23 de En. de 2020

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by