Extract Audio from MPEG to AC3 — Free Online Tool
Extract and convert audio from MPEG video files to AC3 (Dolby Digital) format, producing a standalone .ac3 file encoded with the ac3 codec at 192kbps by default. This is especially useful for repurposing legacy MPEG broadcast or DVD-compatible content into Dolby Digital audio suitable for home theater systems and professional broadcast workflows.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your MPEG 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
MPEG files typically carry audio encoded as MP2 (MPEG-1 Layer II) — the broadcast-standard audio codec used in DVDs, digital television, and legacy video productions. Because AC3 (Dolby Digital) uses a fundamentally different compression algorithm optimized for surround sound and multichannel audio, the MP2 audio stream cannot simply be remuxed; it must be fully decoded and re-encoded into AC3. FFmpeg decodes the MP2 audio from the MPEG container, discards the video stream entirely using the -vn flag, and re-encodes the raw audio signal into a Dolby Digital AC3 bitstream. This is a lossy-to-lossy transcode, meaning each encode introduces a new generation of compression artifacts, so the output quality is bounded by the fidelity of the original MPEG audio.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary. This is the same open-source engine that powers this browser-based tool via FFmpeg.wasm — the command shown here can be run identically on your local desktop for files over 1GB. |
-i input.mpeg
|
Specifies the input MPEG file, which may contain MPEG-1 or MPEG-2 video alongside an MP2, MP3, or AAC audio track. FFmpeg reads the container and demuxes the audio and video streams for processing. |
-vn
|
Disables video output entirely, telling FFmpeg to ignore the mpeg1video or mpeg2video stream in the source file. This is essential for audio extraction — without it, FFmpeg might attempt to include the video in the output or throw an error because the .ac3 format cannot contain video. |
-c:a ac3
|
Sets the audio codec to ac3 (Dolby Digital), triggering a full decode of the source MP2 audio and a re-encode into the AC3 bitstream format using FFmpeg's built-in Dolby Digital encoder. |
-b:a 192k
|
Sets the AC3 audio bitrate to 192 kilobits per second, which is a standard Dolby Digital bitrate suitable for stereo content. You can increase this up to 640k for higher fidelity, or lower it to 128k or 96k to reduce file size, within AC3's supported bitrate range. |
output.ac3
|
Specifies the output filename and format. The .ac3 extension tells FFmpeg to write a raw Dolby Digital elementary stream — a containerless AC3 bitstream that is directly playable by AV receivers, media players, and authoring software that support Dolby Digital audio. |
Common Use Cases
- Repurposing audio from legacy MPEG broadcast recordings for use in Dolby Digital-compatible home theater receivers and AV amplifiers
- Extracting the audio track from MPEG-1 or MPEG-2 video files (such as VCD or DVD sources) and preparing it for authoring onto a Blu-ray or DVD disc that requires AC3 audio
- Converting MP2 audio from MPEG broadcast captures to AC3 for ingestion into professional video editing software like Adobe Premiere or DaVinci Resolve that treats AC3 as a delivery format
- Stripping the audio from an MPEG television broadcast recording to create a Dolby Digital audio file for archival or re-use in a multimedia presentation
- Preparing audio extracted from MPEG surveillance or broadcast footage for playback on a set-top box or media player that supports AC3 but not MP2
- Converting MPEG audio content to AC3 to enable 5.1 surround sound upmixing in a downstream production pipeline, since AC3 natively supports multichannel audio up to 640kbps
Frequently Asked Questions
Yes, some quality loss is unavoidable. MPEG files commonly store audio as MP2, which is already a lossy format, and AC3 uses a completely different psychoacoustic model (Dolby Digital's mdct-based codec). Re-encoding from one lossy format to another always introduces an additional generation of compression artifacts. At 192kbps the output is generally clean for stereo content, but to minimize degradation you should use the highest bitrate that suits your use case — AC3 supports up to 640kbps.
AC3 natively supports up to 5.1 surround sound, which is one of the reasons it is the standard audio codec for DVDs and broadcast TV. However, converting a stereo MP2 track from an MPEG file will produce stereo AC3 output — the channel count of the source determines the channel count of the output. FFmpeg will not fabricate surround channels that do not exist in the original file, so if your MPEG source is stereo, the resulting AC3 file will also be stereo.
The .ac3 extension denotes a raw Dolby Digital elementary stream — the AC3 bitstream with no container wrapper. This is a valid and widely supported format for devices and software that consume AC3 directly, such as AV receivers and authoring tools. If you need the AC3 audio inside a container (for example, embedded in an MKV or MP4 file), you would modify the FFmpeg command to specify a container output instead.
Replace the value after -b:a with any bitrate supported by AC3: 96k, 128k, 192k, 256k, 320k, 384k, 448k, or 640kbps. For example, to get the highest quality Dolby Digital output you would use -b:a 640k. Note that AC3 has a hard maximum of 640kbps defined by the Dolby Digital specification, and most consumer hardware only decodes up to 640kbps, so values above that are not valid for this codec.
Yes. On Linux or macOS you can run a shell loop: for f in *.mpeg; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.mpeg}.ac3"; done. On Windows Command Prompt you can use: for %f in (*.mpeg) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". This is particularly useful for batch-extracting audio from a library of legacy MPEG broadcast recordings.
Not necessarily. MPEG files targeting DVD compatibility most commonly use MP2 audio (the default audio codec in MPEG-2), though some DVD-compatible MPEG streams do embed AC3 audio. If your source MPEG already contains an AC3 audio track, you could use -c:a copy instead of -c:a ac3 to extract the stream without re-encoding, avoiding any quality loss. You can check the audio codec of your source file by running ffprobe input.mpeg before conversion.
Technical Notes
The default audio codec in MPEG-1 and MPEG-2 containers is MP2 (MPEG-1 Audio Layer II), a lossy format widely used in broadcast television and early DVD production. AC3, defined by the ATSC A/52 standard, uses a modified discrete cosine transform (MDCT) with Dolby's proprietary psychoacoustic model, making it technically incompatible with MP2 at the bitstream level — a full decode-and-reencode transcode is always required. The -vn flag ensures the MPEG video stream (mpeg1video or mpeg2video) is completely discarded, which prevents FFmpeg from attempting to wrap the audio in a video container and significantly speeds up processing. The output .ac3 file is a headerless elementary stream, meaning it contains no container metadata, chapter information, or embedded artwork — only the raw Dolby Digital audio frames. Because both MP2 and AC3 are lossy formats, the theoretical maximum output quality is limited by whatever fidelity survived the original MPEG encode. If the original MPEG was encoded at a low MP2 bitrate (below 128kbps), setting a high AC3 output bitrate will not recover lost detail — it will only produce a larger file. The ac3 encoder in FFmpeg is mature and well-tested, and its output is compatible with virtually all hardware that advertises Dolby Digital support, including AV receivers, set-top boxes, PlayStation and Xbox consoles, and most smart televisions.