Since the newest version (4.0), ffmpeg supports the AV1 codec. VLC should also be able to play AV1 videos.

Unfortunately I haven't found the syntax to encode existing videos to AV1. I use ffmpeg from the command line like:

ffmpeg -i input.mp4 output.avi

But what are the required options for AV1?

  • You really do not want to use AVI containers anymore. – Daniel B May 15 '18 at 9:05
  • @DanielB the new one AV1 not AVI – Dr. Snail May 15 '18 at 9:41
  • Sure. However, in your question you have .avi. – Daniel B May 15 '18 at 13:00
  • That's the default sample of FFMPeg at ffmpeg.org – Dr. Snail May 15 '18 at 14:43
  • What is the best container to use for AV1? – Aaron Franke Jan 5 at 1:47

AV1 decoding and encoding is provided via libaom if your ffmpeg build has the library linked. In order to link the library, compile ffmpeg with --enable-libaom (see the compilation guides).

The basic syntax is:

ffmpeg -i input.mp4 -c:v libaom-av1 -strict -2 output.avi

(Note: -strict -2 or -strict experimental is required since the encoder is, at present, experimental. AV1 encoding is very slow at this point.)

You may specify a target bitrate (e.g., -b:v 2M) or a target quality level (e.g. -crf 30). libaom also supports 2-pass encoding.

For more info, see the AV1 encoding guide on the FFmpeg Wiki.

|improve this answer|||||
  • thanks so far! Could you also add a reference or did you gat that by trying? – Dr. Snail May 15 '18 at 9:42
  • No ref yet; I'll add it to the documentation soon. – Gyan May 15 '18 at 9:45
  • Simpler/Clearer in newer versions: ffmpeg -c:v av1 -strict experimental – Patrick Mevzek Mar 20 at 3:28
  • This will pick the highest priority AV1 encoder available - there are three available, IIRC. – Gyan Mar 20 at 4:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.