Skip to content

Instantly share code, notes, and snippets.

@emilyst
Last active April 26, 2019 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emilyst/db9ab4b295aa2892ee41603b76f4618d to your computer and use it in GitHub Desktop.
Save emilyst/db9ab4b295aa2892ee41603b76f4618d to your computer and use it in GitHub Desktop.
Diagram of video2gif filtergraph
.─────────.
( input )
`─────────'
┌────────────┐
│ fps │
└────────────┘
without ┌────────────┐ with
tonemapping───│ crop │───tonemapping
│ └────────────┘ │
│ │
│ │
│ ▼
▼ ┌────────────┐
┌────────────┐ │ zscale │
│ scale │ └────────────┘
└────────────┘ │
│ ▼
│ ┌────────────┐
│ │ format │
│ └────────────┘
│ │
│ ▼
│ ┌────────────┐
│ │ zscale │
│ └────────────┘
│ │
│ ▼
└─────────────────┐ ┌────────────┐
│ │ tonemap │
│ └────────────┘
│ │
│ ▼
│ ┌────────────┐
│ │ zscale │
│ └────────────┘
│ │
│ ▼
│ ┌────────────┐
│ │ format │
▼ └────────────┘
with ┌────────────┐ │
┌──text────│ eq │◀─────────┘
▼ └────────────┘
┌────────────┐ │
│ drawtext │ without
└────────────┘ text
│ │
│ ▼
│ ┌────────────┐
└─────────▶│ split │──┐
┌───────┐ └────────────┘ │
│ │ │ │
▼ │ │ │
┌────────────┐stream─────┘ stream
│ palettegen │ │
└────────────┘ │
│ │
│ ┌────────────┐ │
palette──────▶│ paletteuse │◀─┘
└────────────┘
.─────────.
( output )
`─────────'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment