[FFmpeg-devel] [PATCH] avfilter/elbg: Extend filter to include alpha values in the quantization procedure

Soft Works softworkz at hotmail.com
Sun Sep 26 20:56:36 EEST 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Michael Niedermayer
> Sent: Sunday, 26 September 2021 18:52
> To: FFmpeg development discussions and patches <ffmpeg-
> devel at ffmpeg.org>
> Subject: Re: [FFmpeg-devel] [PATCH] avfilter/elbg: Extend filter to
> include alpha values in the quantization procedure
> 
> On Sun, Sep 26, 2021 at 04:57:25AM +0000, Soft Works wrote:
> > Usage example:
> >
> > ffmpeg -y -loglevel verbose -i "..\fate-suite\apng\o_sample.png" -
> filter_complex "elbg=pal8=1:use_alpha=1" -frames:v 1 out.png
> >
> > Signed-off-by: softworkz <softworkz at hotmail.com>
> > ---
> >  doc/filters.texi      |  4 ++++
> >  libavfilter/vf_elbg.c | 25 ++++++++++++++++---------
> >  2 files changed, 20 insertions(+), 9 deletions(-)
> 
> will apply

Thank you.

Please allow me another note: I think the naming of this filter
is terrible. I've gone through the list of all ffmpeg filters
many more times than the typical user, but without the specific
pointers I had gotten from you and a few other devs, I would 
have never identified the "elbg" filter as something that 
would do what I'm looking for.

Given the great results that this algorithm can provide, it's
a bit sad when this filter would remain to be a widely unknown
hidden gem in the future.

No matter whether, 'posterize', 'color_quantize', 'elbg_palettize'
- everything would be better than 'elbg'...

Kind regards,
softworkz




More information about the ffmpeg-devel mailing list