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.webmWhen to use it
- modern web video
- compression tests
- AV1 experiments
How it works
- Upload the source video.
- Run the AV1 encoding command.
- Download the AV1 WebM output.
Option reference
| Option | What it does |
|---|---|
-c:v libaom-av1 | Uses the AV1 encoder when available in the FFmpeg build. |
-crf 34 -b:v 0 | Uses quality-based AV1 encoding. |
-c:a libopus | Encodes 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.