Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Extract Images From A GIF With ffmpeg

ffmpeg -i input.gif -vsync 0 -y frames/frame-%d.png

This pulls the individual frames from a GIF out into individual files. The [TODO: Code shorthand span ] allows it to overwrite files if you start over. The [TODO: Code shorthand span ] numbers each image starting with 1 and going up.

Using [TODO: Code shorthand span ] adds leading zeros to the filenames which can be nice for sorting in some situations. That example adds two leading zeros (e.g. frame-%00d.png outputs frame-001.png , frame-002.png , etc..) A single zero can be used or more zeros added to adjust the number.

Footnotes And References