Bionus / imgbrd-grabber

Very customizable imageboard/booru downloader with powerful filenaming features.
https://www.bionus.org/imgbrd-grabber/
Apache License 2.0
2.4k stars 212 forks source link

Animated images converted to WEBP are not looping. #3211

Open ProtagNeptune opened 2 weeks ago

ProtagNeptune commented 2 weeks ago

image

image image

Potential Fix

  1. ffmpeg -i input.gif -vcodec webp -loop 0 -pix_fmt yuva420p output.webp
  2. ~ffmpeg -i input.png -c:v libwebp -loop 0 -pix_fmt yuva420p output.webp~
ProtagNeptune commented 2 weeks ago

I did some tests with the two commands.

Animated GIF 1st command is working fine, and the animation loops indefinitely. 2nd command is working fine, and the animation loops indefinitely.

Transparent Animated PNG 1st command is working fine, and the animation loops indefinitely. 2nd command duplicates frames, and the animation loops indefinitely.

ProtagNeptune commented 2 weeks ago

I tried with a Transparent Animated GIF 1st command is working fine, and the animation loops indefinitely. 2nd command duplicates frames, and the animation loops indefinitely.

ProtagNeptune commented 2 weeks ago

I tested another command with Transparent Animated PNG that's working fine, and the animation loops indefinitely.

ffmpeg -i input.png -c:v libwebp_anim -loop 0 -pix_fmt yuva420p output.webp
ProtagNeptune commented 5 days ago

This would be a possible fix: https://github.com/Bionus/imgbrd-grabber/issues/3214#issuecomment-2203866453