Extract Audio from HEVC to AC3 — Free Online Tool

Extract Dolby Digital AC3 audio from HEVC/H.265 video files, producing a standalone .ac3 file encoded at 192kbps using the ac3 codec. This is especially useful for pulling surround sound audio tracks from H.265-encoded content for use in DVD authoring, broadcast workflows, or home theater systems.

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

HEVC (H.265) video files contain multiplexed video and audio streams. This tool demuxes the file and discards the video stream entirely — no video decoding or re-encoding occurs. The audio stream is then transcoded using FFmpeg's ac3 encoder into Dolby Digital format at 192kbps. Unlike a simple remux, this is a true audio transcode: the original audio (which might be AAC, MP3, or another codec in the source HEVC container) is decoded and re-encoded into AC3. The result is a standalone .ac3 file suitable for Dolby Digital playback on compatible devices and authoring pipelines.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg tool, which handles all demuxing, decoding, encoding, and muxing in this conversion pipeline.
-i input.hevc Specifies the input HEVC file. FFmpeg will read this file, identify all streams (video and audio), and make them available for processing or discard.
-vn Disables video output entirely. Since this is an audio extraction operation, the H.265 video stream in the HEVC file is ignored and never decoded, which makes the process much faster than a full video transcode.
-c:a ac3 Selects FFmpeg's built-in ac3 encoder for the audio output stream, producing Dolby Digital-compliant audio from whatever audio codec was present in the source HEVC file.
-b:a 192k Sets the AC3 audio bitrate to 192 kilobits per second. This is a standard Dolby Digital bitrate suitable for stereo content and acceptable for 5.1 surround; increase to 384k or 640k for higher-fidelity multichannel audio.
output.ac3 Specifies the output filename with the .ac3 extension, which tells FFmpeg to write a raw AC3 elementary stream — a format directly readable by DVD authoring software, broadcast playout systems, and Dolby Digital-compatible AV receivers.

Common Use Cases

  • Extracting Dolby Digital audio from H.265-encoded Blu-ray rips to use in DVD authoring software that requires AC3 audio tracks
  • Pulling the audio from an HEVC-encoded broadcast recording for use in a video editing timeline that requires a dedicated AC3 audio file
  • Converting the audio from an H.265 home theater file into AC3 format for playback on AV receivers that support Dolby Digital but not the original audio codec
  • Preparing AC3 audio from HEVC source footage for ingestion into broadcast playout systems that mandate Dolby Digital audio compliance
  • Stripping and re-encoding audio from 4K HEVC content into AC3 for archival alongside a separate video stream in a production pipeline
  • Generating an AC3 audio track from an H.265 video to pair with a lower-resolution video encode for disc authoring or streaming packaging

Frequently Asked Questions

Yes, provided the source HEVC file contains a multichannel audio track (such as 5.1 or 7.1), FFmpeg will decode it and the ac3 encoder will preserve the channel layout up to the AC3 format's maximum of 5.1 channels. If your source has a 7.1 track, FFmpeg will downmix it to 5.1 during encoding. Stereo or mono sources will be encoded as stereo AC3.
Yes. This is a lossy-to-lossy transcode in most cases — the original audio codec in the HEVC file is decoded to PCM and then re-encoded as AC3 at 192kbps, which introduces generation loss. The default 192kbps bitrate is adequate for stereo content but on the lower end for 5.1 surround. If quality is a priority for multichannel audio, consider using a higher bitrate like 384k or 640k by modifying the -b:a flag in the FFmpeg command.
192kbps is a widely compatible midpoint for AC3 audio — sufficient for stereo and acceptable for 5.1 in many broadcast and disc applications. To change it, modify the -b:a flag in the FFmpeg command. For example, replace '-b:a 192k' with '-b:a 384k' for better multichannel quality, or '-b:a 640k' for the highest AC3 bitrate supported by the Dolby Digital specification. Valid AC3 bitrates include 96k, 128k, 192k, 256k, 320k, 384k, 448k, and 640k.
HEVC is a video codec — the audio codec inside the container (often .mkv, .mp4, or .ts) is independent and could be AAC, EAC3, TrueHD, DTS, or others. It does matter in terms of quality loss: if your source audio is lossless (e.g., TrueHD or PCM), transcoding to AC3 at 192kbps will introduce lossy compression. If the source is already lossy (e.g., EAC3 or AAC), you'll be transcoding between lossy formats. FFmpeg handles the decoding automatically regardless of the source audio codec.
Yes. On Linux or macOS, you can loop over files in a directory with a shell command: for f in *.hevc; do ffmpeg -i "$f" -vn -c:a ac3 -b:a 192k "${f%.hevc}.ac3"; done. On Windows Command Prompt, use: for %f in (*.hevc) do ffmpeg -i "%f" -vn -c:a ac3 -b:a 192k "%~nf.ac3". This processes each file sequentially and names the output to match the input filename.
No. The AC3 format does not support chapters, embedded metadata tags, or multiple audio tracks. The output .ac3 file is a raw Dolby Digital bitstream — only the audio content itself is preserved. If you need to retain metadata or chapter markers, consider outputting to a container format like MKV or MP4 that can hold AC3 audio along with additional metadata.

Technical Notes

AC3 (Dolby Digital) is a fixed-bitrate lossy audio codec capped at a maximum of 5.1 channels (six discrete channels: front left, front right, center, LFE, surround left, surround right). The Dolby Digital specification permits bitrates up to 640kbps, though most consumer disc and broadcast applications use 192–448kbps. FFmpeg's built-in ac3 encoder is fully specification-compliant and does not require a separate library. One important consideration when extracting audio from HEVC containers: the source file extension alone doesn't tell you the audio codec inside — HEVC video is commonly wrapped in MKV, MP4, or TS containers, each potentially carrying different audio codecs. If your file uses one of those container extensions rather than a raw .hevc stream, you can still apply the same FFmpeg command flags. The -vn flag ensures zero video processing overhead, making this operation fast even for large 4K or 8K HEVC files, since H.265 video decoding is skipped entirely. The resulting .ac3 file is a raw elementary stream without a container wrapper, which is directly compatible with DVD authoring tools, broadcast encoders, and AV receivers that accept AC3 input.

Related Tools