Guides

2-Pass Palette GIFs vs. Animated WebP vs. Looping MP4

Why single-pass GIFs look muddy, how FFmpeg 2-pass palettegen fixes banding, and when Animated WebP or looping MP4 beats GIF locally.

6 min read

Why 2-pass palette generation makes GIFs look sharp

GIF allows only 256 colors per frame. Basic converters use a fixed generic color table, creating harsh blocky skin tones and dull gradients.

Vidto runs FFmpeg's 2-pass pipeline: Pass 1 analyzes your trimmed clip with palettegen (stats_mode=diff) to build a custom 256-color palette for your scene, and Pass 2 renders frames with Lanczos scaling and clean dithering via paletteuse. In the sidebar you can pick 8, 12, 15, or 24 FPS, output widths from 320px to 800px, and Crisp (Bayer), Smooth (Floyd-Steinberg), or Flat (no dither) modes.

Create a 2-pass palette GIF

Choosing between GIF, Animated WebP, and Looping MP4

Use GIF for emails and Markdown READMEs, Animated WebP (configurable from 30% to 100% quality) for websites where 40–65% smaller files and full 24-bit color boost page speed, and looping MP4 whenever a player accepts video (80–90% smaller with smooth 16.7 million color playback).

Frequently asked questions

What FPS and width give the best GIF size-to-quality balance?

12–15 FPS at 480 px width keeps motion smooth while avoiding multi-megabyte GIF bloat.

Which dithering option should I choose?

Bayer dithering stays crisp and compresses smaller; Floyd-Steinberg smooths gradients in live-action clips; None gives the smallest flat UI captures.

Can I shrink a huge existing GIF?

Yes—convert it with GIF to MP4 to drop file size by 80–90% for social or Discord sharing.

Related video formats

More video guides