How to create a webm video file?

Marneau picture Marneau · Aug 5, 2011 · Viewed 79.1k times · Source

After looking over the web project I see no evidence of a way to generate a webm video. I see drivers for Windows and Quicktime, but no evidence that the most common utility ffmpeg is being supported.

Is there any open source converter that produces webm?

Answer

matzahboy picture matzahboy · Aug 8, 2011

You can use ffmpeg to convert to webm. Make sure to compile it with the --enable-libvpx and --enable-libvorbis flags (see FFmpeg compile guides), or visit the FFmpeg Download page for links to builds that include support. After that, you can use the following command (I'm using input.flv as my example input file):

ffmpeg -i input.flv -vcodec libvpx -acodec libvorbis output.webm

For additional information see the FFmpeg vpx (WebM) Encoding Guide.