ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 output.webm

Category: Media & Conversion

ffmpeg -i input.mp4 -c:v libvpx-vp9 -crf 30 -b:v 0 output.webm

Encode a WebM video with the VP9 codec

Encodes a WebM file with the VP9 codec, a common choice for web video. The -crf 30 controls quality while -b:v 0 switches the encoder into constant-quality mode, since without it CRF is ignored. VP9 is slower than x264 but compresses better at the same quality.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.