Posted: . At: 10:20 AM. This was 5 years ago. Post ID: 13322
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Convert a short video clip to a nice webm easily.


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.


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.