Activity › Forums › Compression Techniques › encoder ‘aac’ not working
-
encoder ‘aac’ not working
Posted by Peter Robertson on February 7, 2013 at 6:24 pmWhat does this error message mean and how to fix it:
The encoder ‘aac’ is experimental but experimental codecs are not enabled, add ‘-strict -2’ if you want to use it.
??
Peter
Pedro
Peter Robertson replied 13 years, 3 months ago 6 Members · 15 Replies -
15 Replies
-
Michael Rampe
February 7, 2013 at 10:00 pm[Peter Robertson] “add ‘-strict -2’ if you want to use it.”
This is how you fix it. Just add this to your encode options.
Basically, this is the built-in AAC encoder that is still in development. I have found it to work very well. The other option if you want to encode AAC audio is to compile and link libfaac which is an external library.
Post your configure options for more help, you may have libfaac already.
Michael
-
Reuben Martin
February 8, 2013 at 1:40 amIt can also be built with libaacplus if you want to encode HE-AAC (a.k.a AAC+). However most publicly available builds of ffmpeg are not build with this library enabled. Same goes for libfaac. If you want to use either of those two encoders, you will probably need to compile them yourself.
-
Peter Robertson
February 8, 2013 at 3:27 amThanks. I got it to work. And you’re right it does work pretty good. This is a much better version of ffmpeg than the previous one I had or maybe just a better installation. How do I find my configuration options to see if I have AAC codec installed. I think i remember seeing a warning during my installation–something about the pkg perhaps…?
Pedro
-
Peter Robertson
February 8, 2013 at 3:37 amFyi.. i’m using max osx. And i remember i could not enable some of the options like libfaac, libfaad and nonfree. Can i just run ./configure and make, make install to fix the problem?
Pedro
-
Michael Rampe
February 8, 2013 at 3:38 am[Peter Robertson] “How do I find my configuration options to see if I have AAC codec installed.”
Just type $ ffmpeg
… and look for –enable-libfaac
here is mine on the box I am on today:$ ffmpeg
ffmpeg version N-48401-gfc86f86 Copyright (c) 2000-2013 the FFmpeg developers
built on Jan 11 2013 14:13:05 with gcc 4.2.1 (GCC) (Apple Inc. build 5664)
configuration: –enable-gpl –enable-postproc –enable-swscale –enable-avfilter –enable-libmp3lame –enable-libx264 –enable-libfaac –enable-libfreetype –disable-shared –enable-static –enable-pthreads –arch=x86_64 –enable-nonfree –enable-frei0r –extra-cflags=-I/usr/local/include –extra-ldflags=-L/usr/local/lib
libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 85.100 / 54. 85.100
libavformat 54. 59.100 / 54. 59.100
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.102 / 3. 30.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100 -
Michael Rampe
February 8, 2013 at 3:40 am[Peter Robertson] “i’m using max osx. And i remember i could not enable some of the options like libfaac, libfaad and nonfree. “
No. You have to install these libraries separately first. libfaad is now redundant. libx264, libfaac and libmp3lame are a must for a very basic set.
Michael
-
Jim Sustacek
February 8, 2013 at 1:16 pmIf you are running Mac OS X, you can just grab a precompiled binary from here:
They’ve got 32-bit (OS 10.5) and 64-bit (OS 10.6+) versions, just updated to FFMPEG 1.1.2. These are already built with AAC support (using the “-strict experimental” or “-strict -2” commands, of course).
-
Jim Sustacek
February 8, 2013 at 1:30 pm“-strict experimental” also works — that’s the way it’s described in the ffmpeg documentation:
https://ffmpeg.org/ffmpeg-codecs.html
-2 is just the integer value they use to represent “experimental” — I assume 0 is “normal”, 2 is “very”, etc.
-
Peter Robertson
February 8, 2013 at 3:32 pmYeah, looks like I don’t have it enabled. Here’s what I have:
ffmpeg version N-49695-g4e2c636 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 7 2013 13:15:40 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
configuration: –enable-libx264 –enable-gpl –enable-shared
libavutil 52. 17.101 / 52. 17.101
libavcodec 54. 91.102 / 54. 91.102
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 35.101 / 3. 35.101
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]… {[outfile options] outfile}…What is the best way to uninstall ffmpeg?
Pedro
-
Peter Robertson
February 8, 2013 at 3:55 pmThanks. So the precompiled binary will have libx264, libfaac and libmp3lame?
Another question–anyone running ffmbc? I want to be able to transcode HDV to ProRes.
Pedro
Reply to this Discussion! Login or Sign Up