Question regarding .gif thumbnailing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Question regarding .gif thumbnailing

FFmpeg-users mailing list
Hello. I'm using ffmpeg to generate thumbnails for my JavaScript web project. Now I'm having a little problem with .gif thumbnails. Original gif: https://files.catbox.moe/frrsev.gif my software's thumbnail: https://files.catbox.moe/3rtv3o.gif

As you can see, the thumbnail is not perfect and kind of buggy. This only happens with transparent .gifs. The filter i'm using is: [0:v] scale=${thumbSizeFilter},split [a][b]; [a] palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p] paletteuse

Any ideas on how to improve it? Thanks.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

pdr0
FFmpeg-users mailing list wrote

> Hello. I'm using ffmpeg to generate thumbnails for my JavaScript web
> project. Now I'm having a little problem with .gif thumbnails. Original
> gif: https://files.catbox.moe/frrsev.gif my software's thumbnail:
> https://files.catbox.moe/3rtv3o.gif
>
> As you can see, the thumbnail is not perfect and kind of buggy. This only
> happens with transparent .gifs. The filter i'm using is: [0:v]
> scale=${thumbSizeFilter},split [a][b]; [a]
> palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p]
> paletteuse
>
> Any ideas on how to improve it? Thanks.

This works ok for me; it was fixed a while back. Make sure you use a recent
git version



--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

FFmpeg-users mailing list
I'm using 4.3.2 built from source.




‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday 17 March 2021 15:51, pdr0 <[hidden email]> wrote:

> FFmpeg-users mailing list wrote
>
> > Hello. I'm using ffmpeg to generate thumbnails for my JavaScript web
> > project. Now I'm having a little problem with .gif thumbnails. Original
> > gif: https://files.catbox.moe/frrsev.gif my software's thumbnail:
> > https://files.catbox.moe/3rtv3o.gif
> > As you can see, the thumbnail is not perfect and kind of buggy. This only
> > happens with transparent .gifs. The filter i'm using is: [0:v]
> > scale=${thumbSizeFilter},split [a][b]; [a]
> > palettegen=reserve_transparent=on:transparency_color=ffffff [p]; [b][p]
> > paletteuse
> > Any ideas on how to improve it? Thanks.
>
> This works ok for me; it was fixed a while back. Make sure you use a recent
> git version
>
>
> -------------------------------------------------------------------------------------------
>
> Sent from: http://ffmpeg-users.933282.n4.nabble.com/
>
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

pdr0
FFmpeg-users mailing list wrote
> I'm using 4.3.2 built from source.


maybe there is a regression ? post your console output

https://i.postimg.cc/htBxJ81m/output.gif

ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
output.gif



--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

FFmpeg-users mailing list
Trying your command in my console gives the exact same "buggy" gif thumbnail I sent in my first email. Here's a screenshot of my console's process: https://files.catbox.moe/m2xldm.png

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday 17 March 2021 16:07, pdr0 <[hidden email]> wrote:

> FFmpeg-users mailing list wrote
>
> > I'm using 4.3.2 built from source.
>
> maybe there is a regression ? post your console output
>
> https://i.postimg.cc/htBxJ81m/output.gif
>
> ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
> palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
> output.gif
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Sent from: http://ffmpeg-users.933282.n4.nabble.com/
>
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

pdr0
FFmpeg-users mailing list wrote
> Trying your command in my console gives the exact same "buggy" gif
> thumbnail I sent in my first email. Here's a screenshot of my console's
> process: https://files.catbox.moe/m2xldm.png
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday 17 March 2021 16:07, pdr0 &lt;

> pdr0@

> &gt; wrote:
>
>> FFmpeg-users mailing list wrote
>>
>> > I'm using 4.3.2 built from source.
>>
>> maybe there is a regression ? post your console output
>>
>> https://i.postimg.cc/htBxJ81m/output.gif
>>
>> ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
>> palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
>> output.gif
>>
>>
>>

I'm on windows but I can reproduce your issue with the 4.3.2 release
version. You need to use the git version




--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

FFmpeg-users mailing list
You mean the master version without checking out the n4.3.2 release?

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday 17 March 2021 16:40, pdr0 <[hidden email]> wrote:

> FFmpeg-users mailing list wrote
>
> > Trying your command in my console gives the exact same "buggy" gif
> > thumbnail I sent in my first email. Here's a screenshot of my console's
> > process: https://files.catbox.moe/m2xldm.png
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > On Wednesday 17 March 2021 16:07, pdr0 <
>
> > pdr0@
>
> > > wrote:
> >
> > > FFmpeg-users mailing list wrote
> > >
> > > > I'm using 4.3.2 built from source.
> > >
> > > maybe there is a regression ? post your console output
> > > https://i.postimg.cc/htBxJ81m/output.gif
> > > ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
> > > palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
> > > output.gif
>
> I'm on windows but I can reproduce your issue with the 4.3.2 release
> version. You need to use the git version
>
>
> -----------------------------------------------------------------------------------------------------------------
>
> Sent from: http://ffmpeg-users.933282.n4.nabble.com/
>
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

pdr0
FFmpeg-users mailing list wrote
> You mean the master version without checking out the n4.3.2 release?
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Wednesday 17 March 2021 16:40, pdr0 &lt;

> pdr0@

> &gt; wrote:
>
>> FFmpeg-users mailing list wrote
>>
>> > Trying your command in my console gives the exact same "buggy" gif
>> > thumbnail I sent in my first email. Here's a screenshot of my console's
>> > process: https://files.catbox.moe/m2xldm.png
>> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>> > On Wednesday 17 March 2021 16:07, pdr0 <
>>
>> > pdr0@
>>
>> > > wrote:
>> >
>> > > FFmpeg-users mailing list wrote
>> > >
>> > > > I'm using 4.3.2 built from source.
>> > >
>> > > maybe there is a regression ? post your console output
>> > > https://i.postimg.cc/htBxJ81m/output.gif
>> > > ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
>> > >
>> palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
>> > > output.gif
>>
>> I'm on windows but I can reproduce your issue with the 4.3.2 release
>> version. You need to use the git version
>>
>>
>> -----------------------------------------------------------------------------------------------------------------
>>
>> Sent from: http://ffmpeg-users.933282.n4.nabble.com/
>>
>> ffmpeg-user mailing list
>>

> ffmpeg-user@

>> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>
>> To unsubscribe, visit link above, or email
>>

> ffmpeg-user-request@

>  with subject "unsubscribe".
>
>
> _______________________________________________


Yes, use the "git master" branch, which has all the bug fixes . The 4.3.2
"release" stable branch lags behind about 6 months and still has that old
gif transparency disposal bug




--
Sent from: http://ffmpeg-users.933282.n4.nabble.com/
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://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: Question regarding .gif thumbnailing

FFmpeg-users mailing list
Just tried the master branch and indeed the .gif thumbnail produced is completely clean now. I guess it'll land in 4.3.3 or 4.4. Thanks for your help.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday 17 March 2021 17:10, pdr0 <[hidden email]> wrote:

> FFmpeg-users mailing list wrote
>
> > You mean the master version without checking out the n4.3.2 release?
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > On Wednesday 17 March 2021 16:40, pdr0 <
>
> > pdr0@
>
> > > wrote:
> >
> > > FFmpeg-users mailing list wrote
> > >
> > > > Trying your command in my console gives the exact same "buggy" gif
> > > > thumbnail I sent in my first email. Here's a screenshot of my console's
> > > > process: https://files.catbox.moe/m2xldm.png
> > > > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> > > > On Wednesday 17 March 2021 16:07, pdr0 <
> > >
> > > > pdr0@
> > >
> > > > > wrote:
> > > >
> > > > > FFmpeg-users mailing list wrote
> > > > >
> > > > > > I'm using 4.3.2 built from source.
> > > > >
> > > > > maybe there is a regression ? post your console output
> > > > > https://i.postimg.cc/htBxJ81m/output.gif
> > > > > ffmpeg -i frrsev.gif -filter_complex "scale=250:250, split[a][b]; [a]
> > >
> > > palettegen=reserve_transparent=on:transparency_color=ffffff[p],[b][p]paletteuse"
> > >
> > > > > output.gif
> > >
> > > I'm on windows but I can reproduce your issue with the 4.3.2 release
> > > version. You need to use the git version
> > >
> > > Sent from: http://ffmpeg-users.933282.n4.nabble.com/
> > > ffmpeg-user mailing list
>
> > ffmpeg-user@
>
> > > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> > > To unsubscribe, visit link above, or email
>
> > ffmpeg-user-request@
>
> > with subject "unsubscribe".
>
> Yes, use the "git master" branch, which has all the bug fixes . The 4.3.2
> "release" stable branch lags behind about 6 months and still has that old
> gif transparency disposal bug
>
>
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Sent from: http://ffmpeg-users.933282.n4.nabble.com/
>
> ffmpeg-user mailing list
> [hidden email]
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> [hidden email] with subject "unsubscribe".


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

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