You can use ffmpeg.
PNG
ffmpeg -i input -r 1 output_%03d.png
JPG
ffmpeg -i input -r 1 -qscale:v 2 output_%03d.jpg
-r 1
will output 1 frame per second.-r 1/5
will output 1 frame per 5 seconds.This will result in numerically sequential files starting with
output_001.jpg
.For JPG you can vary output quality with
-qscale:v
. Range is 2 (best quality) to 31 (worst quality).You can add
-frames:v
if you want to limit the number of output files, such as-frames:v 10
for 10 output images.