Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animated webp are not working properly (the transition is done but actual animation is not working) #260

Open
beh-10257 opened this issue Apr 4, 2024 · 7 comments
Labels
upstream Things that depend on crates we use

Comments

@beh-10257
Copy link

output.txt
rename the file into output.webp or something
than swww img ouput.webp
transition works but the actual image animation doesn't

@beh-10257
Copy link
Author

2024-04-04_20-37-38.mp4

a video that pretty much explains everything

@LGFae
Copy link
Owner

LGFae commented Apr 4, 2024

I think you also mentioned you are on the latest version, 0.9.1, right?

@beh-10257
Copy link
Author

yes I am

@LGFae
Copy link
Owner

LGFae commented Apr 4, 2024

I honetly believe that image you've sent is simply corrupted somehow. The browser will animate, but neither imv or ffmpeg will.

If you try this animated image instead, swww seems to works fine.

EDIT: scratch that; ffmpeg and imv just don't display animated webp in general. This appears to be a mistake on the image's crate side, but I will have to investigate further.

@beh-10257
Copy link
Author

ohhh yeah that seems like it I guess its with the way I convert video into webp thanks
this is solved I guess
I will post here if I find a solution

@beh-10257
Copy link
Author

@LGFae I found the issue
in ffmpeg there are two webp encoders
image
images coming from libwebp work seemlessly in swww
but images coming in libwebp_anim show the formentioned behaviour
FWIW I would say the file size difference is considerable
image

so the question is (is this supposed to be supported)

@beh-10257 beh-10257 reopened this Apr 4, 2024
@LGFae
Copy link
Owner

LGFae commented Apr 5, 2024

This would be an issue in either ffmpeg, libwebp_anim, or possibly even in the rust image crate, but not here. You'd have to investigate further to figure it out. Seems like a bit of a pain to be honest. I'd recommend just using the larger file and calling it a day.

Alternatively, have you tried generating an APNG image? Maybe the size will be smaller.

@LGFae LGFae added the upstream Things that depend on crates we use label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Things that depend on crates we use
Projects
None yet
Development

No branches or pull requests

2 participants