[642723b] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[642723b] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[b3067411] | 7 | <!ENTITY libmpeg2-download-http "http://libmpeg2.sourceforge.net/files/libmpeg2-&libmpeg2-version;.tar.gz">
|
---|
[c7ed4f4d] | 8 | <!ENTITY libmpeg2-download-ftp "&gentoo-ftp-repo;/libmpeg2-&libmpeg2-version;.tar.gz">
|
---|
[b3067411] | 9 | <!ENTITY libmpeg2-md5sum "0f92c7454e58379b4a5a378485bbd8ef">
|
---|
| 10 | <!ENTITY libmpeg2-size "513 KB">
|
---|
| 11 | <!ENTITY libmpeg2-buildsize "6 MB">
|
---|
| 12 | <!ENTITY libmpeg2-time "0.1 SBU">
|
---|
[642723b] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="libmpeg2" xreflabel="libmpeg2-&libmpeg2-version;">
|
---|
| 16 | <?dbhtml filename="libmpeg2.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>libmpeg2-&libmpeg2-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="libmpeg2">
|
---|
| 26 | <primary sortas="a-libmpeg2">libmpeg2</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to libmpeg2</title>
|
---|
| 31 |
|
---|
| 32 | <para>The <application>libmpeg2</application> package contains a library
|
---|
| 33 | for decoding MPEG-2 and MPEG-1 video streams. The library is able to decode
|
---|
| 34 | all MPEG streams that conform to certain restrictions: <quote>constrained
|
---|
| 35 | parameters</quote> for MPEG-1, and <quote>main profile</quote> for MPEG-2.
|
---|
| 36 | This is useful for programs and applications needing to decode MPEG-2 and
|
---|
| 37 | MPEG-1 video streams.</para>
|
---|
| 38 |
|
---|
[7a34460d] | 39 | &lfs79_checked;
|
---|
[7f4cdbc0] | 40 |
|
---|
[642723b] | 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (HTTP): <ulink url="&libmpeg2-download-http;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download (FTP): <ulink url="&libmpeg2-download-ftp;"/></para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download MD5 sum: &libmpeg2-md5sum;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download size: &libmpeg2-size;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated disk space required: &libmpeg2-buildsize;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Estimated build time: &libmpeg2-time;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | </itemizedlist>
|
---|
| 62 |
|
---|
| 63 | <bridgehead renderas="sect3">libmpeg2 Dependencies</bridgehead>
|
---|
| 64 |
|
---|
| 65 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[e77976f] | 66 | <para role="optional"><xref linkend="x-window-system"/> and
|
---|
| 67 | <xref linkend="sdl"/></para>
|
---|
[642723b] | 68 |
|
---|
[0e2aa08] | 69 | <para condition="html" role="usernotes">User Notes:
|
---|
| 70 | <ulink url="&blfs-wiki;/libmpeg2"/></para>
|
---|
| 71 |
|
---|
[642723b] | 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 role="installation">
|
---|
| 75 | <title>Installation of libmpeg2</title>
|
---|
| 76 |
|
---|
| 77 | <para>Install <application>libmpeg2</application> by running the following
|
---|
| 78 | commands:</para>
|
---|
| 79 |
|
---|
[d5e3ba1] | 80 | <screen><userinput>sed -i 's/static const/static/' libmpeg2/idct_mmx.c &&
|
---|
[41d241e] | 81 |
|
---|
| 82 | ./configure --prefix=/usr \
|
---|
| 83 | --enable-shared \
|
---|
| 84 | --disable-static &&
|
---|
[642723b] | 85 | make</userinput></screen>
|
---|
| 86 |
|
---|
| 87 | <para>To test the results, issue: <command>make check</command>. To
|
---|
| 88 | perform a more comprehensive regression test, see the file
|
---|
| 89 | <filename>test/README</filename> in the source tree.</para>
|
---|
| 90 |
|
---|
| 91 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 92 |
|
---|
| 93 | <screen role="root"><userinput>make install &&
|
---|
[41d241e] | 94 |
|
---|
[60ac542] | 95 | install -v -m755 -d /usr/share/doc/mpeg2dec-&libmpeg2-version; &&
|
---|
[642723b] | 96 | install -v -m644 README doc/libmpeg2.txt \
|
---|
[60ac542] | 97 | /usr/share/doc/mpeg2dec-&libmpeg2-version;</userinput></screen>
|
---|
[642723b] | 98 |
|
---|
| 99 | </sect2>
|
---|
| 100 |
|
---|
| 101 | <sect2 role="commands">
|
---|
| 102 | <title>Command Explanations</title>
|
---|
| 103 |
|
---|
[d5e3ba1] | 104 | <para><command>sed -i ...</command>: This <command>sed</command> fixes
|
---|
| 105 | problems with recent GCC compilers.</para>
|
---|
[41d241e] | 106 |
|
---|
| 107 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 108 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 109 |
|
---|
[642723b] | 110 | </sect2>
|
---|
| 111 |
|
---|
| 112 | <sect2 role="content">
|
---|
| 113 | <title>Contents</title>
|
---|
| 114 |
|
---|
| 115 | <segmentedlist>
|
---|
| 116 | <segtitle>Installed Programs</segtitle>
|
---|
| 117 | <segtitle>Installed Libraries</segtitle>
|
---|
| 118 | <segtitle>Installed Directories</segtitle>
|
---|
| 119 |
|
---|
| 120 | <seglistitem>
|
---|
| 121 | <seg>corrupt_mpeg2, extract_mpeg2 and mpeg2dec</seg>
|
---|
[41d241e] | 122 | <seg>libmpeg2.so and libmpeg2convert.so</seg>
|
---|
| 123 | <seg>
|
---|
| 124 | /usr/include/mpeg2dec and
|
---|
| 125 | /usr/share/doc/mpeg2dec-&libmpeg2-version;
|
---|
| 126 | </seg>
|
---|
[642723b] | 127 | </seglistitem>
|
---|
| 128 | </segmentedlist>
|
---|
| 129 |
|
---|
| 130 | <variablelist>
|
---|
| 131 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 132 | <?dbfo list-presentation="list"?>
|
---|
| 133 | <?dbhtml list-presentation="table"?>
|
---|
| 134 |
|
---|
[e5e7a1d] | 135 | <!--
|
---|
| 136 | <varlistentry id="corrupt_mpeg2">
|
---|
| 137 | <term><command>corrupt_mpeg2</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>
|
---|
| 140 |
|
---|
| 141 | </para>
|
---|
| 142 | <indexterm zone="libmpeg2 corrupt_mpeg2">
|
---|
| 143 | <primary sortas="b-corrupt_mpeg2">corrupt_mpeg2</primary>
|
---|
| 144 | </indexterm>
|
---|
| 145 | </listitem>
|
---|
| 146 | </varlistentry>
|
---|
| 147 | -->
|
---|
[642723b] | 148 | <varlistentry id="extract_mpeg2">
|
---|
| 149 | <term><command>extract_mpeg2</command></term>
|
---|
| 150 | <listitem>
|
---|
| 151 | <para>extracts MPEG video streams from a multiplexed stream.</para>
|
---|
| 152 | <indexterm zone="libmpeg2 extract_mpeg2">
|
---|
| 153 | <primary sortas="b-extract_mpeg2">extract_mpeg2</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | <varlistentry id="mpeg2dec">
|
---|
| 159 | <term><command>mpeg2dec</command></term>
|
---|
| 160 | <listitem>
|
---|
| 161 | <para>decodes MPEG1 and MPEG2 video streams.</para>
|
---|
| 162 | <indexterm zone="libmpeg2 mpeg2dec">
|
---|
| 163 | <primary sortas="b-mpeg2dec">mpeg2dec</primary>
|
---|
| 164 | </indexterm>
|
---|
| 165 | </listitem>
|
---|
| 166 | </varlistentry>
|
---|
| 167 |
|
---|
| 168 | <varlistentry id="libmpeg2-lib">
|
---|
[27747668] | 169 | <term><filename class='libraryfile'>libmpeg2.so</filename></term>
|
---|
[642723b] | 170 | <listitem>
|
---|
| 171 | <para>contains API functions used to decode MPEG video streams.</para>
|
---|
| 172 | <indexterm zone="libmpeg2 libmpeg2-lib">
|
---|
[27747668] | 173 | <primary sortas="c-libmpeg2">libmpeg2.so</primary>
|
---|
[642723b] | 174 | </indexterm>
|
---|
| 175 | </listitem>
|
---|
| 176 | </varlistentry>
|
---|
| 177 |
|
---|
| 178 | <varlistentry id="libmpeg2convert">
|
---|
[27747668] | 179 | <term><filename class='libraryfile'>libmpeg2convert.so</filename></term>
|
---|
[642723b] | 180 | <listitem>
|
---|
| 181 | <para>contains API functions used for color conversions of MPEG
|
---|
| 182 | video streams.</para>
|
---|
| 183 | <indexterm zone="libmpeg2 libmpeg2convert">
|
---|
[27747668] | 184 | <primary sortas="c-libmpeg2convert">libmpeg2convert.so</primary>
|
---|
[642723b] | 185 | </indexterm>
|
---|
| 186 | </listitem>
|
---|
| 187 | </varlistentry>
|
---|
| 188 |
|
---|
| 189 | </variablelist>
|
---|
| 190 |
|
---|
| 191 | </sect2>
|
---|
| 192 |
|
---|
| 193 | </sect1>
|
---|