Bionus/imgbrd-grabber

Animated images converted to WEBP are not looping.

Opened this issue · 4 comments

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

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.

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.

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

This would be a possible fix: #3214 (comment)