To convert an .mkv video file to .webm, I find this commands 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.
#video #linux #unix