[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 |
|
---|
[d374b41] | 13 | <sect1 id="ffmpeg" 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>
|
---|
[49e5372] | 20 |
|
---|
[01062dd] | 21 | <sect2>
|
---|
| 22 | <title>Introduction to <application>FFmpeg</application></title>
|
---|
| 23 |
|
---|
[560e14cf] | 24 | <para><application>FFmpeg</application> is a solution to record, convert and
|
---|
[8a9da37] | 25 | stream audio and video. It is a very fast video and audio converter and it can
|
---|
| 26 | also acquire from a live audio/video source. Designed to be intuitive, the
|
---|
| 27 | command-line interface (<command>ffmpeg</command>) tries to figure out all the
|
---|
| 28 | parameters, when possible. <application>FFmpeg</application> can also convert
|
---|
| 29 | from any sample rate to any other, and resize video on the fly with a high
|
---|
| 30 | quality polyphase filter. <application>FFmpeg</application> can use a
|
---|
| 31 | video4linux compatible video source and any Open Sound System audio
|
---|
| 32 | source.</para>
|
---|
[01062dd] | 33 |
|
---|
| 34 | <sect3><title>Package information</title>
|
---|
| 35 | <itemizedlist spacing='compact'>
|
---|
| 36 | <listitem><para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para></listitem>
|
---|
| 37 | <listitem><para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download size: &ffmpeg-size;</para></listitem>
|
---|
[8a9da37] | 39 | <listitem><para>Estimated disk space required: &ffmpeg-buildsize;</para></listitem>
|
---|
[01062dd] | 40 | <listitem><para>Estimated build time: &ffmpeg-time;</para></listitem></itemizedlist>
|
---|
| 41 | </sect3>
|
---|
| 42 |
|
---|
| 43 | <sect3><title><application>FFmpeg</application> dependencies</title>
|
---|
| 44 | <sect4><title>Optional</title>
|
---|
[8a9da37] | 45 | <para><xref linkend="libvorbis"/>,
|
---|
| 46 | <xref linkend="lame"/>,
|
---|
| 47 | <xref linkend="liba52"/>,
|
---|
| 48 | <xref linkend="imlib2"/>,
|
---|
[560e14cf] | 49 | X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
[68ad918] | 50 | <xref linkend="sdl"/>,
|
---|
[8a9da37] | 51 | <xref linkend="freetype2"/>,
|
---|
[560e14cf] | 52 | <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAC</ulink> and
|
---|
| 53 | <ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD</ulink></para>
|
---|
| 54 | </sect4>
|
---|
[01062dd] | 55 | </sect3>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
| 58 |
|
---|
| 59 | <sect2>
|
---|
| 60 | <title>Installation of <application>FFmpeg</application></title>
|
---|
| 61 |
|
---|
| 62 | <para>Install <application>FFmpeg</application> by running the following
|
---|
| 63 | commands:</para>
|
---|
| 64 |
|
---|
[8a9da37] | 65 | <note><para>Review the <filename>doc/optimization.txt</filename> file in the
|
---|
| 66 | source tree for information about optimizing the build.</para></note>
|
---|
[01062dd] | 67 |
|
---|
[8a9da37] | 68 | <!-- <screen><userinput><command>patch -Np1 -i ../ffmpeg-&ffmpeg-version;-gcc34-1.patch && -->
|
---|
| 69 | <screen><userinput><command>./configure --prefix=/usr \
|
---|
| 70 | --enable-shared --enable-pthreads &&
|
---|
[01062dd] | 71 | make &&
|
---|
[8a9da37] | 72 | make -C doc {ffmpeg,ffserver,ffplay}.1 &&
|
---|
[01062dd] | 73 | make install</command></userinput></screen>
|
---|
| 74 |
|
---|
| 75 | </sect2>
|
---|
| 76 |
|
---|
| 77 | <sect2>
|
---|
| 78 | <title>Command explanations</title>
|
---|
| 79 |
|
---|
[560e14cf] | 80 | <para><parameter>--enable-shared</parameter>: This switch is needed to
|
---|
| 81 | build the <filename class="libraryfile">libavcodec</filename> and
|
---|
| 82 | <filename class="libraryfile">libavformat</filename> shared
|
---|
| 83 | libraries.</para>
|
---|
[01062dd] | 84 |
|
---|
[8a9da37] | 85 | <para><parameter>--enable-pthreads</parameter>: This switch enables the
|
---|
| 86 | build to link against the Posix threads library.</para>
|
---|
[01062dd] | 87 |
|
---|
[8a9da37] | 88 | <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
|
---|
| 89 | the available options and codecs using the
|
---|
| 90 | <command>./configure --help</command> command.</para>
|
---|
[01062dd] | 91 |
|
---|
| 92 | <para><option>--disable-ffplay</option>: Only installs the server part.
|
---|
[560e14cf] | 93 | <command>ffplay</command> requires <application>X</application> for
|
---|
| 94 | building.</para>
|
---|
| 95 |
|
---|
[8a9da37] | 96 | <para><command>make -C doc {ffmpeg,ffserver,ffplay}.1</command>: This builds
|
---|
| 97 | the man pages which are installed by <command>make install</command>.</para>
|
---|
| 98 |
|
---|
[560e14cf] | 99 | <note><para>Linking the <application>liba52</application> library using the
|
---|
| 100 | <option>--enable-a52</option> parameter to <command>configure</command> is
|
---|
| 101 | known to break the build.</para></note>
|
---|
[01062dd] | 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2>
|
---|
| 106 | <title>Configuring <application>FFmpeg</application></title>
|
---|
| 107 |
|
---|
| 108 | <sect3><title>Config files</title>
|
---|
| 109 |
|
---|
[8a9da37] | 110 | <para><filename>/etc/ffserver.conf</filename> and
|
---|
| 111 | <filename>~/.ffmpeg/ffserver-config</filename></para>
|
---|
[01062dd] | 112 |
|
---|
| 113 | <para>You'll find a sample ffserver configuration file at
|
---|
[8a9da37] | 114 | <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
|
---|
| 115 | <filename>doc/ffserver.conf</filename> in the source tree).</para>
|
---|
[01062dd] | 116 |
|
---|
| 117 | </sect3>
|
---|
| 118 |
|
---|
| 119 | </sect2>
|
---|
| 120 |
|
---|
| 121 | <sect2>
|
---|
| 122 | <title>Contents</title>
|
---|
| 123 |
|
---|
[560e14cf] | 124 | <para>The <application>FFmpeg</application> package contains
|
---|
[8a9da37] | 125 | <command>ffmpeg</command>,
|
---|
| 126 | <command>ffserver</command>,
|
---|
[560e14cf] | 127 | <command>ffplay</command>,
|
---|
[8a9da37] | 128 | <filename class="libraryfile">libavcodec</filename>,
|
---|
| 129 | <filename class="libraryfile">libavformat</filename> and
|
---|
| 130 | video hook modules.</para>
|
---|
[01062dd] | 131 |
|
---|
| 132 | </sect2>
|
---|
| 133 |
|
---|
| 134 | <sect2><title>Description</title>
|
---|
| 135 |
|
---|
| 136 | <sect3><title>ffmpeg</title>
|
---|
| 137 | <para><command>ffmpeg</command> is a command-line tool to convert video files,
|
---|
[560e14cf] | 138 | network streams and input from a TV card to several video formats.</para>
|
---|
| 139 | </sect3>
|
---|
[01062dd] | 140 |
|
---|
| 141 | <sect3><title>ffserver</title>
|
---|
| 142 | <para><command>ffserver</command> is a streaming server for everything
|
---|
| 143 | that <command>ffmpeg</command> could use as input (files, streams, TV card
|
---|
| 144 | input, webcam, etc.).</para></sect3>
|
---|
| 145 |
|
---|
| 146 | <sect3><title>ffplay</title>
|
---|
| 147 | <para><command>ffplay</command> is a very simple and portable media
|
---|
[560e14cf] | 148 | player using the <filename>ffmpeg</filename> libraries and the
|
---|
| 149 | <acronym>SDL</acronym> library.</para></sect3>
|
---|
[01062dd] | 150 |
|
---|
| 151 | <sect3><title>libavcodec/libavformat</title>
|
---|
[560e14cf] | 152 | <para><filename class="libraryfile">libavcodec</filename> and
|
---|
| 153 | <filename class="libraryfile">libavformats</filename> are libraries for
|
---|
| 154 | encoding/decoding video streams and putting them into files or network
|
---|
[8a9da37] | 155 | packets.</para></sect3>
|
---|
[01062dd] | 156 |
|
---|
| 157 | </sect2>
|
---|
[49e5372] | 158 |
|
---|
| 159 | </sect1>
|
---|
| 160 |
|
---|