How to add FFmpeg library to Audacity

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 add FFmpeg library to Audacity
Under Edit > Preferences > Libraries, Audacity reports "FFmpeg library not found" until the avformat library is installed or located. (Image: support.audacityteam.org)

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.

  1. Open the Audacity support page Installing FFmpeg at support.audacityteam.org and follow its link to the FFmpeg installer at lame.buanzo.org.
  2. 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.
  3. Run the installer. Audacity's own instructions say the unknown publisher warning can be ignored for this file.
  4. Read and accept the license.
  5. Keep the default install folder, C:\Program Files\FFmpeg for Audacity, unless you have a reason to change it.
  6. 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

  1. Update to the latest version of Audacity first, so it accepts the newest FFmpeg versions.
  2. Close Audacity before you install FFmpeg; it only looks for the library when it starts.
  3. Note whether your copy of Audacity is 64-bit, ARM64 or Apple Silicon, and download the matching FFmpeg build.
  4. Write down the folder you install or extract FFmpeg to; you need it if Audacity does not find the library on its own.
  5. 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.

  1. Visit the official FFmpeg website download page at ffmpeg.org/download.html and note which release numbers your Audacity version supports.
  2. Choose the correct version: a numbered release whose libavformat major version is in the Audacity table above, never a master or nightly build.
  3. 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.
  4. Extract the files: right-click the ZIP, select Extract All, and pick a permanent folder such as C:\FFmpeg.
  5. Prepare for integration: open the extracted folder, find the bin folder that holds avformat-*.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

  1. Open Terminal or Windows PowerShell from the Start menu.
  2. Run winget install --id=Buanzo.FFmpegforAudacity -e and accept the source agreement if WinGet asks.
  3. For a ZIP build instead, extract the shared build to a permanent folder as shown in the download steps.
  4. Restart Audacity.
  5. If you used a ZIP build, go to Edit > Preferences > Libraries, click Locate… and browse to avformat-*.dll in the build's bin folder.

macOS: install FFmpeg for Audacity with the .pkg or Homebrew

  1. Download the macOS FFmpeg installer from the link on the Audacity Installing FFmpeg page.
  2. Open the .pkg and click through the installer steps.
  3. Wait if the installer seems stuck on Validating packages; on some Macs that step takes a while.
  4. Quit and reopen Audacity so it detects FFmpeg.
  5. To use Homebrew instead, install Homebrew from brew.sh, run brew install ffmpeg in 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.

  1. Download and install FFmpeg with one of the routes above, then open Audacity.
  2. Go to Edit > Preferences > Libraries on Windows and Linux, or Audacity > Preferences > Libraries on macOS.
  3. Click Locate… next to the FFmpeg library.
  4. If a Success message says Audacity already found FFmpeg, click No; nothing else is needed.
  5. Otherwise, click Browse… in the Locate FFmpeg dialog to configure Audacity to recognize FFmpeg.
  6. Select avformat-*.dll on Windows, avformat-*.dylib on macOS, or libavformat.so.* on Linux.
  7. Click Open, then OK, then OK again to close Preferences.
Configure Audacity to use FFmpeg in the Locate FFmpeg dialog with Browse button
Click Browse… and select avformat-*.dll on Windows, avformat-*.dylib on macOS or libavformat.so.* on Linux, then click OK. (Image: support.audacityteam.org)

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

  1. Open Edit > Preferences > Libraries (on macOS, Audacity > Preferences > Libraries).
  2. Click Locate… for FFmpeg; a Success message means Audacity has loaded the library. Click No to close it.
  3. Open an M4A or WMA file in Audacity; it should import instead of showing "Audacity did not recognize the type of this file".
  4. Go to File > Export Audio… and check that the M4A (AAC) option is offered.
  5. Export a short test clip as M4A and play it in another app to confirm the file is valid.
Verify FFmpeg in Audacity with the Success message for detected FFmpeg libraries
This Success message after clicking Locate… means the library is loaded; click No to close it without changing anything. (Image: support.audacityteam.org)

