[8a1e4f4] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[01062dd] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[560e14cf] | 6 |
|
---|
[01062dd] | 7 | <!ENTITY ffmpeg-download-http "http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-&ffmpeg-version;.tar.gz">
|
---|
| 8 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
[6c0c2a83] | 9 | <!ENTITY ffmpeg-md5sum "ea5587e3c66d50b1503b82ac4179c303">
|
---|
[8a9da37] | 10 | <!ENTITY ffmpeg-size "1.6 MB">
|
---|
[b82b7f6] | 11 | <!ENTITY ffmpeg-buildsize "50 MB">
|
---|
| 12 | <!ENTITY ffmpeg-time "0.9 SBU">
|
---|
[01062dd] | 13 | ]>
|
---|
| 14 |
|
---|
[0b5a693] | 15 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
[8a1e4f4] | 16 | <?dbhtml filename="ffmpeg.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="ffmpeg">
|
---|
| 26 | <primary sortas="a-FFmpeg">FFmpeg</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to FFmpeg</title>
|
---|
| 31 |
|
---|
[f009801] | 32 | <para><application>FFmpeg</application> is a solution to record, convert and
|
---|
| 33 | stream audio and video. It is a very fast video and audio converter and it can
|
---|
| 34 | also acquire from a live audio/video source. Designed to be intuitive, the
|
---|
| 35 | command-line interface (<command>ffmpeg</command>) tries to figure out all the
|
---|
| 36 | parameters, when possible. <application>FFmpeg</application> can also convert
|
---|
| 37 | from any sample rate to any other, and resize video on the fly with a high
|
---|
| 38 | quality polyphase filter. <application>FFmpeg</application> can use a
|
---|
| 39 | video4linux compatible video source and any Open Sound System audio
|
---|
[8a1e4f4] | 40 | source.</para>
|
---|
| 41 |
|
---|
| 42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 43 | <itemizedlist spacing="compact">
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
|
---|
| 46 | </listitem>
|
---|
| 47 | <listitem>
|
---|
| 48 | <para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>Download MD5 sum: &ffmpeg-md5sum;</para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>Download size: &ffmpeg-size;</para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>Estimated disk space required: &ffmpeg-buildsize;</para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>Estimated build time: &ffmpeg-time;</para>
|
---|
| 61 | </listitem>
|
---|
| 62 | </itemizedlist>
|
---|
| 63 |
|
---|
[f29d6ee] | 64 | <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
---|
[8a1e4f4] | 65 |
|
---|
| 66 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[f009801] | 67 | <para><xref linkend="libvorbis"/>,
|
---|
| 68 | <xref linkend="lame"/>,
|
---|
| 69 | <xref linkend="imlib2"/>,
|
---|
| 70 | X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
| 71 | <xref linkend="sdl"/>,
|
---|
| 72 | <xref linkend="freetype2"/>,
|
---|
| 73 | <xref linkend="mplayer"/> (for the shared post-processing library),
|
---|
| 74 | <ulink url="http://sourceforge.net/projects/faac">FAAC</ulink>,
|
---|
| 75 | <ulink url="http://sourceforge.net/projects/faac">FAAD2</ulink> and
|
---|
[8a1e4f4] | 76 | <xref linkend="tex"/> (to build HTML documentation)</para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of FFmpeg</title>
|
---|
| 82 |
|
---|
[f009801] | 83 | <para>Install <application>FFmpeg</application> by running the following
|
---|
[8a1e4f4] | 84 | commands:</para>
|
---|
| 85 |
|
---|
| 86 | <note>
|
---|
[f009801] | 87 | <para>Review the <filename>doc/optimization.txt</filename> file in the
|
---|
[8a1e4f4] | 88 | source tree for information about optimizing the build.</para>
|
---|
| 89 | </note>
|
---|
| 90 |
|
---|
| 91 | <screen><userinput>sed -i -e "s/static uint64/const uint64/" \
|
---|
[b82b7f6] | 92 | libavcodec/liba52/resample_mmx.c &&
|
---|
| 93 | ./configure --prefix=/usr --enable-shared \
|
---|
[65a0209] | 94 | --enable-pthreads --disable-ffplay &&
|
---|
[8a1e4f4] | 95 | make</userinput></screen>
|
---|
[65a0209] | 96 |
|
---|
[f009801] | 97 | <para>If you have <application>TeX</application> installed, the man pages
|
---|
| 98 | and documentation were built during the <command>make</command> process.
|
---|
| 99 | Skip to the <systemitem class="username">root</systemitem> user installation
|
---|
| 100 | steps. If you do not have <application>TeX</application> installed, use the
|
---|
[8a1e4f4] | 101 | following command to build the man pages:</para>
|
---|
| 102 |
|
---|
| 103 | <screen><userinput>make -C doc {ffmpeg,ffserver,ffplay}.1</userinput></screen>
|
---|
| 104 |
|
---|
| 105 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 106 |
|
---|
| 107 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 108 |
|
---|
[f009801] | 109 | <para>If you have <application>TeX</application> installed (which caused
|
---|
| 110 | the HTML documentation to be built earlier), install the documentation by
|
---|
| 111 | issuing the following commands as the <systemitem
|
---|
[8a1e4f4] | 112 | class="username">root</systemitem> user:</para>
|
---|
| 113 |
|
---|
| 114 | <screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
---|
| 115 | install -v -m644 doc/*.html /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
| 118 |
|
---|
| 119 | <sect2 role="commands">
|
---|
| 120 | <title>Command Explanations</title>
|
---|
| 121 |
|
---|
[f009801] | 122 | <para><command>sed -i -e "s/static uint64/const uint64/"
|
---|
| 123 | libavcodec/liba52/resample_mmx.c</command>: This command fixes an issue
|
---|
| 124 | on machines with MMX capability and use <application>GCC</application>-3.4.x
|
---|
| 125 | to compile in A52 support using the <option>--enable-a52</option> parameter
|
---|
[8a1e4f4] | 126 | passed to the <command>configure</command> script.</para>
|
---|
| 127 |
|
---|
| 128 | <para><parameter>--enable-shared</parameter>: This switch is needed to
|
---|
[f009801] | 129 | build the <filename class="libraryfile">libavcodec</filename> and
|
---|
| 130 | <filename class="libraryfile">libavformat</filename> shared
|
---|
[8a1e4f4] | 131 | libraries.</para>
|
---|
| 132 |
|
---|
[f009801] | 133 | <para><parameter>--enable-pthreads</parameter>: This switch enables the
|
---|
[8a1e4f4] | 134 | build to link against the Posix threads library.</para>
|
---|
| 135 |
|
---|
| 136 | <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
|
---|
[f009801] | 137 | <command>ffplay</command> requires <application>X</application> for
|
---|
| 138 | building. Remove this option if <application>X</application> is
|
---|
[8a1e4f4] | 139 | installed.</para>
|
---|
| 140 |
|
---|
| 141 | <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
|
---|
[f009801] | 142 | the available options and codecs using the
|
---|
[8a1e4f4] | 143 | <command>./configure --help</command> command.</para>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | <sect2 role="configuration">
|
---|
| 148 | <title>Configuring FFmpeg</title>
|
---|
| 149 |
|
---|
| 150 | <sect3 id="ffmpeg-config">
|
---|
| 151 | <title>Config Files</title>
|
---|
| 152 |
|
---|
[f009801] | 153 | <para><filename>/etc/ffserver.conf</filename> and
|
---|
[8a1e4f4] | 154 | <filename>~/.ffmpeg/ffserver-config</filename></para>
|
---|
| 155 |
|
---|
| 156 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 157 | <primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
---|
| 158 | </indexterm>
|
---|
| 159 |
|
---|
| 160 | <indexterm zone="ffmpeg ffmpeg-config">
|
---|
| 161 | <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
---|
| 162 | </indexterm>
|
---|
| 163 |
|
---|
| 164 | <para>You'll find a sample ffserver configuration file at
|
---|
[f009801] | 165 | <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
|
---|
[8a1e4f4] | 166 | <filename>doc/ffserver.conf</filename> in the source tree).</para>
|
---|
| 167 |
|
---|
| 168 | </sect3>
|
---|
| 169 |
|
---|
| 170 | </sect2>
|
---|
| 171 |
|
---|
| 172 | <sect2 role="content">
|
---|
| 173 | <title>Contents</title>
|
---|
| 174 |
|
---|
| 175 | <segmentedlist>
|
---|
| 176 | <segtitle>Installed Programs</segtitle>
|
---|
| 177 | <segtitle>Installed Libraries</segtitle>
|
---|
| 178 | <segtitle>Installed Directories</segtitle>
|
---|
| 179 |
|
---|
| 180 | <seglistitem>
|
---|
| 181 | <seg>ffmpeg, ffserver, and optionally, ffplay</seg>
|
---|
| 182 | <seg>libavcodec.so, libavformat.so, and video hook modules</seg>
|
---|
[f009801] | 183 | <seg>/usr/include/ffmpeg, /usr/lib/vhook, and
|
---|
[8a1e4f4] | 184 | /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
|
---|
| 185 | </seglistitem>
|
---|
| 186 | </segmentedlist>
|
---|
| 187 |
|
---|
| 188 | <variablelist>
|
---|
| 189 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 190 | <?dbfo list-presentation="list"?>
|
---|
| 191 | <?dbhtml list-presentation="table"?>
|
---|
| 192 |
|
---|
| 193 | <varlistentry id="ffmpeg-prog">
|
---|
| 194 | <term><command>ffmpeg</command></term>
|
---|
| 195 | <listitem>
|
---|
[f009801] | 196 | <para>is a command-line tool to convert video files, network streams
|
---|
[8a1e4f4] | 197 | and input from a TV card to several video formats.</para>
|
---|
| 198 | <indexterm zone="ffmpeg ffmpeg-prog">
|
---|
| 199 | <primary sortas="b-ffmpeg">ffmpeg</primary>
|
---|
| 200 | </indexterm>
|
---|
| 201 | </listitem>
|
---|
| 202 | </varlistentry>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="ffplay">
|
---|
| 205 | <term><command>ffplay</command></term>
|
---|
| 206 | <listitem>
|
---|
[f009801] | 207 | <para>is a very simple and portable media player using the
|
---|
[8a1e4f4] | 208 | <filename>ffmpeg</filename> libraries and the SDL library.</para>
|
---|
| 209 | <indexterm zone="ffmpeg ffplay">
|
---|
| 210 | <primary sortas="b-ffplay">ffplay</primary>
|
---|
| 211 | </indexterm>
|
---|
| 212 | </listitem>
|
---|
| 213 | </varlistentry>
|
---|
| 214 |
|
---|
| 215 | <varlistentry id="ffserver">
|
---|
| 216 | <term><command>ffserver</command></term>
|
---|
| 217 | <listitem>
|
---|
| 218 | <para>is a streaming server for everything that <command>ffmpeg</command>
|
---|
| 219 | could use as input (files, streams, TV card input, webcam, etc.).</para>
|
---|
| 220 | <indexterm zone="ffmpeg ffserver">
|
---|
| 221 | <primary sortas="b-ffserver">ffserver</primary>
|
---|
| 222 | </indexterm>
|
---|
| 223 | </listitem>
|
---|
| 224 | </varlistentry>
|
---|
| 225 |
|
---|
| 226 | <varlistentry id="libavcodec">
|
---|
| 227 | <term><filename class='libraryfile'>libavcodec.so</filename></term>
|
---|
| 228 | <listitem>
|
---|
[d7ecaa6] | 229 | <para>is a library containing the <application>FFmpeg</application>
|
---|
[8a1e4f4] | 230 | codecs (both encoding and decoding).</para>
|
---|
| 231 | <indexterm zone="ffmpeg libavcodec">
|
---|
| 232 | <primary sortas="c-libavcodec">libavcodec.so</primary>
|
---|
| 233 | </indexterm>
|
---|
| 234 | </listitem>
|
---|
| 235 | </varlistentry>
|
---|
| 236 |
|
---|
| 237 | <varlistentry id="libavformat">
|
---|
| 238 | <term><filename class='libraryfile'>libavformat.so</filename></term>
|
---|
| 239 | <listitem>
|
---|
[f009801] | 240 | <para>is a library containing the file formats handling (mux and demux code
|
---|
| 241 | for several formats) used by <command>ffplay</command> as well as
|
---|
[8a1e4f4] | 242 | allowing the generation of audio or video streams.</para>
|
---|
| 243 | <indexterm zone="ffmpeg libavformat">
|
---|
| 244 | <primary sortas="c-libavformat">libavformat.so</primary>
|
---|
| 245 | </indexterm>
|
---|
| 246 | </listitem>
|
---|
| 247 | </varlistentry>
|
---|
| 248 |
|
---|
| 249 | </variablelist>
|
---|
| 250 |
|
---|
| 251 | </sect2>
|
---|
[49e5372] | 252 |
|
---|
| 253 | </sect1>
|
---|
| 254 |
|
---|