Re: [FFmpeg-devel] Color quantization for GIF v2

2015-02-14 Thread Clément Bœsch
Patchset improved with regard to: • quality: palettegen now uses the variance to determine which box to split instead of the number of color inside (a box encloses a bunch of colors and is averaged at the end to produce the palette color entry). • speed: paletteuse now cache the found

Re: [FFmpeg-devel] Color quantization for GIF v2

2015-02-10 Thread Clément Bœsch
On Mon, Feb 09, 2015 at 06:35:08PM +0100, Clément Bœsch wrote: [...] > • I added many debug utils (understand: dead code) in palettegen which is > very useful for debugging and error checking. I'd like to keep them if no > one mind. For example, it allows generating pictures such as >

Re: [FFmpeg-devel] Color quantization for GIF v2

2015-02-10 Thread Clément Bœsch
On Mon, Feb 09, 2015 at 06:35:08PM +0100, Clément Bœsch wrote: [...] > • we might still want to consider a per frame palette approach To elaborate on this point, what I meant was to define a per frame palette only for the part that change. I originally dismissed that idea for 2 reasons: • it c

[FFmpeg-devel] Color quantization for GIF v2

2015-02-09 Thread Clément Bœsch
Hi folks, TL;DR: http://lucy.pkh.me/ffgif/outputs/ (note: this page is heavy; over 200M) So here is the new version of the patchset. Many changes since previous time, here is a summary: palettegen filter: • added max_colors and stats_mode options • RGB 5:5:5 to full resolution RGB (24 bits)