Troubleshooting common issues when adding FFmpeg library to Audacity

Error FFmpeg:1008

FFmpeg did not load correctly when Audacity started.

  1. Close and reopen Audacity.
  2. If the error returns, reinstall FFmpeg.
  3. 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.

  1. Install FFmpeg and restart Audacity.
  2. Open Preferences > Modules and set modules such as mod-mp3 and mod-pcm to Enabled.
  3. Open Preferences > Extended Import and delete any custom rules you did not mean to create.
  4. Check whether the file really is the format its extension claims; an .mp3 that 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.

  1. Click Browse… in the Locate FFmpeg dialog.
  2. Open the folder that holds the whole FFmpeg build, not a folder with one copied DLL.
  3. Select the avformat file for your system and click Open, then OK twice.
  4. 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.

  1. Update Audacity to the latest version.
  2. If it still fails, run brew install ffmpeg@6 to install FFmpeg 6 (libavformat 60).
  3. Point Locate… at that version's avformat-*.dylib and restart Audacity.

Installation issues

Windows shows an unknown publisher warning

The FFmpeg for Audacity installer is not signed with a publisher name Windows recognizes.

  1. Confirm you downloaded the file from the link on the Audacity support page.
  2. 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.

  1. Leave the installer open and wait for it to finish.
  2. 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.

  1. Download a full shared FFmpeg build.
  2. Extract the entire archive and point Locate… at avformat-*.dll inside it.

Compatibility problems

FFmpeg fails on an Apple Silicon Mac

Audacity and FFmpeg architectures do not match.

  1. Use arm64 FFmpeg with the Apple Silicon build of Audacity.
  2. Use x86_64 FFmpeg with the Intel (x86_64) build of Audacity.
  3. 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.

  1. Update Audacity to the latest version.
  2. 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.

  1. Uninstall the distribution's FFmpeg package.
  2. Build a shared build of a supported FFmpeg release from the source on ffmpeg.org.
  3. 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

  1. Update Audacity first and check which libavformat versions the new release supports.
  2. On Windows with WinGet, run winget upgrade --id=Buanzo.FFmpegforAudacity -e.
  3. Without WinGet, run the newest FFmpeg for Audacity installer over the old one.
  4. On Linux, install updates through your distribution's normal update tool.
  5. 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.

  1. Go to Tools > Manage Macros and click New, then name the macro.
  2. Click Insert and add the effects you need, such as Normalize or Compressor.
  3. Insert an export command such as Export as MP3, or Export2 with a full file path and extension for another format.
  4. Set the export options first in File > Export Audio… > Options, then cancel the export; macros reuse those last settings.
  5. 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.

Batch process audio in Audacity with the Manage Macros dialog and edit steps
Build the macro in Tools > Manage Macros, then use Apply Macro to: Files… to run it on many files at once. (Image: support.audacityteam.org)

Adjust export settings for best quality

  1. Go to File > Export Audio….
  2. Choose M4A (AAC) or Opus for compressed audio that sounds better than MP3 at the same size.
  3. Choose FLAC or Wavpack instead of WAV when you need lossless audio in a smaller file.
  4. Set channels to mono for a single voice recording; stereo adds size without adding direction.
  5. Pick the file name and folder, then click Export.
Audacity export settings for best quality with format, sample rate and quality options
In File > Export Audio…, pick the format and set channels to Mono for a single voice recording to keep the file smaller. (Image: support.audacityteam.org)

Troubleshoot common issues

LAME errors when exporting MP3

An old Audacity version that still expects a separate lame_enc.dll.

  1. Uninstall Audacity.
  2. 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).

  1. Install a shared FFmpeg build that includes the AMR codec.
  2. Point Locate… at that build's avformat file and restart Audacity.

An MP3 file will not import even with FFmpeg

The file uses another codec, or it is damaged.

  1. Check the real codec with a media information tool; a true MP3 reports MPEG Audio, Version 1, Layer 3.
  2. Rename the file to match its real codec, for example .m4a for AAC audio.
  3. 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.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *