ffmpeg video to frames

all frames:

  1. ffmpeg -i "x.mp4" '%04d.png'
  2. (delete .mp4 file, sort frames)

1/1:

  1. ffmpeg -i "x.mp4" -filter:v fps=fps=1/1 %04d.jpg

1/2:

  1. ffmpeg -i "x.mp4" -filter:v fps=fps=1/2 %04d.jpg