[FFmpeg-user] Targeting bitrate when outputting to GIF
Nicolas George
george at nsup.org
Fri Feb 14 01:40:12 EET 2025
Carl Dong (HE12025-02-13):
> Wondering if there’s a way to target bitrate when outputting to GIF
No. GIG is a lossless codec, it takes as much data as it needs.
AFAIK, only lossy codecs have built-in bitrate management.
> The current workaround seems to be adjusting fps= until the bitrate is
> low enough
Reducing the frame rate is a manual way to make the encoding lossy.
Reducing the resolution is another.
Adjusting the number of colors is another.
Just in case: You are using paletteuse+palettegen, not the default
conversion to palette? You are using a deterministic dithering mode with
paletteuse?
Regards,
--
Nicolas George
More information about the ffmpeg-user
mailing list