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

sequential ffmpeg image grab

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
Related Question