[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[8d8631b5] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[911d4c74] | 6 |
|
---|
[8dfc5c3] | 7 | <!ENTITY lame-download-http "&sourceforge-dl;/lame/lame-&lame-version;.tar.gz">
|
---|
[8d8631b5] | 8 | <!ENTITY lame-download-ftp " ">
|
---|
[934fac6] | 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">
|
---|
[8d8631b5] | 13 | ]>
|
---|
| 14 |
|
---|
[5db3785e] | 15 | <sect1 id="lame" xreflabel="LAME-&lame-version;">
|
---|
[15b9d663] | 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 |
|
---|
[c627795] | 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>
|
---|
[15b9d663] | 33 |
|
---|
[5efdd78] | 34 | &lfs122_checked;
|
---|
[e355f3c6] | 35 |
|
---|
[15b9d663] | 36 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 37 | <itemizedlist spacing="compact">
|
---|
| 38 | <listitem>
|
---|
[c627795] | 39 | <para>
|
---|
| 40 | Download (HTTP): <ulink url="&lame-download-http;"/>
|
---|
| 41 | </para>
|
---|
[15b9d663] | 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
[c627795] | 44 | <para>
|
---|
| 45 | Download (FTP): <ulink url="&lame-download-ftp;"/>
|
---|
| 46 | </para>
|
---|
[15b9d663] | 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
[c627795] | 49 | <para>
|
---|
| 50 | Download MD5 sum: &lame-md5sum;
|
---|
| 51 | </para>
|
---|
[15b9d663] | 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
[c627795] | 54 | <para>
|
---|
| 55 | Download size: &lame-size;
|
---|
| 56 | </para>
|
---|
[15b9d663] | 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
[c627795] | 59 | <para>
|
---|
| 60 | Estimated disk space required: &lame-buildsize;
|
---|
| 61 | </para>
|
---|
[15b9d663] | 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
[c627795] | 64 | <para>
|
---|
| 65 | Estimated build time: &lame-time;
|
---|
| 66 | </para>
|
---|
[15b9d663] | 67 | </listitem>
|
---|
| 68 | </itemizedlist>
|
---|
| 69 |
|
---|
| 70 | <bridgehead renderas="sect3">LAME Dependencies</bridgehead>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[35bf1ea] | 73 | <para role="optional">
|
---|
[ad89b1a1] | 74 | <ulink url="https://dmalloc.com/">Dmalloc</ulink>,
|
---|
[75b1a338] | 75 | <ulink url="https://linux.softpedia.com/get/Programming/Debuggers/Electric-Fence-3305.shtml/">Electric Fence</ulink>,
|
---|
[c627795] | 76 | <xref linkend="libsndfile"/> and
|
---|
[efdd9de] | 77 | <xref linkend="nasm"/>
|
---|
[35bf1ea] | 78 | </para>
|
---|
[15b9d663] | 79 |
|
---|
[42ddc30] | 80 | <para condition="html" role="usernotes">Editor Notes:
|
---|
[c627795] | 81 | <ulink url="&blfs-wiki;/lame"/>
|
---|
| 82 | </para>
|
---|
[15b9d663] | 83 | </sect2>
|
---|
| 84 |
|
---|
| 85 | <sect2 role="installation">
|
---|
| 86 | <title>Installation of LAME</title>
|
---|
| 87 |
|
---|
[f86fbfb] | 88 | <!-- Taken from Fedora -->
|
---|
| 89 | <para>
|
---|
[d7e3108] | 90 | Prevent the source code directory from being mistakenly hardcoded as a
|
---|
[f86fbfb] | 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 |
|
---|
[c627795] | 96 | <para>
|
---|
| 97 | Install <application>LAME</application> by running
|
---|
| 98 | the following commands:
|
---|
| 99 | </para>
|
---|
[15b9d663] | 100 |
|
---|
[f5084dd] | 101 | <screen><userinput>./configure --prefix=/usr --enable-mp3rtp --disable-static &&
|
---|
[15b9d663] | 102 | make</userinput></screen>
|
---|
| 103 |
|
---|
[c627795] | 104 | <para>
|
---|
[b21e7e0] | 105 | To test the results, issue:
|
---|
| 106 | <command>LD_LIBRARY_PATH=libmp3lame/.libs make test</command>.
|
---|
[c627795] | 107 | </para>
|
---|
[b61b128] | 108 |
|
---|
[c627795] | 109 | <para>
|
---|
| 110 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 111 | </para>
|
---|
[15b9d663] | 112 |
|
---|
[24f2d4b] | 113 | <screen role="root"><userinput>make pkghtmldir=/usr/share/doc/lame-&lame-version; install</userinput></screen>
|
---|
[15b9d663] | 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="commands">
|
---|
| 118 | <title>Command Explanations</title>
|
---|
| 119 |
|
---|
[c627795] | 120 | <para>
|
---|
[51c9a2b] | 121 | <parameter>--enable-mp3rtp</parameter>: This switch enables building
|
---|
| 122 | the encode-to-RTP program.
|
---|
[c627795] | 123 | </para>
|
---|
[1ade38d] | 124 |
|
---|
[f5084dd] | 125 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 126 | href="../../xincludes/static-libraries.xml"/>
|
---|
[c627795] | 127 |
|
---|
| 128 | <para>
|
---|
[d7e3108] | 129 | <option>--enable-nasm</option>: This option enables the use of
|
---|
[20bace3] | 130 | <xref linkend="nasm"/> to compile optimized assembly routines for
|
---|
[d7e3108] | 131 | 32-bit x86. Note that this has no effect on x86_64.
|
---|
[c627795] | 132 | </para>
|
---|
| 133 |
|
---|
[15b9d663] | 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>
|
---|
[c627795] | 145 | <seg>
|
---|
| 146 | lame and mp3rtp
|
---|
| 147 | </seg>
|
---|
| 148 | <seg>
|
---|
| 149 | libmp3lame.so
|
---|
| 150 | </seg>
|
---|
| 151 | <seg>
|
---|
[755bb92] | 152 | /usr/include/lame and
|
---|
| 153 | /usr/share/doc/lame-&lame-version;
|
---|
[c627795] | 154 | </seg>
|
---|
[15b9d663] | 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>
|
---|
[c627795] | 166 | <para>
|
---|
| 167 | creates MP3 audio files from raw
|
---|
[4c24eb0a] | 168 | PCM or <filename>.wav</filename> data
|
---|
[c627795] | 169 | </para>
|
---|
[15b9d663] | 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>
|
---|
[c627795] | 179 | <para>
|
---|
[4c24eb0a] | 180 | is used to encode MP3 with RTP streaming of the output
|
---|
[c627795] | 181 | </para>
|
---|
[15b9d663] | 182 | <indexterm zone="lame mp3rtp">
|
---|
| 183 | <primary sortas="b-mp3rtp">mp3rtp</primary>
|
---|
| 184 | </indexterm>
|
---|
| 185 | </listitem>
|
---|
| 186 | </varlistentry>
|
---|
| 187 |
|
---|
| 188 | <varlistentry id="libmp3lame">
|
---|
[755bb92] | 189 | <term><filename class="libraryfile">libmp3lame.so</filename></term>
|
---|
[15b9d663] | 190 | <listitem>
|
---|
[c627795] | 191 | <para>
|
---|
[d7e3108] | 192 | provides the functions necessary to convert raw PCM and WAV files
|
---|
| 193 | to MP3 files
|
---|
[c627795] | 194 | </para>
|
---|
[15b9d663] | 195 | <indexterm zone="lame libmp3lame">
|
---|
[c627795] | 196 | <primary sortas="c-libmp3lame">libmp3lame.so</primary>
|
---|
[15b9d663] | 197 | </indexterm>
|
---|
| 198 | </listitem>
|
---|
| 199 | </varlistentry>
|
---|
| 200 |
|
---|
| 201 | </variablelist>
|
---|
| 202 |
|
---|
| 203 | </sect2>
|
---|
[f45b1953] | 204 |
|
---|
| 205 | </sect1>
|
---|