I am trying to install ffmpeg on my ubuntu 12.04 server using the Ubuntu Compilation Guide linked to from here. When I do the configure step for ffmpeg I keep getting ERROR: libaacplus not found or ERROR: fdk-aac not found or ERROR: libvpx not found, even though I installed all those like the guide said.
I also noticed in the configure log this line "ffmpeg /usr/bin/ld: error: cannot find -laacplus", and I think my laacplus files are in /usr/local/lib/ I thought maybe if I re-installed all the components using --enable-shared it might fix the issue. Any help with this issue would be greatly appreciated. Thank you in advanced.
Did you follow the guide word-for-word, or did you modify any steps? Someone else added the libaacplus and libopus sections, and I haven't tested those instructions yet.
You shouldn't need to add --enable-shared.
Are you sure libaacplus, fdk-aac, and libvpx were installed successfully? You can check with dpkg:
If you don't need libaacplus, fkd-aac, and libvpx you can simply omit --enable-libaacplus, --enable-libfdk-aac, and --enable-libvpx from the ffmpeg configure line. The instructions to add these external libraries are optional. If you don't plan on using them then it is recommended not to install them.Code:
$ dpkg -L libaacplus
Thanks for responding FakeOutdoorsman, I actually do plan on using the aac+ and aac codecs, and would like to try out the new vp8 codec. I compared my output from dpkg -L libaacplus to yours and it matches perfectly. I remember getting success from each of these installs when I ran the commands from the guide. I just copy and pasted directly from the guide. I also tried setting up an ubuntu 12.04 vm, followed the same steps, and everything worked. Its just not working on my Ubuntu 12.04 server for some reason.
I pasted the error part from the configure log below. I did notice something interesting in the configure log. FFmpeg appears to be looking in '/usr/bin/ld' for some reason, then failing. I dont have this directory on my machine.
/usr/bin/ld: error: cannot find -laacplus
/tmp/ffconf.2DUaOkun.o:ffconf.qEzF9ZAK.c:function main: error: undefined reference to 'aacplusEncOpen'
collect2: ld returned 1 exit status
ERROR: libaacplus >= 2.0.0 not found
I also tried running 'sudo ldconfig -v' and did see it listed like below.
libaacplus.so.2 -> libaacplus.so.2.0.2
I hope this information is useful. I have no idea whats causing this. Thanks for the help.
Debate over sound quality never ends but arguable you would get better aac sound with neroAacEnc, not part of FFmpeg of course..
So I was able to get FFmpeg to configure and install by omitting --enable-libfdk-aac and --enable-libaacplus in my configure command. I did install these libraries, but the configure wouldn't see them no mater how many times I removed and reinstalled them.
i have been following your guide for ubuntu 10.04 https://ffmpeg.org/trac/ffmpeg/wiki/...tionGuideLucid everything goes well until i get to installing ffmpeg i do :
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \
--enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx \
--enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab
and it tells me :
Unknown option "--enable-libopencore-am"
--enable-libopencore-amrwb: command not found
--enable-libx264: command not found
any one have a clue what i have missed or done wrong ?
I also have a vague recollection of libaacplus having issues when fdk-aac and/or vo-aacenc were either installed or during the ffmpeg configure, but I don't know if it is still a problem, so maybe try again and ffmpeg configure with fdk-aac might work as expected.
I tried it in Lucid and it worked fine for me.Code:
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 --enable-x11grab