From: Naimish on
I use following matlab program to convert frames of video into
images,but with the help of this program i get image of only one
frame.
I want to convert all frames of video into corresponding image.
so please give me possible solution.




clc;
close all;
clear all;

obj = mmreader('shaky_car.avi', 'tag', 'myreader1');
vidFrames = read(obj);

numFrames = get(obj, 'numberOfFrames');

for k = 1 : numFrames
mov(k).cdata = vidFrames(:,:,:,k);
mov(k).colormap = [];
imagesc(mov(1,k).cdata);
F = getframe;
[X,Map] = frame2im(F);

end