Animated Webp support
#1
I know that kodi supports the .webp format but not the animated ones...They have much smaller file sizes and very good quality.
I did some searching around and believe that what needs to be done to add this is updating Pillow (PIL) to at least 6.0 with libwebp
updated to at least 1.0.2

Thanks for the consideration
Reply
#2
An example of animated .webp

Image

Also animated .avif would be great...it has an even smaller file size supports alpha and great image quality.
example can be found here....https://www.mediafire.com/file/2j224rtwy....avif/file
Reply
#3
As far as i can tell, it would require support in ffmpeg. Found this ticket on their trac that looks as though its still outstanding for the decoder

https://trac.ffmpeg.org/ticket/4907

Essentially ffmpeg can ENCODE animated webp (via libwebp), but it has no support for decoding animated webp. Looks like they use their own internal webp decoder, not libwebp.

Adding support to pillow is possible (https://github.com/fuzzard/xbmc/commit/0...29083509b7), but its not going to do what you are hoping for (playback of an animated webp outside of an addon that explicitly shows them)
Reply
#4
@Fuzzard 
Thanks for looking into it.... maybe in the future
Reply
#5
Just one more question on this...
so pillow does not handle the image decoding like textures i.e. posters, logos etc.?

I am not a coder by any means and have very little understanding of how this works.

I did find some relevant (python) animated webp instructions but have no clue how to implement.

https://pypi.org/project/webp/ 
https://github.com/anibali/pywebp
Reply



Logout Mark Read Team Forum Stats Members Help
Animated Webp support0
This forum uses Lukasz Tkacz MyBB addons.