in Apple

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“.



Write a Comment

Comment

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax