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

How to Fix: Getting error: Unknown encoder 'libvo_aacenc'

FFmpeg error resolving unknown encoder libvo_aacenc for streaming SDP file.

Quick Answer: Use a different audio codec, such as libfaac or libx264, instead of libvo_aacenc.

The error 'Unknown encoder 'libvo_aacenc'' occurs when you're trying to build an SDP file for streaming using FFmpeg, but it's caused by a mismatch between the codec used in your input file and the one specified in the command.

This issue can be frustrating because it prevents you from successfully creating the SDP file needed for streaming. However, don't worry; we'll walk you through the steps to resolve this problem.

🔍 Why This Happens

  • The primary reason for this error is that FFmpeg is unable to find the 'libvo_aacenc' encoder. This could be due to a few reasons: the encoder might not be installed on your system, or it might not be properly configured.
  • Another possible cause is that you're using an older version of FFmpeg where the 'libvo_aacenc' encoder was not supported.

✅ Best Solutions to Fix It

Update FFmpeg to the latest version

  1. Step 1: Open a terminal or command prompt and update FFmpeg to the latest version by running the following command: `sudo apt-get update && sudo apt-get install ffmpeg` (for Debian-based systems) or `brew upgrade ffmpeg` (for macOS).
  2. Step 2: Alternatively, you can download the latest version of FFmpeg from the official website and compile it manually. However, this method is not recommended as it requires advanced knowledge of compilation and configuration.
  3. Step 3: Once FFmpeg is updated to a version that supports 'libvo_aacenc', try running your original command again.

Specify an alternative codec

  1. Step 1: If updating FFmpeg is not feasible, you can try specifying an alternative codec in the command. Replace '-c:a libvo_aacenc' with '-c:a aac' or '-c:a mp3'.
  2. Step 2: Keep in mind that using an alternative codec might affect the quality of your audio stream.

💡 Conclusion

To summarize, the 'Unknown encoder 'libvo_aacenc'' error can be resolved by updating FFmpeg to the latest version or specifying an alternative codec. By following these steps, you should be able to successfully build your SDP file for streaming.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions