To add the FFmpeg library to Audacity, install the FFmpeg for Audacity package that the Audacity support site links to, restart Audacity, and it detects FFmpeg on its own; if it does not, point Edit > Preferences > Libraries > Locate… at the avformat file.
This guide covers Windows, macOS and Linux, which FFmpeg versions each Audacity release accepts, how to confirm the library loaded, and fixes for FFmpeg not being recognized.

How to install FFmpeg for Audacity on Windows 11 and Windows 10
Audacity cannot ship FFmpeg because of patent restrictions, so the Audacity team points Windows users to a separate installer built for it.
- Open the Audacity support page Installing FFmpeg at support.audacityteam.org and follow its link to the FFmpeg installer at lame.buanzo.org.
- Download the 64-bit Windows version, which is correct for most PCs. Windows on ARM PCs use the native ARM64 build the same page links to.
- Run the installer. Audacity's own instructions say the unknown publisher warning can be ignored for this file.
- Read and accept the license.
- Keep the default install folder,
C:\Program Files\FFmpeg for Audacity, unless you have a reason to change it. - Finish the installation, then close and reopen Audacity. It detects FFmpeg automatically.
WinGet users can install the same package from Terminal with winget install --id=Buanzo.FFmpegforAudacity -e.
Understanding FFmpeg and its benefits for Audacity
FFmpeg is a separate open-source media library. Audacity loads it at startup to read and write formats it cannot handle on its own.
| Task in Audacity | Without FFmpeg | With FFmpeg |
|---|---|---|
| Import or export M4A (AAC) | Not available | Available |
| Import or export WMA | Not available | Available |
| Open most other media files, including audio inside many video files | Often fails with "Audacity did not recognize the type of this file" | Usually opens |
| Export MP3 | Works: the LAME encoder ships with Audacity on Windows and macOS | No change |
| Export WAV, FLAC, Ogg | Works | No change |
Older Audacity versions needed a separate LAME download for MP3. Current versions include it, so a LAME error means the copy of Audacity is out of date.
Prerequisites for installing FFmpeg in Audacity
| Requirement | Why it matters |
|---|---|
| The latest Audacity release | Each Audacity release accepts a fixed set of FFmpeg versions, and newer releases accept more |
| A shared FFmpeg build | Only shared builds contain the .dll, .dylib or .so library files Audacity loads; a single ffmpeg.exe is not enough |
| The full FFmpeg folder | Copying only avformat-*.dll fails, because it depends on the other FFmpeg libraries beside it |
| Matching architecture | 64-bit Audacity needs 64-bit FFmpeg; Apple Silicon (arm64) Audacity needs arm64 FFmpeg |
| Permission to install software | The Windows installer writes to C:\Program Files, and Linux package managers need sudo |
System requirements
| System | FFmpeg package to use | Notes |
|---|---|---|
| Windows 11 or 10, 64-bit | FFmpeg for Audacity installer, 64-bit | Default folder C:\Program Files\FFmpeg for Audacity |
| Windows on ARM | Native ARM64 build linked from the Audacity page | For Windows PCs with ARM processors |
| macOS 12 Monterey or newer | Universal .pkg installer |
Matches Intel and Apple Silicon automatically |
| macOS 10.11 to 11 Big Sur | Legacy ffmpeg_64bit_osx.pkg |
Intel only, needs the x86_64 Audacity download, and Audacity lists it as unsupported |
| Debian, Ubuntu, Mint, Fedora, Arch | The distribution's own ffmpeg package |
Works only if the packaged libavformat version is one Audacity supports |
Software dependencies
Audacity looks for a specific libavformat major version, the number in avformat-61.dll or libavformat.so.61. The FFmpeg project lists which libavformat version each release carries.
| Audacity version | libavformat versions it loads | FFmpeg releases that match |
|---|---|---|
| Before 3.1 | 55 only | Older builds with avformat-55 |
| 3.1 and later | 55, 57, 58 | FFmpeg 4.4 (libavformat 58) |
| 3.2 and later | adds 59 | FFmpeg 5.1 |
| 3.3 and later | adds 60 | FFmpeg 6.1 |
| 3.5 and later | adds 61 | FFmpeg 7.1 |
| 3.7 and later | adds 62 | FFmpeg 8.0 and 8.1 |
FFmpeg 9.0 and 9.1 carry libavformat 63, which the Audacity support page does not list yet. Audacity also refuses work-in-progress master-branch builds, so pick a numbered release that matches your Audacity version.
Additional tools
| Tool | Platform | What it does for this job |
|---|---|---|
| WinGet | Windows 11 and 10 | Installs the FFmpeg for Audacity package with one command |
| File Explorer Extract All | Windows | Unpacks a ZIP build such as the BtbN or gyan.dev shared builds |
| Homebrew | macOS | Installs an FFmpeg build that matches the Mac's architecture with brew install ffmpeg |
| apt, dnf or pacman | Linux | Installs ffmpeg and lame from the distribution's repositories |
| RPM Fusion repository | Fedora, Red Hat, CentOS | Audacity's instructions add it before running dnf install ffmpeg |
The standalone FFmpeg command-line tool is a different download from the shared libraries Audacity loads, although shared builds include both.
Preparation tips
- Update to the latest version of Audacity first, so it accepts the newest FFmpeg versions.
- Close Audacity before you install FFmpeg; it only looks for the library when it starts.
- Note whether your copy of Audacity is 64-bit, ARM64 or Apple Silicon, and download the matching FFmpeg build.
- Write down the folder you install or extract FFmpeg to; you need it if Audacity does not find the library on its own.
- Leave the FFmpeg files in one folder. Moving single DLLs out of it breaks the library.
Downloading the FFmpeg library
ffmpeg.org only provides source code. Its download page links to third-party builds, so the official FFmpeg website is a starting point rather than the place the installer lives.
- Visit the official FFmpeg website download page at ffmpeg.org/download.html and note which release numbers your Audacity version supports.
- Choose the correct version: a numbered release whose libavformat major version is in the Audacity table above, never a master or nightly build.
- Download the library files as a shared build ZIP from one of the Windows builders the Audacity page lists (BtbN or gyan.dev), or use the FFmpeg for Audacity installer instead.
- Extract the files: right-click the ZIP, select Extract All, and pick a permanent folder such as
C:\FFmpeg. - Prepare for integration: open the extracted folder, find the
binfolder that holdsavformat-*.dll, and keep that path for the Libraries step.
Installing FFmpeg on different operating systems
| Your system | Install route | Audacity finds it automatically? |
|---|---|---|
| Windows, any 64-bit PC | FFmpeg for Audacity installer or WinGet | Yes, after a restart |
| Windows, manual ZIP build | BtbN or gyan.dev shared build | No: point Libraries at avformat-*.dll |
| macOS 12 or newer | Universal .pkg installer |
Yes, after a restart |
| macOS with Homebrew | brew install ffmpeg |
Usually; locate avformat-*.dylib if not |
| Linux | ffmpeg and lame from the package manager |
Yes, if the libavformat version is supported |
Windows: install FFmpeg for Audacity with WinGet or a ZIP build
- Open Terminal or Windows PowerShell from the Start menu.
- Run
winget install --id=Buanzo.FFmpegforAudacity -eand accept the source agreement if WinGet asks. - For a ZIP build instead, extract the shared build to a permanent folder as shown in the download steps.
- Restart Audacity.
- If you used a ZIP build, go to Edit > Preferences > Libraries, click Locate… and browse to
avformat-*.dllin the build'sbinfolder.
macOS: install FFmpeg for Audacity with the .pkg or Homebrew
- Download the macOS FFmpeg installer from the link on the Audacity Installing FFmpeg page.
- Open the
.pkgand click through the installer steps. - Wait if the installer seems stuck on Validating packages; on some Macs that step takes a while.
- Quit and reopen Audacity so it detects FFmpeg.
- To use Homebrew instead, install Homebrew from brew.sh, run
brew install ffmpegin Terminal, then restart Audacity.
On macOS the Libraries setting lives under Audacity > Preferences > Libraries, and the file to select is avformat-*.dylib.
Linux: install FFmpeg for Audacity with apt, dnf or pacman
| Distribution | Command | Note |
|---|---|---|
| Debian, Ubuntu, Pop!_OS, Mint | sudo apt install ffmpeg lame |
Installs FFmpeg and the LAME MP3 encoder |
| Fedora, Red Hat, CentOS | sudo dnf install ffmpeg lame |
Add the RPM Fusion repository and check for updates first |
| Arch, Manjaro | sudo pacman -Syu ffmpeg lame |
Also updates the rest of the system |
Restart Audacity after the install. If the distribution ships a libavformat version Audacity does not support, it may not be detected; the fix then is a shared build of a supported FFmpeg release.
Configuring Audacity to use FFmpeg
Use this when FFmpeg is installed in a non-default folder, or Audacity still greys out FFmpeg formats after a restart.
- Download and install FFmpeg with one of the routes above, then open Audacity.
- Go to Edit > Preferences > Libraries on Windows and Linux, or Audacity > Preferences > Libraries on macOS.
- Click Locate… next to the FFmpeg library.
- If a Success message says Audacity already found FFmpeg, click No; nothing else is needed.
- Otherwise, click Browse… in the Locate FFmpeg dialog to configure Audacity to recognize FFmpeg.
- Select
avformat-*.dllon Windows,avformat-*.dylibon macOS, orlibavformat.so.*on Linux. - Click Open, then OK, then OK again to close Preferences.

Correct path configuration
To locate the FFmpeg library files, browse to the file below; Audacity needs the avformat library itself, not the ffmpeg program.
| Install type | Folder to open | File to select |
|---|---|---|
| Windows installer (default) | C:\Program Files\FFmpeg for Audacity |
avformat-*.dll |
| Windows ZIP shared build | The bin folder inside the extracted build |
avformat-*.dll |
| macOS installer or Homebrew | The folder the installer or Homebrew placed FFmpeg in | avformat-*.dylib |
| Linux package | The system library folder used by the package | libavformat.so.* |
| Linux LAME (MP3) | The system library folder | libmp3lame.so in the Locate LAME dialog |
Verifying the setup
- Open Edit > Preferences > Libraries (on macOS, Audacity > Preferences > Libraries).
- Click Locate… for FFmpeg; a Success message means Audacity has loaded the library. Click No to close it.
- Open an M4A or WMA file in Audacity; it should import instead of showing "Audacity did not recognize the type of this file".
- Go to File > Export Audio… and check that the M4A (AAC) option is offered.
- Export a short test clip as M4A and play it in another app to confirm the file is valid.

Troubleshooting common issues when adding FFmpeg library to Audacity
Error FFmpeg:1008
FFmpeg did not load correctly when Audacity started.
- Close and reopen Audacity.
- If the error returns, reinstall FFmpeg.
- If it still returns, reinstall Audacity as well, then restart.
"Audacity did not recognize the type of this file"
No decoder is available: FFmpeg is missing, an import module is disabled, or the file is mislabelled.
- Install FFmpeg and restart Audacity.
- Open Preferences > Modules and set modules such as mod-mp3 and mod-pcm to Enabled.
- Open Preferences > Extended Import and delete any custom rules you did not mean to create.
- Check whether the file really is the format its extension claims; an
.mp3that holds AAC audio should be renamed.m4a.
FFmpeg not recognized by Audacity
Locate… does not show the Success message
FFmpeg is installed somewhere Audacity does not search, or only part of it was copied.
- Click Browse… in the Locate FFmpeg dialog.
- Open the folder that holds the whole FFmpeg build, not a folder with one copied DLL.
- Select the
avformatfile for your system and click Open, then OK twice. - Restart Audacity and click Locate… again to confirm.
FFmpeg installed with Homebrew is not detected
A freshly released Homebrew FFmpeg can be newer than Audacity supports for a while.
- Update Audacity to the latest version.
- If it still fails, run
brew install ffmpeg@6to install FFmpeg 6 (libavformat 60). - Point Locate… at that version's
avformat-*.dyliband restart Audacity.
Installation issues
Windows shows an unknown publisher warning
The FFmpeg for Audacity installer is not signed with a publisher name Windows recognizes.
- Confirm you downloaded the file from the link on the Audacity support page.
- Continue the installation; Audacity's instructions say this warning can be ignored for that installer.
macOS installer stuck on Validating packages
Package validation is slow on some Macs.
- Leave the installer open and wait for it to finish.
- Restart Audacity once the installer reports success.
Downloaded only avformat-*.dll and Audacity still fails
avformat depends on the other FFmpeg libraries, and static builds contain no DLLs at all.
- Download a full shared FFmpeg build.
- Extract the entire archive and point Locate… at
avformat-*.dllinside it.
Compatibility problems
FFmpeg fails on an Apple Silicon Mac
Audacity and FFmpeg architectures do not match.
- Use arm64 FFmpeg with the Apple Silicon build of Audacity.
- Use x86_64 FFmpeg with the Intel (x86_64) build of Audacity.
- Reinstall the universal macOS
.pkg, which picks the right architecture automatically.
A new FFmpeg release is ignored
Its libavformat major version is newer than your Audacity release supports.
- Update Audacity to the latest version.
- If the version is still not listed, install an older numbered FFmpeg release from the support table above.
Linux distribution FFmpeg is not detected
The distribution ships a libavformat version Audacity does not support.
- Uninstall the distribution's FFmpeg package.
- Build a shared build of a supported FFmpeg release from the source on ffmpeg.org.
- Point Locate… at its
libavformat.so.*file.
Additional tips for using FFmpeg with Audacity
| Tip | Why it helps |
|---|---|
| Update Audacity before FFmpeg | New Audacity releases add support for newer libavformat versions |
| Keep one FFmpeg install | Two copies in different folders make it unclear which one Locate… picked |
| Use M4A (AAC) or Opus for small files | Both give better quality than MP3 at a similar file size |
| Use FLAC for archives | Lossless, and up to half the size of WAV |
| Know the codec gaps | The recommended FFmpeg installer does not include AMR (narrowband) |
Keep FFmpeg updated
- Update Audacity first and check which libavformat versions the new release supports.
- On Windows with WinGet, run
winget upgrade --id=Buanzo.FFmpegforAudacity -e. - Without WinGet, run the newest FFmpeg for Audacity installer over the old one.
- On Linux, install updates through your distribution's normal update tool.
- Restart Audacity and click Locate… in Preferences > Libraries to confirm the library still loads.
Use compatible formats
| Format | Needs FFmpeg? | Best use |
|---|---|---|
| M4A (AAC) | Yes | Small files with better quality than MP3 |
| WMA | Yes | Files for older Windows players |
| MP3 | No (LAME is built in) | Widest compatibility |
| WAV, FLAC, Wavpack | No | Lossless masters and archives |
Leverage FFmpeg for batch processing
Audacity's batch tool is Macros: a saved list of effects plus an export command that runs on many files at once.
- Go to Tools > Manage Macros and click New, then name the macro.
- Click Insert and add the effects you need, such as Normalize or Compressor.
- Insert an export command such as Export as MP3, or Export2 with a full file path and extension for another format.
- Set the export options first in File > Export Audio… > Options, then cancel the export; macros reuse those last settings.
- Click Save, then Apply Macro to: Files… and pick the files. Audacity recommends no more than 500 files per run.
Any format that depends on FFmpeg, such as M4A, needs the library loaded in Audacity when the macro runs.

