Simple: mkdir frames ffmpeg -i source frames/%03d.jpg -qscale:v 2 It will generate all files with JPG format in the frames directory.