﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
2018	Should we add faac and faad2 to the book?	andy@…	blfs-book@…	"faac and faad2 are an mp4 encoder and decoder, they are useful for creating mp4/m4a files from .wav files. They are listed as optional dependencies of a couple of packages in the book. Perhaps they should be added to BLFS? 

Some links:

http://www.audiocoding.com 

http://sourceforge.net/project/showfiles.php?group_id=704 

http://en.wikipedia.org/wiki/Advanced_Audio_Coding

faac depends on faad2 being installed first. In order for faac to be able to encode mp4, faad2 has to be compiled with mp4 support. faad2 needs a couple of seds to be able to compile it with gcc4. The full set of instructions that works for me is 
{{{
cd faad2 &&
sed -i 's/       /\t/' Makefile.am &&
sed -i 's/NULL/0/' common/mp4v2/{mp4property.h,rtphint.h} &&
sed -i '/dd(m/ s/^v/static v/' common/mp4ff/mp4ffint.h &&
autoreconf -vif &&
./configure --prefix=/usr --with-mp4v2 &&
make &&
make install
}}}
For faac it's a bit simpler
{{{
cd faac &&
chmod 755 bootstrap &&
./bootstrap &&
./configure --prefix=/usr &&
make &&
make install
}}}
"	enhancement	closed	normal		BOOK	SVN	medium	fixed		
