[FFmpeg-user] Gif encode with alpha makes a trail

Carl Eugen Hoyos ceffmpeg at gmail.com
Sun Dec 30 23:39:55 EET 2018

2018-12-30 22:26 GMT+01:00, Leonardo Zerino <leo.zerino at gmail.com>:
> I'm using this script:
> #!/bin/sh
> palette="/tmp/palette.png"
> filters="fps=15,scale=240:-1:flags=lanczos"
> #
> ffmpeg -i "$1" -vf "$filters,palettegen=" -y $palette
> ffmpeg -i "$1" -i $palette -lavfi "$filters [x]; [x][1:v] paletteuse" -y
> "$2"
> to generate a gif from a qt animation, but very frame on it is kept in the
> background.

> is there a away to prevent this in the code?

Yes, please test current FFmpeg git head before asking for support here.

And for future questions: Always provide your actual FFmpeg
command line including the complete, uncut console output, do
not provide scripts.

Carl Eugen

More information about the ffmpeg-user mailing list