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