"Unknown option "--enable-libfaad" ERROR: libfaac not found" while configuring ffmpeg
73,005
Solution 1
Well, install libfaac
first. It seems there was an error doing so. Make sure apt-get install libfaac-dev
works.
The proper instructions for installing FFmpeg and x264 are here.
sudo apt-get update
sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \
libjack-jackd2-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev \
libsdl1.2-dev libtheora-dev libva-dev libvdpau-dev libvorbis-dev libx11-dev \
libxfixes-dev texi2html yasm zlib1g-dev
Then, for x264:
cd
git clone git://git.videolan.org/x264
cd x264
./configure --enable-static
make
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \
--fstrans=no --default
And for FFmpeg:
cd
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \
--deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe
That's it — filters should be automatically included.
Solution 2
I found that in Ubuntu 12.04 libfaac-dev wasn't installable, so following these instructions (https://superuser.com/questions/467774/how-to-install-libfaac-dev) I enabled the multiverse repository:
sudo nano /etc/apt/sources.list
Removing the hashes on the following lines to enable the repo:
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://eu-west-1.ec2.archive.ubuntu.com/ubuntu/ precise-updates multiverse
Run:
sudo apt-get update
sudo apt-get install libfaac-dev
That should solve this error.
Solution 3
If your installing on ec2 ubuntu instance...
you must upgrade to this yasm, which isn't in the repos
.....
install yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz
tar xvzf yasm-1.2.0.tar.gz
cd yasm-1.2.0
./configure
make && make install
cd ..
Related videos on Youtube
Author by
Даниил Зобов
Updated on September 18, 2022Comments
-
Даниил Зобов almost 2 years
I trying to install this following these instructions:
sudo apt-get remove ffmpeg x264 libx264-dev sudo apt-get update sudo apt-get install build-essential subversion git-core checkinstall yasm texi2html libfaac-dev libfaad-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libx11-dev libxfixes-dev libxvidcore4-dev zlib1g-dev cd mkdir ffmpeg-x264-avfilter cd ffmpeg-x264-avfilter git clone git://git.videolan.org/x264.git cd x264 ./configure make sudo checkinstall --pkgname=x264 --pkgversion "1:0.svn`date +%Y%m%d`+`git rev-list HEAD -n 1 | head -c 7`" --backup=no --default cd .. svn checkout svn://svn.ffmpeg.org/soc/libavfilter cd libavfilter ./checkout.sh cd ffmpeg ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avfilter-lavf make sudo checkinstall --pkgname=ffmpeg-avfilter --pkgversion "4:0.5+svn`date +%Y%m%d`" --backup=no --default
I got these errors:
Unknown option "--enable-libfaad". Unknown option "--enable-avfilter-lavf". ERROR: libfaac not found
What am I doing wrong?
-
Mantra about 12 yearsAny errors when running
apt-get install libfaac-dev
? Also, remove the unknown options. Also, please learn to indent your code properly with 4 spaces, then you don't have to do the backticks thing. -
cwd over 11 years
-
-
sirvon about 11 yearsb/c as I was following this thread's instructions and I got to this --> Then, for x264: cd git clone git://git.videolan.org/x264 cd x264 ./configure --enable-static ..... I couldn't proceed unless I did what I just posted.
-
mido over 9 yearsjust a note, in the first apt-get install list, you can add
checkinstall