If you follow the steps from the help on VideoReader, it should be perfectly possible to replace the frame-by-frame
reading described there to reading of whatever frames you desire - something like:
readerobj = VideoReader('Abuse001_264.mpg', 'tag', 'myreader1');
frames = [1 7 11 13 17 23 29];
for i1 = 1:numel(frames)
Frame = read(readerobj, frames(i1));
outname = sprintf('Outname-%03d.png',i1)
imwrite(Frame,outname)
end
I haven't tested this, but it should work, maybe you want to do more between extracting the frames and writnig them to file, but this should be a useful first step.
HTH
Best Answer