Skip to content

Convert AC3 to AVI

Combine an AC3 soundtrack with video in AVI using FFmpeg, desktop tools, or online services.

Convert AC3 files online

We don’t have a dedicated online converter for AC3 to AVI yet, but you can convert AC3 files online to these and more formats:

Want to convert AC3 to AVI?

Let us know. We pick the conversions to add next by how many people ask for them.

How to convert ac3 to avi file

  • Video
  • No ratings yet.

A legacy editor, player, or device may require an AVI container while the available soundtrack is a standalone AC3 file. With existing video, the task is usually to mux the AC3 stream into AVI; with AC3 alone, you must add or generate a video stream.

What the AC3 format is

AC3, also called Dolby Digital, is a lossy compressed audio format developed by Dolby Laboratories. It commonly carries multichannel sound on DVDs, some Blu-ray and broadcast material, and older video files. DVD authoring software, Dolby encoders, demuxing tools, video editors, and FFmpeg-based applications can create or extract standalone .ac3 elementary audio files.

An AC3 file contains audio only. It has no video stream, frame rate, resolution, or complete movie timeline, although it can contain audio timing information.

What the AVI format is

AVI is a Microsoft container based on RIFF. It can store video and audio streams, including AC3, PCM, MP3, and other codecs. The AVI extension does not guarantee that a particular player or editor can decode the streams inside it.

AVI remains useful for legacy Windows software, older editing systems, simple archival workflows, and devices that reject MP4 or MKV. It has weaker metadata and modern-codec support than newer containers, and older applications may impose 2 GB or 4 GB file-size limits.

Using FFmpeg with existing video

FFmpeg is the most controllable desktop option. Place the video and AC3 files in one folder, open a terminal there, and run:

ffmpeg -i input_video.mp4 -i soundtrack.ac3 -map 0:v:0 -map 1:a:0 -c:v copy -c:a copy -shortest output.avi

This copies the video and AC3 bitstreams without re-encoding. The operation is fast and introduces no additional generation loss. The explicit -map options select the first video stream from the first input and the AC3 stream from the second, excluding unwanted original audio. -shortest ends the file when the shorter selected stream ends.

If the receiving software does not decode AC3 in AVI, use uncompressed PCM:

ffmpeg -i input_video.mp4 -i soundtrack.ac3 -map 0:v:0 -map 1:a:0 -c:v copy -c:a pcm_s16le -shortest output_pcm.avi

PCM is widely supported in AVI but creates much larger files. If the target accepts MP3, use another lossy encode, for example:

ffmpeg -i input_video.mp4 -i soundtrack.ac3 -map 0:v:0 -map 1:a:0 -c:v copy -c:a libmp3lame -b:a 192k -shortest output_mp3.avi

Some AVI software cannot handle the copied video codec, especially H.264 from an MP4 file. Re-encode the video to MPEG-4 Part 2 when compatibility requires it:

ffmpeg -i input_video.mp4 -i soundtrack.ac3 -map 0:v:0 -map 1:a:0 -c:v mpeg4 -q:v 5 -c:a pcm_s16le -shortest compatible.avi

Video re-encoding takes longer and can reduce quality. If the AC3 starts later or earlier than the video, adjust the second input with FFmpeg timing options such as -itsoffset, then check synchronization in the target application.

Using a graphical application

A graphical FFmpeg front end such as Shutter Encoder can perform the same job when its version supports adding an external audio stream. Add the video and AC3 files, choose an AVI output or rewrap/video-conversion function, select the external AC3 as the audio source, and choose audio copy, PCM, or MP3 according to the target's codec support. Confirm the output stream list before starting; merely converting the video file may retain its original audio instead of importing the separate AC3.

Avidemux can also handle this workflow in versions that provide an external audio-track selector: open the video, set video output to Copy, select the external AC3 under the audio-track controls, choose AVI Muxer as the output format, and save. Use PCM or MP3 instead of Copy if the destination does not support AC3.

When AC3 is the only input

An audio-only AC3 file cannot become a normal movie AVI without a video stream. If a receiving program accepts only an AVI container, generate a black video track:

ffmpeg -f lavfi -i color=c=black:s=640x480:r=25 -i soundtrack.ac3 -map 0:v:0 -map 1:a:0 -c:v mpeg4 -q:v 5 -c:a pcm_s16le -shortest audio_with_black_video.avi

This creates a 640×480, 25 fps black video with PCM audio. It supplies a container-compatible video stream but cannot restore missing footage; replace it with real video whenever possible.

Online conversion

CloudConvert and Convertio can be used for non-sensitive files when local software is unavailable, but verify that the selected service supports separate video and audio inputs and manual track mapping. Many online converters accept a complete video file but cannot combine a standalone AC3 file with another video, and some may produce an audio-only or incompatible AVI. Uploading files to a third party also creates privacy, copyright, size, and download-limit concerns.

Quality and compatibility limits

-c:a copy preserves the AC3 bitstream exactly. Converting AC3 to MP3 adds another lossy compression step; converting to PCM avoids that step but substantially increases file size.

Test the result in the exact editor, player, or device that will use it. If it rejects AC3, use PCM; if it rejects the copied video, re-encode to a codec supported by that software. AVI container compatibility depends on both the muxer and the codecs, stream layout, interleaving, file size, and the limitations of the target application.

AC3 vs AVI: format comparison

How the AC3 and AVI formats compare on the properties that matter most for this conversion.

Comparison of the AC3 and AVI file formats
Property .AC3 Dolby Digital Audio .AVI Audio Video Interleave
Open standard Partly open Partly open
Compression Lossy Both
Typical file size Small Large
Opens in a web browser No No
Further editing Limited Limited
Metadata support Basic Basic
Plain-text readable No No
Best used for Streaming Sharing and distribution
Introduced 1995 1992
Developer Dolby Laboratories Microsoft
MIME type audio/ac3 video/x-msvideo

Information about file extensions and file types is provided by File-Extensions.org

Additional formats for
ac3 file conversion

Reverse conversion

Convert to avi from
other formats

Share on social media:

Already downloaded

This file has already been downloaded. For your privacy it was deleted from our server right after the download, so it cannot be downloaded again. To get it once more, convert the file again.