Trim AC3 — Free Online Tool
Trim an AC3 (Dolby Digital) audio file to a precise start and end point, preserving the original bitrate and surround sound channel layout without re-encoding. Ideal for cutting Dolby Digital 5.1 segments from DVD or broadcast sources while keeping the AC3 stream bit-for-bit intact.
to
FFmpeg Command
Copy this command to run the same conversion locally with FFmpeg on your desktop. Download FFmpeg
Drop your AC3 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
This tool uses FFmpeg's stream copy mode (-c copy) to trim the AC3 audio file by seeking to the specified start timecode and cutting at the end timecode, then writing only those packets to the output file — no decoding or re-encoding of the AC3 bitstream occurs. Because AC3 is a frame-based lossy codec, the cut points are aligned to the nearest AC3 audio frame boundary (each frame is approximately 32ms at 48kHz), which means the trim is extremely fast and introduces zero additional quality loss. The output file is a valid AC3 elementary stream with the same bitrate, channel configuration (e.g., 5.1 surround), and Dolby Digital metadata as the source.
What Each Flag Does
| Flag | What it does |
|---|---|
ffmpeg
|
Invokes the FFmpeg binary. This is the command-line tool running under the hood via WebAssembly (FFmpeg.wasm) in your browser, and the same binary you would run locally on your desktop to perform this AC3 trim. |
-i input.ac3
|
Specifies the input AC3 elementary stream file. FFmpeg will read the Dolby Digital audio frames from this file and use the detected bitrate, channel layout, and sample rate to inform all subsequent processing. |
-ss 00:00:00
|
Sets the start point of the trim as a timecode (hours:minutes:seconds). Placed before the input flag, this uses fast seeking — FFmpeg jumps directly to the nearest AC3 frame at or before this timestamp rather than decoding from the beginning of the file. |
-to 00:00:10
|
Sets the absolute end point of the trim. FFmpeg will stop writing output packets once this timecode is reached, so the resulting AC3 file will contain only the audio between the -ss and -to positions — in this default example, the first 10 seconds. |
-c copy
|
Instructs FFmpeg to copy the AC3 audio stream directly without decoding or re-encoding. This preserves the original Dolby Digital bitrate, 5.1 channel layout, and all BSI metadata exactly as they are in the source file, and makes the trim nearly instantaneous regardless of file size. |
output.ac3
|
The filename for the trimmed output AC3 elementary stream. The .ac3 extension tells FFmpeg to write a raw Dolby Digital elementary stream, which can be played directly or muxed into MKV, MP4, or MPEG-TS containers using FFmpeg or a third-party multiplexer. |
Common Use Cases
- Extract a specific scene's Dolby Digital 5.1 audio track demuxed from a DVD VOB file for archival or re-muxing into an MKV container
- Cut a clean segment of broadcast AC3 audio captured from a television recording for use in a video production timeline
- Trim away silent leader or trailer frames from an AC3 elementary stream delivered by a post-production facility before it gets muxed into a Blu-ray disc
- Isolate a short AC3 audio clip from a longer surround sound demo reel to test a home theater receiver's Dolby Digital decoding
- Remove unwanted content from the beginning or end of a Dolby Digital audio track before re-muxing it with a video file using FFmpeg or a multiplexer like tsMuxeR
- Create a short reference clip from an AC3 file to verify channel mapping and surround panning before committing to a full encode pipeline
Frequently Asked Questions
No — because this tool uses FFmpeg's stream copy mode, the AC3 bitstream is never decoded or re-encoded. The audio packets between your chosen start and end points are copied directly to the output file, so the Dolby Digital data remains completely unchanged. The only minor caveat is that cut points snap to the nearest AC3 frame boundary (roughly every 32 milliseconds), so your trim may be off by up to one frame from your exact timecode.
Yes. Stream copying preserves the entire AC3 bitstream including the BSI (Bit Stream Information) header, which encodes the channel mode (e.g., 3/2+LFE for 5.1), dialnorm value, dynamic range control profiles, and other Dolby Digital metadata. Your receiver or decoder will see the trimmed file identically to the original in terms of channel configuration and loudness metadata.
AC3 uses a short overlap between audio blocks for its filter bank, so cutting mid-stream without re-encoding can occasionally produce a transient artifact at the very start of the trimmed file, since the decoder is missing the preceding block context. If this is an issue, try setting your -ss start point a fraction of a second earlier (e.g., one or two AC3 frames, ~64ms) to give the decoder a clean entry point, or use a lossless intermediate and re-encode to AC3 after trimming.
Because the command uses -c copy, no re-encoding happens and the bitrate cannot be changed — the output will always match the source bitrate (e.g., 384k or 640k). To trim and change the bitrate simultaneously, replace -c copy with -c:a ac3 -b:a 192k (or any supported bitrate such as 96k, 128k, 256k, 320k, 448k, or 640k). Note that this will decode and re-encode the AC3 audio, which takes longer and introduces a small amount of additional lossy compression.
Yes. On Linux or macOS, you can wrap the command in a shell loop: for f in *.ac3; do ffmpeg -i "$f" -ss 00:00:00 -to 00:00:10 -c copy "trimmed_$f"; done. On Windows Command Prompt, use: for %f in (*.ac3) do ffmpeg -i "%f" -ss 00:00:00 -to 00:00:10 -c copy "trimmed_%f". Adjust the -ss and -to values to your desired trim range for each batch run.
Placing -ss before -i (as this command does) uses FFmpeg's fast seek, which jumps directly to the nearest keyframe before the target timecode — for AC3 this is very efficient since AC3 frames are all independently decodable. Placing -ss after -i forces FFmpeg to decode every packet from the beginning until the seek point, which is slower but can be more frame-accurate. For AC3 trimming, pre-input seeking with -c copy is both fast and accurate enough for the vast majority of use cases.
Technical Notes
AC3 (also known as A/52 or Dolby Digital) is a transform-based lossy audio codec operating on 1536-sample blocks at a typical sample rate of 48kHz, yielding frames of approximately 32ms duration. Because every AC3 frame is independently decodable (there are no inter-frame dependencies like in some video codecs), stream copy trimming is highly reliable and frame-accurate to within one 32ms frame. Supported bitrates range from 96 kbps up to 640 kbps, with 192 kbps being the standard for stereo and 384–448 kbps common for 5.1 surround on DVD. The AC3 elementary stream format (.ac3) carries no container-level chapter or subtitle metadata, so there is nothing to lose in that regard during trimming. One important limitation: AC3 does not support variable bitrate encoding in the standard specification, so the bitrate is constant throughout the stream and will be identical in the trimmed output. If you are working with AC3 tracks extracted from a transport stream (MPEG-TS) or program stream (VOB), ensure you demux the elementary stream first, as PTS timestamps in a container may differ from standalone AC3 file timing.