Download ffmpeg
from here (ffmpeg
is also available via brew
)
Use the following bash command:
$ ffmpeg -i <videofile> -vf fps=1/10 frame%04d.png
Notes on this command:
- Replace
<videofile>
with the path to the video file you wish to process fps=1/10
is the frames per second (grab one frame every ten seconds)%04d
is specifying how many leading zeros the filenames for frame captures will use