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