19
loading...
This website collects cookies to deliver better user experience
ffmpeg -i {original}.gif -b:v 0 -crf 25 -f mp4 -vcodec libx264 -pix_fmt yuv420p {output}.mp4
Note: change the variables to the actual names of the files you are using and want to get.
ffmpeg -i {original}.gif -c vp9 -b:v 0 -crf 41 {output}.webm
GIF
: 13,2MBMP4
: 945KBWEBM
: 370KB<img src="image.gif" alt="descriptive text" loading="lazy" />
<video autoplay loop muted playsinline>
<source src="video.webm" type="video/webm" />
<source src="video.mp4" type="video/mp4" />
</video>