Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screencast GIFs optimized palette #193

Open
aheissenberger opened this issue May 20, 2020 · 2 comments
Open

Screencast GIFs optimized palette #193

aheissenberger opened this issue May 20, 2020 · 2 comments

Comments

@aheissenberger
Copy link

Great App 馃憦!

What I miss from switching from ffmpeg is the creation of a specific color palette which makes the result not show the typical compression artefacts and is much smaller.

Here is an example done with ffmpeg:

  1. Create a palette image from the video:
    ffmpeg -y -i in.mov -vf fps=5,palettegen palette.png
    => palette
  2. Convert into a GIF using the palette:
    ffmpeg -i in.mov -i palette.png -filter_complex "fps=5,paletteuse" out.gif

Here are the Results

  1. File processed by ffmpeg (FPS: 5) - Size: 29.375 Byte
    out-ffmpeg
  2. File processed by Gifski (Version: 2.7.1, FPS: 5, Quality: 50%) - Size: 62.874 Byte
    out-gifski
@sindresorhus
Copy link
Owner

I doubt we'll add advanced settings like specifying a custom palette. However, there might be a way to improve the quality/size by default for this kind of recording. @kornelski would have to comment on this though. I don't know how the algorithm works.

@kornelski
Copy link
Collaborator

kornelski commented Jun 29, 2020

gifski always picks high quality palette for every single frame, which makes it better looking than ffmpeg's solution which has one (and not so high quality) palette for average of all frames.

That does cost in file size, but gifski is about maxing quality at the cost of totally ignoring how that balloons file size.

The quality slider enables lossy compression which is effective for natural video-like content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants