[FFmpeg-devel] [PATCH 3/7] Removing some debugging

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Oct 6 02:14:43 EEST 2017


2017-10-05 21:44 GMT+02:00 Carl Eugen Hoyos <ceffmpeg at gmail.com>:

> I tested the following with the sample from ticket #503:
> $ ffmpeg -i rgba64le-lzw.tif -vf palettegen pal.png
> $ ffmpeg -i rgba64le-lzw.tif -i pal.png -lavfi paletteuse out.gif
>
> The output file has its background (that is supposed to be
> transparent) converted to white (which I believe is good)
> but the respective colour white (that is the 256th and last
> colour in the palette) is not transparent but opaque (0xff).
> Instead the first colour (0x00ff00) is the only transparent
> colour in the palette. The output gif is opaque.
>
> I confirmed that if I force the first palette entry to opaque
> (0xFF00FF00) and the last one to transparent (0xFFFFFF)
> in apply_palette() I get the expected transparent output with
> above command line.

Forgot to mention:
I can reproduce this exact behaviour writing a png image:
$ ffmpeg -i rgba64le-lzw.tif -i pal.png -lavfi paletteuse out.png

Carl Eugen


More information about the ffmpeg-devel mailing list