ffmpeg commands
Stills and GIFs
The scripts in this folder turn a video into still images: a single JPEG frame for a <video> poster or thumbnail, or a GIF built with its own 256-color palette. They're useful when you need a lightweight preview of a clip rather than another video encode. To adapt one, change the seek time, size or frame rate in the command; the header explains each flag.
Grab a single frame as a 600×600 JPEG (poster image / thumbnail)
extract-frame-jpg.sh
Seeks to 7 seconds and writes exactly one frame, for use as a <video> poster or a thumbnail next to the web encodes in conversion/.
High-quality GIF with a custom palette, in one command
palette-gif.sh
GIFs are limited to 256 colors. palettegen builds the best 256-color palette for these exact frames and paletteuse maps the frames onto it, which avoids the banding of ffmpeg's default palette. At 0.5 fps this makes a slideshow-style GIF: one frame every 2 seconds of a 20 s span.
Source: lucidbeaming/ffmpeg-utilities/stills-and-gifs at v1.0.1