17. 3. 2020

Convert GIF to WebM with ffmpeg

ffmpeg -i my-animation.gif -c vp9 -b:v 0 -crf 41 my-animation.webm
<video autoplay loop muted playsinline>
  <source src="my-animation.webm" type="video/webm">
</video>

#bash #ffmpeg