Extract Audio from MP4 to AC3 — Free Online Tool
Extract and convert the audio track from an MP4 file into AC3 (Dolby Digital) format, producing a standalone .ac3 file encoded with the ac3 codec at 192k bitrate by default. AC3 is the standard audio format for DVDs, Blu-rays, and broadcast television, making this tool ideal when you need Dolby Digital-compatible audio from video source material.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MP4 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
During this conversion, FFmpeg reads the MP4 container and discards the video stream entirely — no video decoding or encoding takes place. The audio stream (typically AAC or MP3 inside the MP4) is decoded and then re-encoded into AC3 (Dolby Digital) using FFmpeg's built-in ac3 encoder. This is a full audio transcode: the source audio is decompressed from its original codec and compressed again into AC3's lossy format. The result is a raw AC3 bitstream file (.ac3) with no container wrapping — just the Dolby Digital audio data, ready for authoring tools, home theater systems, or broadcast pipelines.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary — the open-source multimedia processing engine that handles all decoding, encoding, and stream management for this conversion. |
-i input.mp4
|
Specifies the input MP4 file. FFmpeg will read the MPEG-4 container and identify all streams inside it, including the video track and the audio track (typically AAC-encoded in an MP4). |
-vn
|
Disables video output entirely, telling FFmpeg to ignore the video stream in the MP4. Without this flag, FFmpeg would try to include video in the output, which is impossible for a raw AC3 audio file. |
-c:a ac3
|
Sets the audio encoder to ac3, FFmpeg's built-in Dolby Digital encoder. This re-encodes the MP4's audio (typically AAC) into a standards-compliant AC3 bitstream suitable for DVDs, Blu-rays, and broadcast use. |
-b:a 192k
|
Sets the AC3 audio bitrate to 192 kilobits per second, which is the standard for stereo Dolby Digital tracks on DVD. For 5.1 surround content, consider increasing this to 384k or 448k to match professional disc authoring standards. |
output.ac3
|
Specifies the output filename with the .ac3 extension, producing a raw Dolby Digital elementary stream file. The .ac3 extension signals to playback software and authoring tools that this is an unwrapped AC3 bitstream rather than a containerized audio file. |
Common Use Cases
- Preparing a Dolby Digital audio track for DVD or Blu-ray authoring software that requires AC3-encoded audio as a discrete input file
- Extracting a surround-sound mix from an MP4 video to use as a standalone AC3 stream for a home theater receiver or AV processor
- Converting a film or TV episode rip to AC3 so it can be remuxed into a DVD-compliant VOB or IFO structure
- Stripping the audio from a broadcast-recorded MP4 and converting it to AC3 for ingestion into a broadcast playout or encoding system that mandates Dolby Digital
- Creating a reference AC3 audio file from a finished MP4 video to verify Dolby Digital encode quality before full disc authoring
- Extracting dialogue or soundtrack audio from an MP4 interview or documentary into AC3 for integration into a video editing project that requires a Dolby Digital audio bus
Frequently Asked Questions
Yes, there will be some quality loss. The audio inside an MP4 is almost always already lossy (typically AAC or MP3), and re-encoding it into AC3 introduces a second generation of lossy compression. This is sometimes called 'double compression' or 'transcoding loss.' To minimize the impact, use a higher AC3 bitrate such as 384k or 640k rather than the default 192k, which gives the AC3 encoder more headroom to represent the decoded audio accurately.
AC3 natively supports up to 5.1 surround sound (six discrete channels), which is one of its primary advantages for home theater and disc authoring. However, the output channel layout depends entirely on the source audio in the MP4. If the MP4 contains a stereo AAC track, the resulting AC3 will be stereo — FFmpeg will not upmix channels. If the MP4 contains a 5.1 AAC or multi-channel audio track, FFmpeg will preserve and encode all six channels into the AC3 file.
AC3 supports bitrates from 96k up to 640k. At 192k (the default), you get acceptable quality for stereo content and is the standard for many DVD stereo tracks. For 5.1 surround sound, 384k is the standard DVD bitrate and 448k is common for broadcast; 640k is the Blu-ray maximum and delivers the highest AC3 quality. For archival or professional use, choose 384k or higher. For simple stereo extraction where file size matters, 192k or 256k is usually sufficient.
Replace the value after the -b:a flag with your desired bitrate. For example, to encode at 384k for a DVD-quality 5.1 mix, run: ffmpeg -i input.mp4 -vn -c:a ac3 -b:a 384k output.ac3. Valid AC3 bitrates are 96k, 128k, 192k, 256k, 320k, 384k, 448k, and 640k. Choosing a bitrate outside AC3's specification may cause playback errors on hardware Dolby Digital decoders, so stick to these standard values.
Yes. On Linux or macOS, you can loop over all MP4 files in a directory with: for f in *.mp4; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.mp4}.ac3"; done. On Windows Command Prompt, use: for %f in (*.mp4) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". This is especially useful when preparing a batch of video files for DVD authoring where each title requires a separate AC3 audio stream.
No. A raw AC3 bitstream file (.ac3) has no container and therefore cannot store metadata such as track titles, language codes, album art, or chapter markers. Any metadata present in the MP4's audio track will be lost during this conversion. If you need to preserve metadata, consider muxing the AC3 audio into a container like MKV or M2TS after conversion, where language and track metadata can be attached to the stream.
Technical Notes
AC3 (Dolby Digital) is a fixed-frame, lossy audio codec defined by the ATSC and used as the mandatory audio format for NTSC DVDs and a widely supported format on Blu-ray and digital broadcast. FFmpeg's built-in ac3 encoder (not to be confused with the a52 decoder) produces standards-compliant Dolby Digital bitstreams. The output .ac3 file is a raw elementary stream with no container — this is intentional and expected for authoring workflows, but it means the file cannot be played by all media players without an AC3-capable decoder. The -vn flag is critical here: without it, FFmpeg would attempt to encode the MP4's video stream into AC3, which would fail since AC3 is an audio-only codec. Because the source MP4 typically uses AAC audio and the target is AC3, there is no possibility of stream copying (remuxing) — a full decode-and-reencode is always required. One important limitation: AC3 supports a maximum of 5.1 channels (6 channels); if your MP4 source contains 7.1 or higher channel audio, FFmpeg will downmix to 5.1 automatically. Additionally, AC3 does not support sample rates above 48kHz, so high-resolution audio sources will be resampled.