FORUMS: list search recent posts

ffmpeg GIF output ugly.

COW Forums : Compression Techniques

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Carl Oxwall
ffmpeg GIF output ugly.
on Aug 17, 2010 at 4:36:06 pm

Am I missing out on some important command line syntax for quality, or is ffmpeg's GIF encoder really lousy?

Original JPEG :

Transcoded into GIF with ImageMagick convert.exe :

Transcoded into GIF with ffmpeg.exe :

Yes, I know GIF isn't targeted on photos. However, with it's 256 color limit, it still seems able to encode "descent" output through ImageMagick (I also tried another converter, with similar results). Also, when running a color counter on the output, it seems that the ffmpeg-produced GIF only uses 103 colors, whereas encoded by other software go up to the 256 limit. Strange? What am I missing out on? Is ffmpeg GIF buggy or what?

This is my command line:
ffmpeg -i original.jpg -pix_fmt rgb24 output.gif

Return to posts index

Michael Rampe
Re: ffmpeg GIF output ugly.
on Aug 30, 2010 at 8:14:47 am

I got exactly the same results when trying to replicate your issue.

Based on the info about only reporting 103 versus 256 colors, my guess is that ImageMagick is using 256 indexed colors whilst FFmpeg is using a fixed 256 level system color palette.

I confirmed this theory in Photoshop. I converting your original jpeg to indexed color in photoshop. (Photoshop: Image/Mode/Indexed color...) By using the local selection, the image is converted like ImageMagick. By using the system or web selection (without diffusion), I get an image like FFmpeg.

Thus, FFmpeg is using a system color palette (or more likely a web palette) in converting GIFs.


"half-way to world domination A.K.A. the belligerent blue bike shed"

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 All Rights Reserved