Converting a short video clip to a small webm file is very easy. Firstly, do this as part 1 of the two pass encoding process.
ffmpeg -i BarakaClip.mkv -c:v libvpx -deadline good -cpu-used 5 -b:v 1000K -qmax 50 -an -f null - |
Then, this to finish the process.
ffmpeg -i BarakaClip.mkv -c:v libvpx -deadline good -cpu-used 0 -b:v 1000K -qmax 50 -an "barakaclip.webm" |
This shows the difference in the file size.
-rw-r--r-- 1 jason jason 238M Jun 11 10:03 BarakaClip.mkv -rw-r--r-- 1 jason jason 3.1M Jun 11 10:06 barakaclip.webm |
A 238 megabyte file, converted to 3.1 megabytes. This is impressive. This would be very useful for showing off a clip from a movie on your website.
This is the quality I got when I encoded a short video clip in 1080p.