Converting GIF memes to WebM for a Discord bot. VP9 at 480p with aggressive CRF 36 because memes tolerate quality loss, Opus placeholder (though most will be silent), WebM for Discord embed auto-play support.
| Video Codec | VP9 |
| CRF | 36 |
| Resolution | 480p |
| Audio | Opus |
| Container | WebM |
ffmpeg -i input.gif -c:v libvpx-vp9 -crf 36 -b:v 0 -vf scale=-2:480 -an output.webm
A 5-second GIF can be 10-50 MB. The same clip as VP9 WebM at CRF 36 is typically 100-500 KB — a 100x reduction. GIF uses lossless per-frame compression with no inter-frame prediction, making it spectacularly inefficient for video.
A new FFmpeg encoding puzzle every day. Six tries, in the browser or from your terminal.