FFMPEG - Create WebP Animated Images
I wanted to find an animated image format that would allow me to have a larger, better quality image, than what I can achieve with GIF.
This is how one can use Ffmpeg to convert a short video into a WebP animated image.
Steps
Copy, paste, and execute the script below after having tweaked the variables at the top to match your needs.
If you need a script that will first extract the appropriate clip from your video, use the following instead:
Below is an animated WebP image I managed to create that would fit within Discord's 8 MB file limit:
Unfortunately, it appears that Discord does not currently support WebP images, but they did in the past.
Gif Comparison
I converted the video to a GIF as well for comparison (below), which resulted in a larger file and a much poorer quality.
References
First published: 28th February 2021