Convert mkv to webm

To convert Matroska video files (.mkv), to WebM video files (.webm), I've found that this command produces good results:

$ ffmpeg -i foo.mkv -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis foo.webm

The resulting foo.webm video file plays natively in Firefox and Google Chrome, as well as standalone video players like mpv

Licensed under CC BY Creative Commons License ~ ✉ torstein.k.johansen @ gmail ~ 🐘 ~ 🐦 @torsteinkrause