Convert SWF to AC3 — Free Online Tool

Extract and convert the audio track from an SWF Flash file into AC3 (Dolby Digital) format using the ac3 codec at 192k bitrate. This is ideal for recovering audio from legacy Flash animations or interactive content and repurposing it for DVD authoring, broadcast, or surround-sound 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

SWF files typically carry audio encoded with either MP3 (libmp3lame) or AAC, embedded alongside vector graphics and interactive content in Adobe's Flash container. Since AC3 is a pure audio format with no video container, FFmpeg discards all video, animation, and interactivity data entirely and re-encodes only the audio stream using the Dolby Digital ac3 codec. This is a full audio transcode — not a copy — meaning the original MP3 or AAC audio is decoded to raw PCM and then re-encoded into AC3. Some generation loss is expected because both the source and destination formats are lossy. The output .ac3 file contains only the Dolby Digital audio bitstream, ready for use in DVD authoring tools, broadcast pipelines, or any system that accepts raw AC3 streams.

What Each Flag Does

Flag What it does
ffmpeg Invokes the FFmpeg command-line tool, which handles the demuxing of the SWF container, decoding of its embedded audio stream, and re-encoding into AC3 Dolby Digital format.
-i input.swf Specifies the input SWF file. FFmpeg's SWF demuxer parses the Flash binary format to extract the embedded audio stream (typically MP3 or AAC) and any video data, though only the audio will be passed through for this conversion.
-c:a ac3 Instructs FFmpeg to encode the output audio using the Dolby Digital AC3 codec. The decoded PCM audio from the SWF is re-encoded as an AC3 bitstream, which is the standard audio format for DVDs and broadcast television.
-b:a 192k Sets the AC3 audio bitrate to 192 kilobits per second, a common Dolby Digital bitrate for stereo content that balances file size and audio fidelity. For higher-quality output suitable for home theater or Blu-ray, this can be increased to 384k or 448k.
output.ac3 Defines the output filename with the .ac3 extension, which tells FFmpeg to write a raw Dolby Digital bitstream file. This format contains only the AC3 audio data with no container wrapper, making it directly importable into DVD and Blu-ray authoring applications.

Common Use Cases

  • Recovering the soundtrack from a legacy Flash-based e-learning module to repurpose it as a Dolby Digital audio track for a DVD version of the course
  • Extracting background music or sound effects from an archived SWF animation to use in a broadcast television or video production pipeline that requires AC3 audio
  • Converting the narration audio embedded in an old Flash presentation into AC3 format for inclusion in a Blu-ray disc authoring project
  • Pulling the audio from an interactive Flash game or kiosk application to archive it in a professional broadcast-compatible format before the SWF becomes unplayable
  • Preparing audio extracted from Flash web advertisements for integration into a broadcast workflow where Dolby Digital AC3 is the required delivery format
  • Upgrading the bitrate of Flash-embedded audio by transcoding from the SWF's typically compressed MP3 track to a higher-bitrate AC3 stream suitable for home theater systems

Frequently Asked Questions

Yes, some quality loss is unavoidable. SWF files store audio as either MP3 or AAC — both lossy formats — and AC3 (Dolby Digital) is also lossy. This means the conversion involves decoding an already-compressed audio stream and re-encoding it with a different lossy codec, which introduces generational loss. At the default 192k bitrate the output is generally acceptable for most listening purposes, but if audio fidelity is critical, use a higher bitrate like 384k or 448k to minimize artifacts from the second compression pass.
AC3 is a pure audio format — it has no container structure for video, vector graphics, or interactivity. When FFmpeg outputs to a .ac3 file, it can only write an audio bitstream, so all visual and interactive elements from the SWF are automatically discarded. If you need to preserve the video alongside the audio, you would need to output to a container like MP4 or MKV that supports both video and AC3 audio streams.
Most SWF files use MP3 (via the libmp3lame encoder) as their default audio codec, though AAC is also common in later Flash content. Both are lossy formats, so by the time you transcode to AC3, the audio has already been compressed once. The AC3 encoder works from the decoded PCM signal, so the original codec inside the SWF determines the quality ceiling — any artifacts present in the SWF's audio will carry through into the AC3 output.
Modify the -b:a flag to set a different bitrate. For example, use '-b:a 384k' for higher quality suitable for home theater or Blu-ray use, or '-b:a 96k' for a smaller file when audio quality is less critical. The AC3 codec supports bitrates from 96k up to 640k, and the Dolby Digital specification commonly uses 192k, 256k, or 384k for stereo and 448k for 5.1 surround content. Note that AC3 bitrates must conform to specific allowed values — arbitrary values may be rounded to the nearest valid rate.
Yes. On Linux or macOS you can run a shell loop such as: for f in *.swf; do ffmpeg -i "$f" -c:a ac3 -b:a 192k "${f%.swf}.ac3"; done. On Windows Command Prompt, use: for %f in (*.swf) do ffmpeg -i "%f" -c:a ac3 -b:a 192k "%~nf.ac3". This processes each SWF in the current directory and writes a corresponding .ac3 file, which is especially useful when archiving a large collection of legacy Flash content.
Yes, raw AC3 bitstreams in a .ac3 file are directly supported by most professional DVD and Blu-ray authoring tools such as Adobe Encore, DVDStyler, and Scenarist. Set-top DVD and Blu-ray players do not play raw .ac3 files directly, but once the AC3 stream is muxed into an MPEG-2 Program Stream or MKV container by your authoring software, it will play back correctly on any Dolby Digital-capable player or home theater receiver.

Technical Notes

SWF audio is extracted by FFmpeg's libavformat SWF demuxer, which parses the Flash tag structure to locate embedded audio streams. The most common audio tag in SWF is DEFINESOUND or SOUNDSTREAMHEAD, carrying MP3 data at typically 44.1 kHz or 22.05 kHz sample rates. FFmpeg decodes this to PCM and feeds it to the ac3 encoder. One important consideration is that AC3 requires specific sample rates — 32 kHz, 44.1 kHz, or 48 kHz — and if the SWF audio is at a non-standard rate (such as 22.05 kHz, which is common in older Flash content), FFmpeg will automatically resample it, which adds a small additional processing step and can slightly affect output quality. AC3 also has channel count constraints; SWF audio is nearly always mono or stereo, which maps cleanly to AC3 1.0 or 2.0 channel configurations. The output .ac3 file contains no metadata tags — no title, artist, or duration fields — since the raw AC3 bitstream format does not support ID3 or similar metadata containers. For metadata preservation, mux the AC3 stream into a Matroska (.mkv) or MPEG Transport Stream (.ts) container instead.

Related Tools