1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
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 |
|
---|
7 | <!ENTITY faad2-download-http "https://github.com/knik0/faad2/archive/&faad2-version;/faad2-&faad2-version;.tar.gz">
|
---|
8 | <!ENTITY faad2-download-ftp " ">
|
---|
9 | <!ENTITY faad2-md5sum "f85b2514c4fb2f87d22a3bc879d83277">
|
---|
10 | <!ENTITY faad2-size "642 KB">
|
---|
11 | <!ENTITY faad2-buildsize "9.0 MB">
|
---|
12 | <!ENTITY faad2-time "0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="faad2" xreflabel="FAAD2-&faad2-version;">
|
---|
16 | <?dbhtml filename="faad2.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>FAAD2-&faad2-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="faad2">
|
---|
22 | <primary sortas="a-faad2">faad2</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to FAAD2</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | <application>FAAD2</application> is a decoder for a lossy sound
|
---|
30 | compression scheme specified in MPEG-2 Part 7 and MPEG-4 Part 3
|
---|
31 | standards and known as Advanced Audio Coding (AAC).
|
---|
32 | </para>
|
---|
33 |
|
---|
34 | &lfs122_checked;
|
---|
35 |
|
---|
36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
37 | <itemizedlist spacing="compact">
|
---|
38 | <listitem>
|
---|
39 | <para>
|
---|
40 | Download (HTTP): <ulink url="&faad2-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&faad2-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &faad2-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &faad2-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &faad2-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &faad2-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
71 | <itemizedlist spacing="compact">
|
---|
72 | <listitem>
|
---|
73 | <para>
|
---|
74 | Sample AAC file: <ulink url="https://www.nch.com.au/acm/sample.aac"/> (7 KB)
|
---|
75 | </para>
|
---|
76 | </listitem>
|
---|
77 | </itemizedlist>
|
---|
78 |
|
---|
79 | <bridgehead renderas="sect3">FAAD2 Dependencies</bridgehead>
|
---|
80 |
|
---|
81 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
82 | <para role="required">
|
---|
83 | <xref linkend="cmake"/>
|
---|
84 | </para>
|
---|
85 |
|
---|
86 | </sect2>
|
---|
87 |
|
---|
88 | <sect2 role="installation">
|
---|
89 | <title>Installation of FAAD2</title>
|
---|
90 |
|
---|
91 | <para>
|
---|
92 | Install <application>FAAD2</application> by running the
|
---|
93 | following commands:
|
---|
94 | </para>
|
---|
95 |
|
---|
96 | <screen><userinput>mkdir build &&
|
---|
97 | cd build &&
|
---|
98 |
|
---|
99 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
100 | -D CMAKE_BUILD_TYPE=Release \
|
---|
101 | -D BUILD_SHARED_LIBS=ON \
|
---|
102 | .. &&
|
---|
103 | make</userinput></screen>
|
---|
104 |
|
---|
105 | <para>
|
---|
106 | This package does not come with a test suite. However, basic
|
---|
107 | functionality can be tested by decoding the sample AAC file:
|
---|
108 | </para>
|
---|
109 |
|
---|
110 | <screen remap="test"><userinput>./faad -o sample.wav ../../sample.aac</userinput></screen>
|
---|
111 |
|
---|
112 | <para>
|
---|
113 | This should display a copyright message and the following
|
---|
114 | information about the sample file:
|
---|
115 | </para>
|
---|
116 |
|
---|
117 | <literallayout><computeroutput>sample.aac file info:
|
---|
118 | ADTS, 4.608 sec, 13 kbps, 16000 Hz
|
---|
119 |
|
---|
120 | ---------------------
|
---|
121 | | Config: 2 Ch |
|
---|
122 | ---------------------
|
---|
123 | | Ch | Position |
|
---|
124 | ---------------------
|
---|
125 | | 00 | Left front |
|
---|
126 | | 01 | Right front |
|
---|
127 | ---------------------</computeroutput></literallayout>
|
---|
128 |
|
---|
129 | <para>
|
---|
130 | Now play the result (requires the <command>aplay</command> program
|
---|
131 | from the <xref linkend="alsa-utils"/> package):
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | <screen remap="test"><userinput>aplay sample.wav</userinput></screen>
|
---|
135 |
|
---|
136 | <para>
|
---|
137 | <command>aplay</command> should identify the file as
|
---|
138 | <computeroutput>Signed 16 bit Little Endian, Rate 16000 Hz, Stereo</computeroutput>, and
|
---|
139 | you should hear some piano notes.
|
---|
140 | </para>
|
---|
141 |
|
---|
142 | <para>
|
---|
143 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
144 | </para>
|
---|
145 |
|
---|
146 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | <!--
|
---|
151 | <sect2 role="commands">
|
---|
152 | <title>Command Explanations</title>
|
---|
153 |
|
---|
154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
155 | href="../../xincludes/static-libraries.xml"/>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 | -->
|
---|
159 |
|
---|
160 | <sect2 role="content">
|
---|
161 | <title>Contents</title>
|
---|
162 |
|
---|
163 | <segmentedlist>
|
---|
164 | <segtitle>Installed Program</segtitle>
|
---|
165 | <segtitle>Installed Library</segtitle>
|
---|
166 | <segtitle>Installed Directories</segtitle>
|
---|
167 |
|
---|
168 | <seglistitem>
|
---|
169 | <seg>faad</seg>
|
---|
170 | <seg>libfaad.so and libfaad_drm.so</seg>
|
---|
171 | <seg>None</seg>
|
---|
172 | </seglistitem>
|
---|
173 | </segmentedlist>
|
---|
174 |
|
---|
175 | <variablelist>
|
---|
176 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
177 | <?dbfo list-presentation="list"?>
|
---|
178 | <?dbhtml list-presentation="table"?>
|
---|
179 |
|
---|
180 | <varlistentry id="faad-prog">
|
---|
181 | <term><command>faad</command></term>
|
---|
182 | <listitem>
|
---|
183 | <para>
|
---|
184 | is a command-line utility for decoding AAC and MP4 files
|
---|
185 | </para>
|
---|
186 | <indexterm zone="faad2 faad-prog">
|
---|
187 | <primary sortas="b-faad">faad</primary>
|
---|
188 | </indexterm>
|
---|
189 | </listitem>
|
---|
190 | </varlistentry>
|
---|
191 |
|
---|
192 | <varlistentry id="libfaad">
|
---|
193 | <term><filename class="libraryfile">libfaad.so</filename></term>
|
---|
194 | <listitem>
|
---|
195 | <para>
|
---|
196 | contains functions for decoding AAC streams
|
---|
197 | </para>
|
---|
198 | <indexterm zone="faad2 libfaad">
|
---|
199 | <primary sortas="c-libfaad">libfaad.so</primary>
|
---|
200 | </indexterm>
|
---|
201 | </listitem>
|
---|
202 | </varlistentry>
|
---|
203 |
|
---|
204 | </variablelist>
|
---|
205 |
|
---|
206 | </sect2>
|
---|
207 |
|
---|
208 | </sect1>
|
---|