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 |
|
---|
7 | <!ENTITY liba52-download-http
|
---|
8 | "http://liba52.sourceforge.net/files/a52dec-&liba52-version;.tar.gz">
|
---|
9 | <!ENTITY liba52-download-ftp " ">
|
---|
10 | <!ENTITY liba52-md5sum "caa9f5bc44232dc8aeea773fea56be80">
|
---|
11 | <!ENTITY liba52-size "236 KB">
|
---|
12 | <!ENTITY liba52-buildsize "2.5 MB">
|
---|
13 | <!ENTITY liba52-time "less than 0.1 SBU">
|
---|
14 | ]>
|
---|
15 |
|
---|
16 | <sect1 id="liba52" xreflabel="liba52-&liba52-version;">
|
---|
17 | <?dbhtml filename="liba52.html"?>
|
---|
18 |
|
---|
19 | <sect1info>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Liba52-&liba52-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="liba52">
|
---|
26 | <primary sortas="a-Liba52">Liba52</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Liba52</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | <application>liba52</application> is a free library for decoding
|
---|
34 | ATSC A/52 (also known as AC-3) streams. The A/52 standard is used
|
---|
35 | in a variety of applications, including digital television and DVD.
|
---|
36 | </para>
|
---|
37 |
|
---|
38 | &lfs110_checked;
|
---|
39 |
|
---|
40 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
41 | <itemizedlist spacing="compact">
|
---|
42 | <listitem>
|
---|
43 | <para>
|
---|
44 | Download (HTTP): <ulink url="&liba52-download-http;"/>
|
---|
45 | </para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>
|
---|
49 | Download (FTP): <ulink url="&liba52-download-ftp;"/>
|
---|
50 | </para>
|
---|
51 | </listitem>
|
---|
52 | <listitem>
|
---|
53 | <para>
|
---|
54 | Download MD5 sum: &liba52-md5sum;
|
---|
55 | </para>
|
---|
56 | </listitem>
|
---|
57 | <listitem>
|
---|
58 | <para>
|
---|
59 | Download size: &liba52-size;
|
---|
60 | </para>
|
---|
61 | </listitem>
|
---|
62 | <listitem>
|
---|
63 | <para>
|
---|
64 | Estimated disk space required: &liba52-buildsize;
|
---|
65 | </para>
|
---|
66 | </listitem>
|
---|
67 | <listitem>
|
---|
68 | <para>
|
---|
69 | Estimated build time: &liba52-time;
|
---|
70 | </para>
|
---|
71 | </listitem>
|
---|
72 | </itemizedlist>
|
---|
73 |
|
---|
74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
75 | <para role="optional">
|
---|
76 | <ulink url="http://cr.yp.to/djbfft.html">djbfft</ulink>
|
---|
77 | </para>
|
---|
78 |
|
---|
79 | <para condition="html" role="usernotes">User Notes:
|
---|
80 | <ulink url="&blfs-wiki;/liba52"/></para>
|
---|
81 | </sect2>
|
---|
82 |
|
---|
83 | <sect2 role="installation">
|
---|
84 | <title>Installation of Liba52</title>
|
---|
85 |
|
---|
86 | <para>
|
---|
87 | Install <application>liba52</application> by running the
|
---|
88 | following commands:
|
---|
89 | </para>
|
---|
90 |
|
---|
91 | <screen><userinput>./configure --prefix=/usr \
|
---|
92 | --mandir=/usr/share/man \
|
---|
93 | --enable-shared \
|
---|
94 | --disable-static \
|
---|
95 | CFLAGS="${CFLAGS:--g -O2} $([ $(uname -m) = x86_64 ] && echo -fPIC)" &&
|
---|
96 | make</userinput></screen>
|
---|
97 |
|
---|
98 | <para>
|
---|
99 | To test the results, issue: <command>make check</command>.
|
---|
100 | </para>
|
---|
101 |
|
---|
102 | <para>
|
---|
103 | Now, as the <systemitem class="username">root</systemitem>
|
---|
104 | user:
|
---|
105 | </para>
|
---|
106 |
|
---|
107 | <screen role="root"><userinput>make install &&
|
---|
108 | cp liba52/a52_internal.h /usr/include/a52dec &&
|
---|
109 | install -v -m644 -D doc/liba52.txt \
|
---|
110 | /usr/share/doc/liba52-&liba52-version;/liba52.txt</userinput></screen>
|
---|
111 | </sect2>
|
---|
112 |
|
---|
113 | <sect2 role="commands">
|
---|
114 | <title>Command Explanations</title>
|
---|
115 |
|
---|
116 | <para>
|
---|
117 | <parameter>CFLAGS="-g -O2 ...</parameter>: This sets CFLAGS to -g -O2
|
---|
118 | (which is the default) but then on x86_64 adds -fPIC. This is needed to
|
---|
119 | compile <application>liba52</application> on x86_64.
|
---|
120 | </para>
|
---|
121 |
|
---|
122 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
123 | href="../../xincludes/static-libraries.xml"/>
|
---|
124 |
|
---|
125 | <para>
|
---|
126 | <command>cp liba52/a52_internal.h ...</command>: Copying this header
|
---|
127 | file into /usr/include/a52dec allows some other programs (such as
|
---|
128 | <application>xine-lib</application>) to compile and link against a system
|
---|
129 | installed <application>liba52</application>.
|
---|
130 | </para>
|
---|
131 | </sect2>
|
---|
132 |
|
---|
133 | <sect2 role="content">
|
---|
134 | <title>Contents</title>
|
---|
135 |
|
---|
136 | <segmentedlist>
|
---|
137 | <segtitle>Installed Programs</segtitle>
|
---|
138 | <segtitle>Installed Library</segtitle>
|
---|
139 | <segtitle>Installed Directories</segtitle>
|
---|
140 |
|
---|
141 | <seglistitem>
|
---|
142 | <seg>a52dec and extract_a52</seg>
|
---|
143 | <seg>liba52.so</seg>
|
---|
144 | <seg>/usr/include/a52dec and
|
---|
145 | /usr/share/doc/liba52-&liba52-version;</seg>
|
---|
146 | </seglistitem>
|
---|
147 | </segmentedlist>
|
---|
148 |
|
---|
149 | <variablelist>
|
---|
150 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
151 | <?dbfo list-presentation="list"?>
|
---|
152 | <?dbhtml list-presentation="table"?>
|
---|
153 |
|
---|
154 | <varlistentry id="a52dec">
|
---|
155 | <term><command>a52dec</command></term>
|
---|
156 | <listitem>
|
---|
157 | <para>
|
---|
158 | plays ATSC A/52 audio streams
|
---|
159 | </para>
|
---|
160 | <indexterm zone="liba52 a52dec">
|
---|
161 | <primary sortas="b-a52dec">a52dec</primary>
|
---|
162 | </indexterm>
|
---|
163 | </listitem>
|
---|
164 | </varlistentry>
|
---|
165 |
|
---|
166 | <varlistentry id="extract_a52">
|
---|
167 | <term><command>extract_a52</command></term>
|
---|
168 | <listitem>
|
---|
169 | <para>
|
---|
170 | extracts ATSC A/52 audio from an MPEG stream
|
---|
171 | </para>
|
---|
172 | <indexterm zone="liba52 extract_a52">
|
---|
173 | <primary sortas="b-extract_a52">extract_a52</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="liba52-lib">
|
---|
179 | <term><filename class="libraryfile">liba52.so</filename></term>
|
---|
180 | <listitem>
|
---|
181 | <para>
|
---|
182 | provides functions for the programs dealing with ATSC A/52 streams
|
---|
183 | </para>
|
---|
184 | <indexterm zone="liba52 liba52-lib">
|
---|
185 | <primary sortas="c-liba52">liba52.so</primary>
|
---|
186 | </indexterm>
|
---|
187 | </listitem>
|
---|
188 | </varlistentry>
|
---|
189 | </variablelist>
|
---|
190 | </sect2>
|
---|
191 |
|
---|
192 | </sect1>
|
---|