mcfadden / PiSetup

A collection of instructions and scripts to simplify setting up Raspberry Pis
MIT License
0 stars 1 forks source link

libfaac #5

Open mcfadden opened 7 years ago

mcfadden commented 7 years ago

From my notes, this can be done as follows:

This can't be distributed in binary form because of some license crap. Well, let's install it.

cd ~;
wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gz;
tar -xvf faac-1.28.tar.gz;
cd faac-1.28/;

We've gotta make a tweak to the source:

nano +126 common/mp4v2/mpeg4ip.h; # Opens up to line 126 (should start with "char *strcasestr")

Delete that line. Then complete the install

./configure
make;
sudo make install;

Last step is to run the command "ldconfig" which will help ffmpeg load up the dynamic library of libfaac.

sudo ldconfig;
mcfadden commented 6 years ago

NOTES FROM 1/25/2016 libfaac support was removed from ffmpeg. I installed libfdk-aac as follows:

cd ~ wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master tar xzvf fdk-aac.tar.gz cd mstorsjo-fdk-aac* autoreconf -fiv ./configure --enable-shared make -j2 sudo make install sudo ldconfig; Then compile ffmpeg with this:

./configure --enable-libfreetype --enable-gpl --enable-nonfree --enable-libx264 --enable-libass --enable-libfdk-aac --enable-libmp3lame --bindir="/usr/local/bin"