Use FFmpeg extract images from videos on Mac

I am working on  a mac open source project Wall-E, this project’s purpose is build a video management tools using face to classify videos.

So first step is extract images from videos.

First install ffmpeg, very easy:

brew install ffmpeg

After install ffmpeg, extract image is very easy:

ffmpeg -i xxx.mp4 -r 0.1 -f image2 image-%3d.jpeg

options:

  • -i is for the input filename
  • -r is for how many frame to extract for 1 second
  • -f is for output format

and more can see “How to extract images from a Video using FFmpeg“.