Extract all video frames as images with FFMPEG

Try:

ffmpeg -i file.mpg -r 1/1 $filename%03d.bmp

or

ffmpeg\ffmpeg -i file.mpg test\thumb%04d.jpg -hide_banner

Note:

  1. to change framerate before -i, enter -framerate. To specify framerate for output after -i enter -r
  2. -filter:v -fps=fps=... or -vf fps=... is more accurate than -r

eg.

ffmpeg -i myvideo.avi -vf fps=<NO. of images>/<per no. of seconds> img%0<padding No. of digits>d.jpg

%04d will produce image-names with 4 digits like 0001, 0002 etc. And %03d will produce images with names like 001, 002 etc.


Use

ffmpeg -i "%1" frames/out-%03d.jpg

A sequence of image files don't have a framerate. If you want to undersample the video file, use -r before the input.

Edit:

ffmpeg -i "C:\Applications\FFMPEG\aa.mp4" "frames/out-%03d.jpg"