After looking around the web, I found no 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?
WebM files consist of video streams compressed with the VP8 or VP9 video codecs and audio streams compressed with the Vorbis or Opus audio codecs. The WebM file structure is based on the Matroska container.
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.
ffmpeg -i input.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output.webm
By default the CRF value can be from 4–63, and 10 is a good starting point. Lower values mean better quality.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With