title: Converting a MOV to WEBP
body: <p>I have a transparent video that I would like to include on my website with a background behind it. I am trying to convert it to .WEBP via ffmpeg.</p>
  
  <p>I have previously succeeded in converting it to .WEBM, but many browsers don't support it, so I thought trying .WEBP. Although .WEBP is also not supported on all browsers, there is a JS package to fix that: <a href="http://webpjs.appspot.com/" rel="nofollow noreferrer">http://webpjs.appspot.com/</a></p>
  
  <p>I have tried <strong>(A) from .mov to .webp directly</strong> and <strong>(B) first from .mov to .webm to then go to .webp</strong>
  The conversion to .webp isn't correct. The new frames are rendered over the old ones. This question had the same problem, but it doesn't start from a .Mov like me so I doesn't help me: <a href="https://stackoverflow.com/questions/38864497/transparent-animated-webp-not-clearing-frames">Transparent animated WebP not clearing frames</a></p>
  
  <p><strong>A)</strong></p>
  
  <p>ffmpeg -i input.mov -vcodec libwebp -lossless 1 -qscale 0 -preset none -an -vsync 0 -loop 1 output4.webp</p>
  
  <p><strong>B)</strong></p>
  
  <p>ffmpeg -i input.mov -c:v libvpx -b:v 0.5M  -filter:v "crop=in_w*4/6:in_h" -c:a libvorbis -auto-alt-ref 0 -vf scale=960:540 output.webm</p>
  
  <p>ffmpeg -i output.webm -vcodec libwebp -lossless 1 -q 60 -preset default -an -vsync 0 -loop 1 output.webp</p>
  
  <p>My goal is to try webp as a way to show transparent animations.
  (GIFs are to big, APNG is not supported and also to big).</p>
  
  <p><strong>If someone has another alternative, let me know! I rather not started coding them in actual html/css/js, because an animator already took the time to make them in after effects...</strong></p>