Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Compression Techniques ffmpeg GIF output ugly.

  • ffmpeg GIF output ugly.

    Posted by Carl Oxwall on August 17, 2010 at 4:36 pm

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

    Original JPEG :
    https://i37.tinypic.com/14bothe.jpg

    Transcoded into GIF with ImageMagick convert.exe :
    https://i33.tinypic.com/juuwaq.gif

    Transcoded into GIF with ffmpeg.exe :
    https://i35.tinypic.com/34y5vgw.jpg

    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

    Michael Rampe replied 15 years, 11 months ago 2 Members · 1 Reply
  • 1 Reply
  • Michael Rampe

    August 30, 2010 at 8:14 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.

    Michael

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

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy