Extract Audio from AVI to AC3 — Free Online Tool
Extract and convert the audio track from an AVI file into AC3 (Dolby Digital) format using the ac3 codec at 192kbps by default. This is ideal for producing surround-sound-ready audio from legacy AVI sources for use in DVD authoring, Blu-ray workflows, or broadcast pipelines.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your AVI file here
or click to browse
Free — no uploads, no signups. Your files never leave your browser.
Settings
Note: Browser-based encoding uses approximate quality targets. For precise CRF compression, copy the FFmpeg command above and run it on your desktop.
Estimated output:
Conversion Complete!
DownloadHow It Works
AVI files commonly store audio encoded with MP3 (libmp3lame) or AAC, interleaved with a video stream in Microsoft's legacy container format. This tool discards the video stream entirely and re-encodes the audio track using Dolby Digital's AC3 codec — it is a full transcode, not a remux, because the source audio codec (MP3 or AAC) is different from the AC3 target. FFmpeg decodes the original audio to raw PCM internally, then re-encodes it to AC3 at the specified bitrate. The output is a raw .ac3 bitstream file, which carries no container overhead and is directly compatible with DVD authoring tools, Dolby Digital decoders, and broadcast systems that expect AC3 elementary streams.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary. In the browser tool, this runs via FFmpeg.wasm (WebAssembly) entirely client-side — no data leaves your machine. On the desktop, this calls your locally installed FFmpeg executable. |
-i input.avi
|
Specifies the input AVI file. FFmpeg reads the interleaved audio and video streams from this legacy Microsoft container, decoding whichever streams are needed for the conversion. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore the video stream in the AVI. Since the goal is to extract audio as an AC3 file, the video data is discarded and not processed, which also speeds up conversion. |
-c:a ac3
|
Sets the audio encoder to Dolby Digital AC3. This re-encodes the AVI's audio (typically MP3 or AAC) into the AC3 format, which is the codec required for DVD audio tracks, Blu-ray Dolby Digital streams, and broadcast AC3 elementary streams. |
-b:a 192k
|
Sets the AC3 audio bitrate to 192kbps, which is the default and a common broadcast-quality setting for stereo Dolby Digital. For DVD 5.1 surround sound, 448kbps is the standard; for maximum quality, 640kbps is the AC3 ceiling. |
output.ac3
|
Specifies the output as a raw AC3 elementary bitstream file. The .ac3 extension signals FFmpeg to write a bare Dolby Digital bitstream with no container wrapper, which is the correct format for DVD authoring tools and broadcast ingest systems that expect AC3 elementary streams. |
Common Use Cases
- Extracting the audio from an AVI home video or legacy recording to prepare it for DVD authoring software that requires Dolby Digital AC3 audio tracks
- Converting an AVI film rip's audio track to AC3 for use in a Blu-ray or DVD remux project where Dolby Digital is the required audio format
- Pulling the audio from an AVI broadcast capture and converting it to AC3 for ingest into a broadcast playout system or video editor that accepts AC3 elementary streams
- Re-encoding AVI audio to AC3 5.1 to take advantage of Dolby Digital's surround sound capabilities when the downstream playback device (e.g., an AV receiver or set-top box) requires AC3 input
- Archiving just the audio portion of a large AVI file as a compact AC3 file, discarding the video to save storage while retaining compatibility with media servers like Plex or Kodi
Frequently Asked Questions
Yes — this is a lossy-to-lossy transcode. The original audio in the AVI (typically MP3 or AAC) is first decoded to uncompressed PCM, then re-encoded to AC3. Each generation of lossy compression introduces some degradation. To minimize quality loss, use the highest available bitrate (640kbps) if your downstream use case allows it. At 192kbps (the default), AC3 is generally considered broadcast-quality for stereo and adequate for 5.1 surround, but it will not be bit-for-bit identical to the source.
The .ac3 extension denotes a raw Dolby Digital elementary bitstream — it contains only the audio data with no container wrapper. This is intentional for workflows like DVD authoring or broadcast ingest, where tools expect bare AC3 streams rather than a containerized file. If you need the AC3 audio inside a container (for example, for media player compatibility), you would instead use an MKV or MP4 output with '-c:a ac3' specified.
No — FFmpeg can decode any audio codec commonly found in AVI files (MP3, AAC, PCM, AC3, Vorbis, etc.) and re-encode it to AC3 regardless of the source codec. The conversion will work whether your AVI contains standard MP3 audio, less common AAC tracks, or even uncompressed PCM. The only requirement is that the AVI's audio stream is not corrupted or in a codec FFmpeg cannot decode.
Not authentically — if the source AVI contains only a stereo audio track, the output AC3 will also be stereo (2.0). FFmpeg will not upmix stereo to 5.1 automatically, and doing so artificially with upmixing filters does not create genuine surround content. True AC3 5.1 output requires a source with six discrete audio channels. If your AVI was recorded with 5.1 audio and the file supports multiple audio tracks, you can select the surround track with '-map 0:a:0' (or the appropriate track index) before running this conversion.
Replace the '-b:a 192k' value with any bitrate AC3 supports: 96k, 128k, 192k, 256k, 320k, 384k, 448k, or 640kbps. For example, to produce a higher-quality 448kbps AC3 file (a common DVD standard), use: ffmpeg -i input.avi -vn -c:a ac3 -b:a 448k output.ac3. Note that AC3 has specific valid bitrate points — arbitrary values like 150k are not valid and FFmpeg will snap to the nearest supported bitrate.
Yes — on Linux or macOS, you can loop over files in a directory with: for f in *.avi; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.avi}.ac3"; done. On Windows Command Prompt, use: for %f in (*.avi) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". The browser-based tool processes one file at a time, so the FFmpeg command is especially useful for batch jobs involving many AVI files or files larger than 1GB.
Technical Notes
AC3 (Dolby Digital) has a fixed set of valid bitrates, and FFmpeg will silently round to the nearest valid value if an unsupported bitrate is specified — always use one of the documented valid options (96k–640kbps) to avoid surprises. The output .ac3 elementary stream contains no metadata container, so title tags, artist information, or chapter markers from the AVI source are not preserved — this is a limitation of the raw AC3 bitstream format, not the encoder. AVI's support for multiple audio tracks means FFmpeg will, by default, select the first audio stream; if your AVI has multiple audio tracks (e.g., commentary and main audio), use '-map 0:a:1' to select the second track explicitly. The AC3 codec supports up to 5.1 channels (6-channel audio), but the channel layout of the output will match the source — stereo in, stereo out. AC3 uses a fixed 48kHz sample rate internally; if your AVI audio is at 44.1kHz or another rate, FFmpeg will automatically resample it to 48kHz during encoding, which is standard behavior and expected by Dolby Digital decoders.