Extract Audio from WebM to AC3 — Free Online Tool

Extract and convert audio from WebM files to AC3 (Dolby Digital), stripping the VP9 video stream and transcoding Opus or Vorbis audio into the AC3 format used by DVDs, Blu-rays, and broadcast media. This is ideal when you need surround-sound-compatible audio from web video sources.

FFmpeg Command

Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg

Free — no uploads, no signups. Your files never leave your browser.

Estimated output:

Conversion Complete!

Download

How It Works

WebM files typically carry audio encoded with Opus or Vorbis inside a Matroska-based container, neither of which is directly compatible with AC3 (Dolby Digital). This tool discards the video stream entirely using the -vn flag, then decodes the WebM audio (Opus or Vorbis) and re-encodes it into AC3 using FFmpeg's built-in ac3 encoder at a default bitrate of 192k. AC3 supports up to 5.1 surround channels, so if your WebM source contains multichannel audio, that channel layout is preserved through the transcode. Because both the input and output codecs are lossy, this is a generation loss conversion — audio is decoded from one lossy format and re-encoded into another — so avoid unnecessary round-tripping if quality is critical.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg binary, the open-source multimedia processing engine that handles all decoding, transcoding, and encoding in this conversion pipeline.
-i input.webm Specifies the input WebM file. FFmpeg will read and demux both the VP9 video stream and the Opus or Vorbis audio stream from inside the Matroska-based WebM container.
-vn Disables video output entirely, discarding the VP9 video track from the WebM file so that only the audio stream is processed. This is what makes this a pure audio extraction rather than a full media conversion.
-c:a ac3 Sets the audio encoder to ac3, which implements the Dolby Digital (ATSC A/52) standard. This transcodes the decoded Opus or Vorbis audio from the WebM source into AC3, the format required for DVD, Blu-ray, and broadcast compatibility.
-b:a 192k Sets the AC3 audio output bitrate to 192 kilobits per second, which is the default and a standard bitrate for stereo Dolby Digital content. For 5.1 surround audio, a higher bitrate such as 384k or 640k is recommended to preserve surround channel quality.
output.ac3 Specifies the output file as a raw AC3 elementary stream. The .ac3 extension tells FFmpeg to write a bare Dolby Digital bitstream without any container wrapper, which is the correct format for DVD authoring tools and broadcast ingest systems.

Common Use Cases

  • Pulling the audio track from a WebM video downloaded from YouTube or a web archive to create an AC3 file compatible with a DVD authoring workflow
  • Preparing broadcast-ready Dolby Digital audio from a WebM-encoded web stream for use in a television or cable playout system
  • Converting WebM audio from an HTML5 video game cutscene or trailer into AC3 for inclusion in a physical media release
  • Extracting and re-encoding the audio from a WebM conference recording into AC3 to match the required format for a Blu-ray bonus content disc
  • Creating a Dolby Digital audio track from a WebM source to use in a home theater receiver or AV system that does not support Opus or Vorbis passthrough
  • Transcoding WebM audio to AC3 to meet the audio format requirements of a broadcast encoder or satellite uplink system

Frequently Asked Questions

Yes, some quality loss is unavoidable. Opus (the default WebM audio codec) is generally considered higher quality than AC3 at equivalent bitrates, so transcoding from Opus to AC3 involves decoding from one lossy format and re-encoding into another. The default 192k AC3 output is a reasonable middle ground for stereo content, but if your source was encoded at a high Opus bitrate for surround audio, consider using a higher AC3 bitrate like 384k or 640k to minimize degradation.
Yes. AC3 natively supports up to 5.1 channels, and if your WebM file contains a multichannel Opus or Vorbis audio track, FFmpeg will preserve the channel layout during transcoding. The default 192k bitrate is on the low side for 5.1 content — Dolby typically recommends 384k or higher for full surround — so you should increase the bitrate for multichannel sources to maintain acceptable audio quality.
This tool performs a pure audio extraction, outputting a raw AC3 elementary stream file (.ac3) rather than wrapping it in a container like MP4 or MKV. A raw .ac3 file can be played by most media players directly, and it's the correct format for muxing into DVD or Blu-ray authoring tools. If you need the AC3 audio inside a container, you can remux the .ac3 file into MKV or MP4 using FFmpeg with -c:a copy after this step.
Replace the -b:a 192k value in the command with your desired bitrate. AC3 supports bitrates of 96k, 128k, 192k, 256k, 320k, 384k, 448k, and 640k. For stereo content, 192k or 256k is typically sufficient. For 5.1 surround, use at least 384k — the command would become: ffmpeg -i input.webm -vn -c:a ac3 -b:a 384k output.ac3. Note that 640k is the maximum bitrate allowed by the AC3 specification.
The command shown processes a single file, but you can batch process on the command line with a shell loop. On Linux or macOS: for f in *.webm; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.webm}.ac3"; done. On Windows Command Prompt: for %f in (*.webm) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". The browser-based tool processes one file at a time.
Raw AC3 elementary streams have very limited metadata support compared to WebM's Matroska container, which can store rich tags. FFmpeg will attempt to copy compatible metadata fields, but most container-level tags from the WebM source will be lost in the output .ac3 file. If metadata preservation is important, consider muxing the AC3 audio into an MKV or MP4 container where tagging is better supported.

Technical Notes

The AC3 encoder in FFmpeg (codec identifier: ac3) implements the ATSC A/52 standard, the same specification used in commercial Dolby Digital encoding. Unlike WebM's Opus codec — which uses a variable, perceptually adaptive bitrate algorithm with very low latency — AC3 uses a fixed-bitrate transform coding approach based on a modified discrete cosine transform (MDCT). The valid AC3 bitrate values are constrained by the specification itself (not arbitrary), which is why only specific bitrates like 192k, 384k, and 640k are available rather than a continuous range. If your WebM source uses Vorbis rather than Opus as the audio codec, the decoding and transcoding path is the same; FFmpeg handles both transparently. One important limitation: AC3 does not support more than 6 channels (5.1), so WebM sources with 7.1 or higher channel audio cannot be losslessly represented in AC3 and will require downmixing. The -vn flag is essential here — without it, FFmpeg would attempt to encode the VP9 video stream into the output, which is not valid inside a raw .ac3 stream and would cause an error.

Related Tools