The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Extract Images From A GIF With ffmpeg

TODO: Pull subtitle into page object
Code
ffmpeg -i input.gif -vsync 0 -y frames/frame-%d.png

This pulls the individual frames from a GIF out into individual files. The `-y`` allows it to overwrite files if you start over. The `%d`` numbers each image starting with 1 and going up.

Using `%00d`` 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.

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Extract Images From A GIF With ffmpeg

-- code
-- shell

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

-- p

This pulls the individual frames from a GIF out into
individual files. The `-y`` allows it to overwrite
files if you start over. The `%d`` numbers each image
starting with 1 and going up.

Using `%00d`` 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.


-- ref
-- Extracting frames from GIF
-- url: https://www.reddit.com/r/ffmpeg/comments/cqwlwo/extracting_frames_from_gif/


-- blurb

-- categories
-- ffmpeg
-- Command Line

-- metadata
-- date: 2023-05-17 19:00:13
-- id: 2pwnvkqm
-- site: aws
-- type: post
-- status: draft