I have a avi-video recorded at 2 frames per second and I used the following commands to extract the images of the video:
obj = VideoReader('C:\Desktop\test.avi');
vid = read(obj,[1 5000]);
for k = 1:1:5000
newname = strcat('C:\Desktop\TEST\',num2str(k),'.png');
I controlled the extracted images and realized that one image is missed at every sixth image or 20 images per minutes. Instead of counting 120 images per minute I counted only 100.
I wonder if someone knows what is going wrong with the commands and what I can do to solve this problem.
Thank you in advance Emerson