readFrame is only reading half of of my video frames
Show older comments
v=VideoReader('crosswalk.mp4');
NrFrames = v.NumFrames % this one gives me 450 frames
t=0;
while hasFrame(v)
I = readFrame(v);
t=t+1;
end
% but the variable t gives me 225 frames
I`m using the code below to read the number of frames of my video but when I use readFrame it will cound half of my frames which is 225 but the total number of frames is 450 which v.NumFrames gives.
I`ve attached my video too. MY video
I really appreciate your support. Thanks
Accepted Answer
More Answers (0)
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!