Convert MPG to AC3 — Free Online Tool

Extract and convert the MP2 or AAC audio track from an MPG video file into a standalone AC3 (Dolby Digital) file, encoded with the ac3 codec at 192k bitrate by default. This is ideal for repurposing MPEG-1/2 broadcast or DVD source material into Dolby Digital audio compatible with home theater systems and professional broadcast workflows.

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

MPG files typically carry audio encoded in MP2 (MPEG Audio Layer II) or occasionally AAC, embedded alongside an MPEG-1 or MPEG-2 video stream. During this conversion, FFmpeg demuxes the MPG container to extract the audio stream, discards the video entirely, and re-encodes the audio into AC3 (Dolby Digital) format using the ac3 encoder. Because MP2 and AC3 are both lossy formats, this is a lossy-to-lossy transcode — the audio is fully decoded from MP2 and then re-encoded as AC3. The output is a raw .ac3 file containing only the Dolby Digital audio stream, with no container wrapper.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, which handles the demuxing of the MPG container, decoding of the source audio (typically MP2 from an MPEG-1/2 stream), and re-encoding into AC3.
-i input.mpg Specifies the input MPG file. FFmpeg reads the MPEG-1 or MPEG-2 container, identifying both the video stream (mpeg1video or mpeg2video) and the audio stream (typically MP2) inside it.
-c:a ac3 Tells FFmpeg to encode the output audio stream using the AC3 (Dolby Digital) codec, discarding the MPEG video stream entirely since the output format is audio-only.
-b:a 192k Sets the AC3 audio bitrate to 192 kilobits per second, which is the default and a common target for stereo Dolby Digital audio. You can raise this to 384k or 640k for higher fidelity if the source MPG audio quality warrants it.
output.ac3 Defines the output filename with the .ac3 extension, producing a raw Dolby Digital bitstream file with no video or container wrapper — compatible with DVD authoring tools, AV receivers, and most media players.

Common Use Cases

  • Extracting the audio track from a broadcast-recorded MPG file to create a Dolby Digital-compatible audio file for DVD authoring or Blu-ray projects
  • Converting VCD or DVD-sourced MPG audio into AC3 format for use in a home theater receiver or AV processor that requires Dolby Digital input
  • Preparing audio from legacy MPEG-2 broadcast captures for ingest into professional video editing software that requires AC3 as the target audio format
  • Stripping and converting the MP2 audio from an MPG news or sports broadcast recording into AC3 for archival in a Dolby Digital-native format
  • Converting MPG audio to AC3 for use as an alternate audio track in a DVD or MKV remux project where Dolby Digital is the required audio codec

Frequently Asked Questions

Yes, some quality loss is unavoidable. MPG files typically use MP2 audio, which is already a lossy format. Converting to AC3 means fully decoding the MP2 stream and then re-encoding it as Dolby Digital — a generation of lossy compression is added. At the default 192k bitrate, AC3 generally produces acceptable quality for speech and music, but audiophiles working with critical source material may want to use 320k or 384k to minimize the additional quality degradation.
Only if the original MPG file contains a multi-channel audio track, which is uncommon. Most MPG files from VCD or broadcast sources carry stereo MP2 audio at best. The ac3 encoder will produce an AC3 file that mirrors the channel layout of the source audio — if the input is stereo, the output will be stereo AC3, not 5.1. To get 5.1 surround, you would need a multi-channel source audio stream to begin with.
This tool specifically converts the audio stream from an MPG file into a standalone AC3 audio file, not a video container. AC3 is a pure audio format and the .ac3 extension refers to a raw Dolby Digital bitstream. If you need AC3 audio embedded inside a video container like MKV or MP4, you would use a different FFmpeg command that retains the video stream and specifies the output container accordingly.
Yes. Replace the 192k value in the -b:a flag with any bitrate supported by the AC3 format: 96k, 128k, 192k, 256k, 320k, 384k, 448k, or 640k. For example, use '-b:a 384k' for higher fidelity, which is the standard DVD Dolby Digital bitrate. Note that AC3 has a maximum bitrate of 640k, and going above 192k is most beneficial when your source MPG audio is high-quality stereo or multi-channel.
The video stream — whether MPEG-1 or MPEG-2 — is completely discarded. FFmpeg reads the MPG container, extracts only the audio stream, and writes it as AC3. No video data is carried into the output .ac3 file. If you need to preserve the video, you should output to a container format like MP4 or MKV instead.
Yes, on the command line you can use a shell loop to batch process files. On Linux or macOS, run: for f in *.mpg; do ffmpeg -i "$f" -c:a ac3 -b:a 192k "${f%.mpg}.ac3"; done. On Windows Command Prompt, use: for %f in (*.mpg) do ffmpeg -i "%f" -c:a ac3 -b:a 192k "%~nf.ac3". This processes each MPG file in the current directory and produces a corresponding .ac3 file. The browser-based tool handles one file at a time, but files over 1GB are better handled locally with this command.

Technical Notes

The AC3 (Dolby Digital) encoder in FFmpeg supports bitrates from 96k up to 640k, but the codec imposes specific constraints on channel-to-bitrate combinations. For stereo output (the typical case when converting from MPG's MP2 audio), 192k is a reasonable default and 384k is the DVD standard. The raw .ac3 output file is a headerless Dolby Digital bitstream, which is directly supported by most media players, AV receivers, and authoring tools. Because MPG does not support subtitles, chapters, or multiple audio tracks in a meaningful way for this workflow, none of that metadata is relevant here. One important limitation: if the source MPG has audio encoded in AAC (less common but possible), FFmpeg will still decode and re-encode it correctly to AC3, but the quality loss may be more perceptible since you are transcoding across two different lossy codec families. The MPG container does not support transparency, and AC3 is a purely audio format, so neither format introduces any visual metadata concerns.

Related Tools