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 lame-download-http "&sourceforge-dl;/lame/lame-&lame-version;.tar.gz">
|
---|
8 | <!ENTITY lame-download-ftp " ">
|
---|
9 | <!ENTITY lame-md5sum "83e260acbe4389b54fe08e0bdbf7cddb">
|
---|
10 | <!ENTITY lame-size "1.5 MB">
|
---|
11 | <!ENTITY lame-buildsize "9.7 MB">
|
---|
12 | <!ENTITY lame-time "0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="lame" xreflabel="LAME-&lame-version;">
|
---|
16 | <?dbhtml filename="lame.html"?>
|
---|
17 |
|
---|
18 |
|
---|
19 | <title>LAME-&lame-version;</title>
|
---|
20 |
|
---|
21 | <indexterm zone="lame">
|
---|
22 | <primary sortas="a-LAME">LAME</primary>
|
---|
23 | </indexterm>
|
---|
24 |
|
---|
25 | <sect2 role="package">
|
---|
26 | <title>Introduction to LAME</title>
|
---|
27 |
|
---|
28 | <para>
|
---|
29 | The <application>LAME</application> package contains an MP3
|
---|
30 | encoder and optionally, an MP3 frame analyzer. This is useful
|
---|
31 | for creating and analyzing compressed audio files.
|
---|
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="&lame-download-http;"/>
|
---|
41 | </para>
|
---|
42 | </listitem>
|
---|
43 | <listitem>
|
---|
44 | <para>
|
---|
45 | Download (FTP): <ulink url="&lame-download-ftp;"/>
|
---|
46 | </para>
|
---|
47 | </listitem>
|
---|
48 | <listitem>
|
---|
49 | <para>
|
---|
50 | Download MD5 sum: &lame-md5sum;
|
---|
51 | </para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>
|
---|
55 | Download size: &lame-size;
|
---|
56 | </para>
|
---|
57 | </listitem>
|
---|
58 | <listitem>
|
---|
59 | <para>
|
---|
60 | Estimated disk space required: &lame-buildsize;
|
---|
61 | </para>
|
---|
62 | </listitem>
|
---|
63 | <listitem>
|
---|
64 | <para>
|
---|
65 | Estimated build time: &lame-time;
|
---|
66 | </para>
|
---|
67 | </listitem>
|
---|
68 | </itemizedlist>
|
---|
69 |
|
---|
70 | <bridgehead renderas="sect3">LAME Dependencies</bridgehead>
|
---|
71 |
|
---|
72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
73 | <para role="optional">
|
---|
74 | <ulink url="https://dmalloc.com/">Dmalloc</ulink>,
|
---|
75 | <ulink url="https://linux.softpedia.com/get/Programming/Debuggers/Electric-Fence-3305.shtml/">Electric Fence</ulink>,
|
---|
76 | <xref linkend="libsndfile"/> and
|
---|
77 | <xref linkend="nasm"/>
|
---|
78 | </para>
|
---|
79 |
|
---|
80 | <para condition="html" role="usernotes">Editor Notes:
|
---|
81 | <ulink url="&blfs-wiki;/lame"/>
|
---|
82 | </para>
|
---|
83 | </sect2>
|
---|
84 |
|
---|
85 | <sect2 role="installation">
|
---|
86 | <title>Installation of LAME</title>
|
---|
87 |
|
---|
88 | <!-- Taken from Fedora -->
|
---|
89 | <para>
|
---|
90 | Prevent the source code directory from being mistakenly hardcoded as a
|
---|
91 | shared library search path in the installed programs:
|
---|
92 | </para>
|
---|
93 |
|
---|
94 | <screen><userinput>sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure</userinput></screen>
|
---|
95 |
|
---|
96 | <para>
|
---|
97 | Install <application>LAME</application> by running
|
---|
98 | the following commands:
|
---|
99 | </para>
|
---|
100 |
|
---|
101 | <screen><userinput>./configure --prefix=/usr --enable-mp3rtp --disable-static &&
|
---|
102 | make</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | To test the results, issue:
|
---|
106 | <command>LD_LIBRARY_PATH=libmp3lame/.libs make test</command>.
|
---|
107 | </para>
|
---|
108 |
|
---|
109 | <para>
|
---|
110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
111 | </para>
|
---|
112 |
|
---|
113 | <screen role="root"><userinput>make pkghtmldir=/usr/share/doc/lame-&lame-version; install</userinput></screen>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="commands">
|
---|
118 | <title>Command Explanations</title>
|
---|
119 |
|
---|
120 | <para>
|
---|
121 | <parameter>--enable-mp3rtp</parameter>: This switch enables building
|
---|
122 | the encode-to-RTP program.
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
126 | href="../../xincludes/static-libraries.xml"/>
|
---|
127 |
|
---|
128 | <para>
|
---|
129 | <option>--enable-nasm</option>: This option enables the use of
|
---|
130 | <xref linkend="nasm"/> to compile optimized assembly routines for
|
---|
131 | 32-bit x86. Note that this has no effect on x86_64.
|
---|
132 | </para>
|
---|
133 |
|
---|
134 | </sect2>
|
---|
135 |
|
---|
136 | <sect2 role="content">
|
---|
137 | <title>Contents</title>
|
---|
138 |
|
---|
139 | <segmentedlist>
|
---|
140 | <segtitle>Installed Programs</segtitle>
|
---|
141 | <segtitle>Installed Library</segtitle>
|
---|
142 | <segtitle>Installed Directories</segtitle>
|
---|
143 |
|
---|
144 | <seglistitem>
|
---|
145 | <seg>
|
---|
146 | lame and mp3rtp
|
---|
147 | </seg>
|
---|
148 | <seg>
|
---|
149 | libmp3lame.so
|
---|
150 | </seg>
|
---|
151 | <seg>
|
---|
152 | /usr/include/lame and
|
---|
153 | /usr/share/doc/lame-&lame-version;
|
---|
154 | </seg>
|
---|
155 | </seglistitem>
|
---|
156 | </segmentedlist>
|
---|
157 |
|
---|
158 | <variablelist>
|
---|
159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
160 | <?dbfo list-presentation="list"?>
|
---|
161 | <?dbhtml list-presentation="table"?>
|
---|
162 |
|
---|
163 | <varlistentry id="lame-prog">
|
---|
164 | <term><command>lame</command></term>
|
---|
165 | <listitem>
|
---|
166 | <para>
|
---|
167 | creates MP3 audio files from raw
|
---|
168 | PCM or <filename>.wav</filename> data
|
---|
169 | </para>
|
---|
170 | <indexterm zone="lame lame-prog">
|
---|
171 | <primary sortas="b-lame">lame</primary>
|
---|
172 | </indexterm>
|
---|
173 | </listitem>
|
---|
174 | </varlistentry>
|
---|
175 |
|
---|
176 | <varlistentry id="mp3rtp">
|
---|
177 | <term><command>mp3rtp</command></term>
|
---|
178 | <listitem>
|
---|
179 | <para>
|
---|
180 | is used to encode MP3 with RTP streaming of the output
|
---|
181 | </para>
|
---|
182 | <indexterm zone="lame mp3rtp">
|
---|
183 | <primary sortas="b-mp3rtp">mp3rtp</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | <varlistentry id="libmp3lame">
|
---|
189 | <term><filename class="libraryfile">libmp3lame.so</filename></term>
|
---|
190 | <listitem>
|
---|
191 | <para>
|
---|
192 | provides the functions necessary to convert raw PCM and WAV files
|
---|
193 | to MP3 files
|
---|
194 | </para>
|
---|
195 | <indexterm zone="lame libmp3lame">
|
---|
196 | <primary sortas="c-libmp3lame">libmp3lame.so</primary>
|
---|
197 | </indexterm>
|
---|
198 | </listitem>
|
---|
199 | </varlistentry>
|
---|
200 |
|
---|
201 | </variablelist>
|
---|
202 |
|
---|
203 | </sect2>
|
---|
204 |
|
---|
205 | </sect1>
|
---|