Adjust export settings for best quality
- Go to File > Export Audio….
- Choose M4A (AAC) or Opus for compressed audio that sounds better than MP3 at the same size.
- Choose FLAC or Wavpack instead of WAV when you need lossless audio in a smaller file.
- Set channels to mono for a single voice recording; stereo adds size without adding direction.
- Pick the file name and folder, then click Export.

Troubleshoot common issues
LAME errors when exporting MP3
An old Audacity version that still expects a separate lame_enc.dll.
- Uninstall Audacity.
- Install the latest version, which includes LAME on Windows and macOS.
An AMR file will not open after installing FFmpeg
Codecs differ between FFmpeg builds, and the recommended installer has no AMR (narrowband).
- Install a shared FFmpeg build that includes the AMR codec.
- Point Locate… at that build's
avformatfile and restart Audacity.
An MP3 file will not import even with FFmpeg
The file uses another codec, or it is damaged.
- Check the real codec with a media information tool; a true MP3 reports MPEG Audio, Version 1, Layer 3.
- Rename the file to match its real codec, for example
.m4afor AAC audio. - If it opens nowhere, download or create the file again.
Audacity FFmpeg library FAQ
Does Audacity come with FFmpeg?
No. Patent restrictions stop Audacity from distributing FFmpeg, so you install it separately. The Audacity support site links to an FFmpeg for Audacity installer for Windows and macOS, and Linux users install it with the package manager.
Where does FFmpeg for Audacity install on Windows?
The installer uses C:\Program Files\FFmpeg for Audacity by default. Audacity finds that folder on its own after a restart, so you only need Preferences > Libraries > Locate… if you chose a different folder or a ZIP build.
Which file do I select in the Locate FFmpeg dialog?
Select avformat-*.dll on Windows, avformat-*.dylib on macOS, or libavformat.so.* on Linux. The asterisk stands for the version number, such as avformat-61.dll for FFmpeg 7.1.
Which FFmpeg version works with Audacity?
It depends on your Audacity release. Audacity 3.5 and later load libavformat 61 (FFmpeg 7.1), and 3.7 and later add libavformat 62 (FFmpeg 8.x). FFmpeg 9 uses libavformat 63, which the support page does not list yet.
Do I need FFmpeg to export MP3 in Audacity?
No. The LAME MP3 encoder is included with Audacity on Windows and macOS. FFmpeg is needed for formats such as M4A (AAC) and WMA. On Linux, install lame alongside ffmpeg from the package manager.
Can I use ffmpeg.exe or a static FFmpeg build with Audacity?
No. Audacity loads the FFmpeg libraries, not the program, and only shared builds contain the .dll or .dylib files. Download a full shared build and keep all of its files together.
Can I download FFmpeg from ffmpeg.org for Audacity?
ffmpeg.org only provides source code. Its download page links to third-party Windows, macOS and Linux builds, while the Audacity support page links to an installer packaged specifically for Audacity.
How do I fix Error FFmpeg:1008 in Audacity?
The error means FFmpeg did not load correctly. Restart Audacity first. If the error comes back, reinstall FFmpeg, and if it still persists, reinstall Audacity as well.





