saving frames out of a running video in a particular folder

1 view (last 30 days)
Hi all I am running a video and taking frames out of it.. my problems are as follows:
1. how to change the rate of number of frames per second(i am using mmreader() function and using get() function i am taking out number of frames)..
2. also i want to save all these frames in a particular folder.
please let me solutions for these if anyone knows how to do these tasks...
  1 Comment
Jorge Lopez
Jorge Lopez on 23 Nov 2015
hi men, try testing the following
2.
for img = 1:QuantityFramesofVideo;
filename=strcat('frame',num2str(img),'.bmp');
Frame = read(Video, img);
SaveDirectory=('Directory');
filename=fullfile(SaveDirectory,filename);
imwrite(Frame,filename);
end
you could explain better if you speak Spanish.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!