Gif encode with alpha makes a trail

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gif encode with alpha makes a trail

zerino
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?

the gif :

https://imgur.com/a/DmTTSr9
--
Leonardo Zerino
(11)98479.9777
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Gif encode with alpha makes a trail

Carl Eugen Hoyos-2
2018-12-30 22:26 GMT+01:00, Leonardo Zerino <[hidden email]>:

> 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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".