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.