How to use ffmpeg to grab images from video files in a folder sequentially in MATLAB and save them in another folder

4 views (last 30 days)
my_Dir = 'S1_GALLERY_BODY'; % curret directory. my_folder = dir(fullfile(my_Dir,'*.mp4')); for j = 1:numel(my_folder) G = system('ffmpeg -i fullfile(my_Dir,my_folder(j).name) -r 10 S1_%04dB.jpg'); my_folder(j).data = G ; %filename; end

Accepted Answer

Image Analyst
Image Analyst on 23 Mar 2019

More Answers (0)

Community Treasure Hunt

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

Start Hunting!