2008-01-19 17:35:36 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2013-07-28 21:32:25 +08:00
|
|
|
<!ENTITY faad2-download-http "&sourceforge-repo;/faac/faad2-&faad2-version;.tar.bz2">
|
|
|
|
<!ENTITY faad2-download-ftp " ">
|
|
|
|
<!ENTITY faad2-md5sum "4c332fa23febc0e4648064685a3d4332">
|
|
|
|
<!ENTITY faad2-size "880 KB">
|
2009-08-04 21:01:12 +08:00
|
|
|
<!ENTITY faad2-buildsize "12 MB (without media player plugins)">
|
|
|
|
<!ENTITY faad2-time "0.2 SBU (without media player plugins)">
|
2008-01-19 17:35:36 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="faad2" xreflabel="FAAD2-&faad2-version;">
|
|
|
|
<?dbhtml filename="faad2.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
2008-01-21 21:47:21 +08:00
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
2008-01-19 17:35:36 +08:00
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>FAAD2-&faad2-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="faad2">
|
|
|
|
<primary sortas="a-faad2">faad2</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to FAAD2</title>
|
|
|
|
|
|
|
|
<para><application>FAAD2</application> is a decoder for a lossy sound
|
|
|
|
compression scheme specified in MPEG-2 Part 7 and MPEG-4 Part 3 standards
|
|
|
|
and known as Advanced Audio Coding (AAC).</para>
|
|
|
|
|
2017-02-19 10:01:35 +08:00
|
|
|
&lfs80_checked;
|
2009-08-04 21:01:12 +08:00
|
|
|
|
2008-01-19 17:35:36 +08:00
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&faad2-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&faad2-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &faad2-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &faad2-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &faad2-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &faad2-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
2013-07-28 21:32:25 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Required patch: <ulink url="&patch-root;/faad2-&faad2-version;-mp4ff-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Sample AAC file: <ulink url="http://www.nch.com.au/acm/sample.aac"/> (7 KB)
|
|
|
|
</para>
|
|
|
|
</listitem>
|
2008-01-19 17:35:36 +08:00
|
|
|
</itemizedlist>
|
2008-03-16 19:10:03 +08:00
|
|
|
|
2011-11-06 05:04:08 +08:00
|
|
|
<!--
|
2008-01-19 17:35:36 +08:00
|
|
|
<bridgehead renderas="sect3">FAAD2 Dependencies</bridgehead>
|
|
|
|
|
2008-01-21 23:56:41 +08:00
|
|
|
<bridgehead renderas="sect4">Optional (to build corresponding AAC plugins)</bridgehead>
|
|
|
|
<para role="optional"><xref linkend="xmms"/> and
|
2008-03-16 19:10:03 +08:00
|
|
|
<ulink url="http://mpeg4ip.sourceforge.net/">mpeg4ip</ulink> (both
|
2011-11-06 05:04:08 +08:00
|
|
|
are untested, and both projects are dead).</para> -->
|
2008-01-19 17:35:36 +08:00
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/faad2"/></para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of FAAD2</title>
|
|
|
|
|
|
|
|
<para>Install <application>FAAD2</application> by running the
|
|
|
|
following commands:</para>
|
|
|
|
|
2013-07-28 21:32:25 +08:00
|
|
|
<screen><userinput>patch -Np1 -i ../faad2-&faad2-version;-mp4ff-1.patch &&
|
2015-10-24 22:43:19 +08:00
|
|
|
|
2014-01-02 22:10:27 +08:00
|
|
|
sed -i "s:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g" configure.in &&
|
2015-10-24 22:43:19 +08:00
|
|
|
sed -i "s:man_MANS:man1_MANS:g" frontend/Makefile.am &&
|
|
|
|
|
2013-07-28 21:32:25 +08:00
|
|
|
autoreconf -fi &&
|
2015-10-24 22:43:19 +08:00
|
|
|
|
2013-07-28 21:32:25 +08:00
|
|
|
./configure --prefix=/usr --disable-static &&
|
2008-01-19 17:35:36 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
2008-01-21 23:56:41 +08:00
|
|
|
<para>This package does not come with a test suite. However, basic
|
|
|
|
functionality can be tested by decoding the sample AAC file:</para>
|
2008-05-09 20:42:27 +08:00
|
|
|
|
2008-01-19 17:35:36 +08:00
|
|
|
<screen><userinput>./frontend/faad -o sample.wav ../sample.aac</userinput></screen>
|
|
|
|
|
|
|
|
<para>This should display a copyright message and the following
|
|
|
|
information about the sample file:</para>
|
|
|
|
|
2008-01-21 23:56:41 +08:00
|
|
|
<literallayout><computeroutput>sample.aac file info:
|
2008-01-19 17:35:36 +08:00
|
|
|
ADTS, 4.608 sec, 13 kbps, 16000 Hz
|
|
|
|
|
|
|
|
---------------------
|
|
|
|
| Config: 2 Ch |
|
|
|
|
---------------------
|
|
|
|
| Ch | Position |
|
|
|
|
---------------------
|
|
|
|
| 00 | Left front |
|
|
|
|
| 01 | Right front |
|
2008-01-21 23:56:41 +08:00
|
|
|
---------------------</computeroutput></literallayout>
|
2008-01-19 17:35:36 +08:00
|
|
|
|
2008-01-21 23:56:41 +08:00
|
|
|
<para>Now play the result (requires the <command>aplay</command> program
|
|
|
|
from the <xref linkend="alsa-utils"/> package):</para>
|
2008-01-19 17:35:36 +08:00
|
|
|
|
|
|
|
<screen><userinput>aplay sample.wav</userinput></screen>
|
|
|
|
|
|
|
|
<para><command>aplay</command> should identify the file as
|
2008-01-21 23:56:41 +08:00
|
|
|
<quote>Signed 16 bit Little Endian, Rate 16000 Hz, Stereo</quote>, and you
|
|
|
|
should hear some piano notes.</para>
|
2008-01-19 17:35:36 +08:00
|
|
|
|
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2009-08-04 21:01:12 +08:00
|
|
|
<!-- <para><command>./bootstrap</command>: This command runs GNU Autotools
|
2008-01-21 23:56:41 +08:00
|
|
|
to create the <command>configure</command> script and other
|
2009-08-04 21:01:12 +08:00
|
|
|
required build files.</para> -->
|
2008-01-19 17:35:36 +08:00
|
|
|
|
2014-01-02 22:10:27 +08:00
|
|
|
<para>
|
|
|
|
<command>sed -i ...</command>: First command fixes autotools scripts to
|
|
|
|
be compatible with latest version of <application>Automake</application>
|
|
|
|
and second command fixes manual page install location.
|
|
|
|
</para>
|
|
|
|
|
2013-07-28 21:32:25 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
2008-01-19 17:35:36 +08:00
|
|
|
<para><option>--with-drm</option>: This option is supposed to enable
|
|
|
|
support for decoding
|
|
|
|
<ulink url="http://www.drm.org/">Digital Radio Mondiale</ulink>, but
|
|
|
|
actually breaks the base functionality of the package (e.g., the resulting
|
|
|
|
<command>faad</command> program cannot decode the sample AAC file
|
|
|
|
linked above). Don't use it.</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Program</segtitle>
|
2008-01-21 23:56:41 +08:00
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2008-01-19 17:35:36 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>faad</seg>
|
2013-07-28 21:32:25 +08:00
|
|
|
<seg>libfaad.so</seg>
|
2008-01-21 23:56:41 +08:00
|
|
|
<seg>None</seg>
|
2008-01-19 17:35:36 +08:00
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="faad-prog">
|
|
|
|
<term><command>faad</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a command-line utility for decoding AAC and MP4 files.</para>
|
|
|
|
<indexterm zone="faad2 faad-prog">
|
|
|
|
<primary sortas="b-faad">faad</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libfaad">
|
2013-07-28 21:32:25 +08:00
|
|
|
<term><filename class='libraryfile'>libfaad.so</filename></term>
|
2008-01-19 17:35:36 +08:00
|
|
|
<listitem>
|
2008-01-21 23:56:41 +08:00
|
|
|
<para>contains functions for decoding AAC streams.</para>
|
2008-01-19 17:35:36 +08:00
|
|
|
<indexterm zone="faad2 libfaad">
|
2013-07-28 21:32:25 +08:00
|
|
|
<primary sortas="c-libfaad">libfaad.so</primary>
|
2008-01-19 17:35:36 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|