Installing the required plugin for your FFMPEG is a little bit tricky, this AAC audio encoder plugin is not ready installed in Raspbian OS and no official repositories for it, only a third party. Installing from it’s source code also take time compiling and there are lots of dependencies that you have to install in order to make the libfaac-dev. So, installing it from scratch is a headache specially you’re a newbie like me.
In order to install the libfaac-dev to your Raspberry Pi 3, you can follow our step by step guide below.
Edit your apt-get source list
First, you have to edit the apt-get source list and add the new one in your raspberry pi.
sudo nano /etc/apt/sources.list
Now, add the deb-multimedia.org repository on the bottom of the sources.list, your script should look like below. The new line is highlighted.
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi deb http://www.deb-multimedia.org/ jessie main
Update your apt-get and allow insecure repositories
Since this is a third party repositories, we have to add AllowInsecureRepositories when updating our apt-get. Then we have to digitally signs the release files so that we’ll no longer add the AllowInsecureRepositories everytime we install new package.
sudo apt-get update -oAcquire::AllowInsecureRepositories=true sudo apt-get install deb-multimedia-keyring -oAcquire::AllowInsecureRepositories=true
Finally! Install libfaac-dev
With everything is now setup, you can finally install libfaac-dev.
sudo apt-get install libfaac-dev