using ffmpeg to make animated webp images

696 views
Skip to first unread message

tri...@gmail.com

unread,
Jul 6, 2014, 5:30:08 PM7/6/14
to webp-d...@webmproject.org
It seems that when you convert video to gif and then gif to webp, you lose many of the benefits of the webp format itself since you are downsampling to a 256 color palette initially. What I would like to do is go straight from video to animated webp via ffmpeg. However, this doesn't seem to be possible at the moment. I've opened a ticket on their end : https://trac.ffmpeg.org/ticket/3760 but would like to know if a patch on the libwebp end would enable this feature in ffmpeg or not.

Best,
Greg

James Zern

unread,
Jul 8, 2014, 6:30:19 PM7/8/14
to webp-d...@webmproject.org, tri...@gmail.com
Hi,


On Sunday, July 6, 2014 2:30:08 PM UTC-7, tri...@gmail.com wrote:
It seems that when you convert video to gif and then gif to webp, you lose many of the benefits of the webp format itself since you are downsampling to a 256 color palette initially. What I would like to do is go straight from video to animated webp via ffmpeg. However, this doesn't seem to be possible at the moment. I've opened a ticket on their end : https://trac.ffmpeg.org/ticket/3760 but would like to know if a patch on the libwebp end would enable this feature in ffmpeg or not.

This work would be fully in ffmpeg, libwebp currently only handles single frames. In gif2webp for instance we use libwebp for compression and libwebpmux for the final assembly. A simple video frame encoder could do the same in ffmpeg, apng/gif conversion may be a bit more difficult to get right.
Reply all
Reply to author
Forward
0 new messages