animation

View Markdown
ittybit animation \
  -i video.mp4 \
  -o clip.gif \
  --start 3 \
  --end 6

Extracts a short animated clip from a video as GIF or WebP. Use this for reaction GIFs, preview loops, or animated thumbnails.

Options

FlagValuesDefault
--formatgif · webpgif
--qualityvery_low · low · medium · high · very_highauto
--widthpixels or "50%"same as input
--heightpixels or "50%"same as input
--fitcontain · cover · fill---
--backgroundhex color (e.g. #000000)---
--startseconds0
--endseconds (required)---
--fpsframe rate10

Examples

Extract a 3-second GIF:

ittybit animation \
  -i video.mp4 \
  -o reaction.gif \
  --start 3 \
  --end 6 \
  --width 320

Use WebP for smaller files:

ittybit animation \
  -i video.mp4 \
  -o clip.webp \
  --start 10 \
  --end 15 \
  --width 480 \
  --quality medium

Output to S3:

ittybit animation \
  -i s3://bucket/raw/video.mp4 \
  -o s3://bucket/clips/reaction.gif \
  --connection my-s3 \
  --start 3 \
  --end 6 \
  --width 320

Local

Run locally using FFmpeg instead of cloud:

ittybit animation \
  -i video.mp4 \
  -o reaction.gif \
  --local \
  --start 3 \
  --end 6 \
  --width 320

Requires FFmpeg installed. The file is processed on your machine.

See also