ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -b:v 0 -c:a libopus output.mkv

Category: Media & Conversion

ffmpeg -i input.mp4 -c:v libaom-av1 -crf 30 -b:v 0 -c:a libopus output.mkv

Encode video with AV1 for maximum compression

Encodes with the AV1 codec, the most efficient codec widely supported today, using the libaom encoder. -crf 30 sets quality and -b:v 0 enables constant-quality mode; -c:a libopus picks an efficient audio codec. Encoding is very slow, so a small clip can take many minutes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.