Browser FFmpeg recipe

Encode AV1 Video Online with FFmpeg

Create a WebM file using AV1 video and Opus audio.

Command

Run this FFmpeg command

ffmpeg -i input.mp4 -c:v libaom-av1 -crf 34 -b:v 0 -c:a libopus -b:a 96k output-av1.webm

When to use it

  • modern web video
  • compression tests
  • AV1 experiments

How it works

  1. Upload the source video.
  2. Run the AV1 encoding command.
  3. Download the AV1 WebM output.

Option reference

OptionWhat it does
-c:v libaom-av1Uses the AV1 encoder when available in the FFmpeg build.
-crf 34 -b:v 0Uses quality-based AV1 encoding.
-c:a libopusEncodes audio with Opus for WebM.

Practical notes

  • AV1 can be very slow, especially in browser-based FFmpeg.
  • If AV1 is unavailable in the build, use VP9 WebM instead.

FAQ

Why use AV1?

AV1 can compress efficiently for modern web playback.

What if the command fails?

The browser FFmpeg core may not include the AV1 encoder. Use video to WebM as a fallback.