Software⏱️ 3 min read📅 2026-06-11

How to Fix: Why am I getting this error when converting m4a file? “Unknown encoder 'libfdk_aac'”

FFmpeg error fix for unknown encoder libfdk_aac on Windows.

Quick Answer: Install the FFmpeg Essentials build, which includes libfdk_aac, and update your system to use it.

The error 'Unknown encoder 'libfdk_aac'' when converting an m4a file using FFmpeg can be frustrating, especially for those who are new to command-line tools. This issue affects users of Windows operating systems and those who have installed the latest version of FFmpeg (March 20, 2021).

This error is particularly annoying because it prevents users from successfully converting their audio files without any further information about why the conversion process failed.

🛑 Root Causes of the Error

  • The primary reason for this error is that the `libfdk_aac` encoder is not included in the default FFmpeg installation. Although it was a part of older versions, it has been removed from newer versions to reduce dependencies and improve stability.
  • An alternative cause could be that the system's environment variables are not correctly set up for FFmpeg to find the required encoders.

🚀 How to Resolve This Issue

Installing libfdk_aac manually

  1. Step 1: Download the `libfdk_aac` library from a reliable source, such as GitHub or a package manager.
  2. Step 2: Extract the downloaded archive and copy the `libfdk_aac` library to the system's directory where FFmpeg is installed (usually `C:\Program Files\FFmpeg` on Windows).
  3. Step 3: Add the path to the `libfdk_aac` library to the system's PATH environment variable. This can be done by right-clicking on 'This PC' or 'Computer', selecting 'Properties', then 'Advanced system settings', and finally 'Environment Variables'.

Using an alternative encoder

  1. Step 1: Modify the FFmpeg command to use a different audio encoder, such as `libmp3lame` or `libvorbis`. For example: `ffmpeg -i input.m4a -c:a libmp3lame -b:a 32k output.m4a`.
  2. Step 2: Choose an alternative encoder based on the desired quality and compatibility requirements. Note that some encoders may not support all audio features or have different bitrate limits.

💡 Conclusion

To resolve the 'Unknown encoder 'libfdk_aac'' error when converting m4a files, you can either manually install `libfdk_aac` or use an alternative encoder in your FFmpeg command. By following these steps and choosing the right solution for your needs, you should be able to successfully convert your audio files.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions