Getting error: Unknown encoder 'libvo_aacenc'

3

I am new to ffmpeg, just trying to build an SDP file for streaming. I'm facing an error when I run the command

ffmpeg -re -i "sample.mp4" -f rtp rtp://127.0.0.1:10000 -flags +global_header -c:a libvo_aacenc -vn -map 0:1 -f rtp rtp://127.0.0.1:10002 > 10000.sdp

The error is:

Unknown encoder 'libvo_aacenc'

How do I resolve this?

Ritesh Mehandiratta

Posted 2013-06-03T16:29:41.237

Reputation: 139

You need to include the complete ffmpeg console output that shows up after you enter your ffmpeg command. – llogan – 2013-06-03T20:13:51.090

Answers

10

Your ffmpeg was probably not configured with --enable-libvo-aacenc. However there are other, higher quality AAC encoders that can be used with ffmpeg. ffmpeg -codecs will list all encoders that have been configured for each supported codec; look for the "aac" line and the encoders listed on that line. If you don't have any other AAC encoder you can always use the experimental AAC encoder that is built-in to ffmpeg (-strict experimental -c:a aac), or build your own ffmpeg with your favorite AAC encoder. For guidance on selecting an AAC encoder, see the ffmpeg AAC Encoding Guide.

Update: As of FFmpeg 3.0 (Feb 2016), libvo-aac has been removed from FFmpeg because the built-in AAC encoder has superior quality and is no longer experimental. It is suggested to use the built-in encoder (-c:a aac) or libfdk-aac (-c:a libfdk_aac) instead.

mark4o

Posted 2013-06-03T16:29:41.237

Reputation: 4 729

libfaac is next in line for removal. – llogan – 2016-03-26T23:47:50.710

0

This solves it for me:

sudo apt-get install libavcodec-extra

user329023

Posted 2013-06-03T16:29:41.237

Reputation: 111