Dave's Brain

Browse - Computer Tips - How do I use ffmpeg to convert a video to a sequence of stills (images)?

Date: 2008jun6

Q.  How do I use ffmpeg to convert a video to a sequence of stills (images)?

A.  Do this:

ffmpeg -i myvideo.mpg myframe%04d.png
This will convert myvideo.mpg into a bunch of PNG files named myframe0001.png, myframe0002.png, ... Many other image formats are supported.

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.