[92de4f24] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[c8bb20a8] | 7 | <!ENTITY faad2-download-http "&sourceforge-repo;/faac/faad2-&faad2-version;.tar.bz2">
|
---|
| 8 | <!ENTITY faad2-download-ftp " ">
|
---|
| 9 | <!ENTITY faad2-md5sum "4c332fa23febc0e4648064685a3d4332">
|
---|
| 10 | <!ENTITY faad2-size "880 KB">
|
---|
[c3cb9d7] | 11 | <!ENTITY faad2-buildsize "12 MB (without media player plugins)">
|
---|
| 12 | <!ENTITY faad2-time "0.2 SBU (without media player plugins)">
|
---|
[92de4f24] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="faad2" xreflabel="FAAD2-&faad2-version;">
|
---|
| 16 | <?dbhtml filename="faad2.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
[8b7be7b6] | 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
[92de4f24] | 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>FAAD2-&faad2-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="faad2">
|
---|
| 26 | <primary sortas="a-faad2">faad2</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to FAAD2</title>
|
---|
| 31 |
|
---|
| 32 | <para><application>FAAD2</application> is a decoder for a lossy sound
|
---|
| 33 | compression scheme specified in MPEG-2 Part 7 and MPEG-4 Part 3 standards
|
---|
| 34 | and known as Advanced Audio Coding (AAC).</para>
|
---|
| 35 |
|
---|
[aed3e6ec] | 36 | &lfs77_checked;
|
---|
[c3cb9d7] | 37 |
|
---|
[92de4f24] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&faad2-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&faad2-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &faad2-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &faad2-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &faad2-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &faad2-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
| 59 |
|
---|
| 60 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
[c8bb20a8] | 61 | <itemizedlist spacing="compact">
|
---|
| 62 | <listitem>
|
---|
| 63 | <para>
|
---|
| 64 | Required patch: <ulink url="&patch-root;/faad2-&faad2-version;-mp4ff-1.patch"/>
|
---|
| 65 | </para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>
|
---|
| 69 | Sample AAC file: <ulink url="http://www.nch.com.au/acm/sample.aac"/> (7 KB)
|
---|
| 70 | </para>
|
---|
| 71 | </listitem>
|
---|
[92de4f24] | 72 | </itemizedlist>
|
---|
[13447b9] | 73 |
|
---|
[3b10fa8] | 74 | <!--
|
---|
[92de4f24] | 75 | <bridgehead renderas="sect3">FAAD2 Dependencies</bridgehead>
|
---|
| 76 |
|
---|
[402da65] | 77 | <bridgehead renderas="sect4">Optional (to build corresponding AAC plugins)</bridgehead>
|
---|
| 78 | <para role="optional"><xref linkend="xmms"/> and
|
---|
[13447b9] | 79 | <ulink url="http://mpeg4ip.sourceforge.net/">mpeg4ip</ulink> (both
|
---|
[3b10fa8] | 80 | are untested, and both projects are dead).</para> -->
|
---|
[92de4f24] | 81 |
|
---|
| 82 | <para condition="html" role="usernotes">User Notes:
|
---|
| 83 | <ulink url="&blfs-wiki;/faad2"/></para>
|
---|
| 84 |
|
---|
| 85 | </sect2>
|
---|
| 86 |
|
---|
| 87 | <sect2 role="installation">
|
---|
| 88 | <title>Installation of FAAD2</title>
|
---|
| 89 |
|
---|
| 90 | <para>Install <application>FAAD2</application> by running the
|
---|
| 91 | following commands:</para>
|
---|
| 92 |
|
---|
[c8bb20a8] | 93 | <screen><userinput>patch -Np1 -i ../faad2-&faad2-version;-mp4ff-1.patch &&
|
---|
[38489d2e] | 94 | sed -i "s:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:g" configure.in &&
|
---|
| 95 | sed -i "s:man_MANS:man1_MANS:g" frontend/Makefile.am &&
|
---|
[c8bb20a8] | 96 | autoreconf -fi &&
|
---|
| 97 | ./configure --prefix=/usr --disable-static &&
|
---|
[92de4f24] | 98 | make</userinput></screen>
|
---|
| 99 |
|
---|
[402da65] | 100 | <para>This package does not come with a test suite. However, basic
|
---|
| 101 | functionality can be tested by decoding the sample AAC file:</para>
|
---|
[fd7e0ed6] | 102 |
|
---|
[92de4f24] | 103 | <screen><userinput>./frontend/faad -o sample.wav ../sample.aac</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | <para>This should display a copyright message and the following
|
---|
| 106 | information about the sample file:</para>
|
---|
| 107 |
|
---|
[402da65] | 108 | <literallayout><computeroutput>sample.aac file info:
|
---|
[92de4f24] | 109 | ADTS, 4.608 sec, 13 kbps, 16000 Hz
|
---|
| 110 |
|
---|
| 111 | ---------------------
|
---|
| 112 | | Config: 2 Ch |
|
---|
| 113 | ---------------------
|
---|
| 114 | | Ch | Position |
|
---|
| 115 | ---------------------
|
---|
| 116 | | 00 | Left front |
|
---|
| 117 | | 01 | Right front |
|
---|
[402da65] | 118 | ---------------------</computeroutput></literallayout>
|
---|
[92de4f24] | 119 |
|
---|
[402da65] | 120 | <para>Now play the result (requires the <command>aplay</command> program
|
---|
| 121 | from the <xref linkend="alsa-utils"/> package):</para>
|
---|
[92de4f24] | 122 |
|
---|
| 123 | <screen><userinput>aplay sample.wav</userinput></screen>
|
---|
| 124 |
|
---|
| 125 | <para><command>aplay</command> should identify the file as
|
---|
[402da65] | 126 | <quote>Signed 16 bit Little Endian, Rate 16000 Hz, Stereo</quote>, and you
|
---|
| 127 | should hear some piano notes.</para>
|
---|
[92de4f24] | 128 |
|
---|
| 129 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 130 |
|
---|
| 131 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 132 |
|
---|
| 133 | </sect2>
|
---|
| 134 |
|
---|
| 135 | <sect2 role="commands">
|
---|
| 136 | <title>Command Explanations</title>
|
---|
| 137 |
|
---|
[c3cb9d7] | 138 | <!-- <para><command>./bootstrap</command>: This command runs GNU Autotools
|
---|
[402da65] | 139 | to create the <command>configure</command> script and other
|
---|
[c3cb9d7] | 140 | required build files.</para> -->
|
---|
[92de4f24] | 141 |
|
---|
[38489d2e] | 142 | <para>
|
---|
| 143 | <command>sed -i ...</command>: First command fixes autotools scripts to
|
---|
| 144 | be compatible with latest version of <application>Automake</application>
|
---|
| 145 | and second command fixes manual page install location.
|
---|
| 146 | </para>
|
---|
| 147 |
|
---|
[c8bb20a8] | 148 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 149 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 150 |
|
---|
[92de4f24] | 151 | <para><option>--with-drm</option>: This option is supposed to enable
|
---|
| 152 | support for decoding
|
---|
| 153 | <ulink url="http://www.drm.org/">Digital Radio Mondiale</ulink>, but
|
---|
| 154 | actually breaks the base functionality of the package (e.g., the resulting
|
---|
| 155 | <command>faad</command> program cannot decode the sample AAC file
|
---|
| 156 | linked above). Don't use it.</para>
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
| 159 | <sect2 role="content">
|
---|
| 160 | <title>Contents</title>
|
---|
| 161 |
|
---|
| 162 | <segmentedlist>
|
---|
| 163 | <segtitle>Installed Program</segtitle>
|
---|
[402da65] | 164 | <segtitle>Installed Library</segtitle>
|
---|
| 165 | <segtitle>Installed Directories</segtitle>
|
---|
[92de4f24] | 166 |
|
---|
| 167 | <seglistitem>
|
---|
| 168 | <seg>faad</seg>
|
---|
[c8bb20a8] | 169 | <seg>libfaad.so</seg>
|
---|
[402da65] | 170 | <seg>None</seg>
|
---|
[92de4f24] | 171 | </seglistitem>
|
---|
| 172 | </segmentedlist>
|
---|
| 173 |
|
---|
| 174 | <variablelist>
|
---|
| 175 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 176 | <?dbfo list-presentation="list"?>
|
---|
| 177 | <?dbhtml list-presentation="table"?>
|
---|
| 178 |
|
---|
| 179 | <varlistentry id="faad-prog">
|
---|
| 180 | <term><command>faad</command></term>
|
---|
| 181 | <listitem>
|
---|
| 182 | <para>is a command-line utility for decoding AAC and MP4 files.</para>
|
---|
| 183 | <indexterm zone="faad2 faad-prog">
|
---|
| 184 | <primary sortas="b-faad">faad</primary>
|
---|
| 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | <varlistentry id="libfaad">
|
---|
[c8bb20a8] | 190 | <term><filename class='libraryfile'>libfaad.so</filename></term>
|
---|
[92de4f24] | 191 | <listitem>
|
---|
[402da65] | 192 | <para>contains functions for decoding AAC streams.</para>
|
---|
[92de4f24] | 193 | <indexterm zone="faad2 libfaad">
|
---|
[c8bb20a8] | 194 | <primary sortas="c-libfaad">libfaad.so</primary>
|
---|
[92de4f24] | 195 | </indexterm>
|
---|
| 196 | </listitem>
|
---|
| 197 | </varlistentry>
|
---|
| 198 |
|
---|
| 199 | </variablelist>
|
---|
| 200 |
|
---|
| 201 | </sect2>
|
---|
| 202 |
|
---|
| 203 | </sect1>
|
---|