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