2005-05-12 05:16:35 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-04-05 03:42:53 +08:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-06-14 10:50:57 +08:00
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
2004-08-31 13:48:30 +08:00
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<!ENTITY ffmpeg-download-http "&files-anduin;/sources/ffmpeg-&ffmpeg-version;.tar.bz2">
|
2004-06-14 10:50:57 +08:00
|
|
|
<!ENTITY ffmpeg-download-ftp " ">
|
2007-08-11 11:02:17 +08:00
|
|
|
<!ENTITY ffmpeg-md5sum "abae526f04693c08684f0a18c28e3313">
|
|
|
|
<!ENTITY ffmpeg-size "2.2 MB">
|
|
|
|
<!ENTITY ffmpeg-buildsize "131 MB (built with all dependencies)">
|
|
|
|
<!ENTITY ffmpeg-time "1.8 SBU">
|
2004-06-14 10:50:57 +08:00
|
|
|
]>
|
|
|
|
|
2005-01-26 03:21:25 +08:00
|
|
|
<sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
2005-05-12 05:16:35 +08:00
|
|
|
<?dbhtml filename="ffmpeg.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<othername>$LastChangedBy$</othername>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>FFmpeg-&ffmpeg-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="ffmpeg">
|
|
|
|
<primary sortas="a-FFmpeg">FFmpeg</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to FFmpeg</title>
|
|
|
|
|
2005-05-31 05:55:16 +08:00
|
|
|
<para><application>FFmpeg</application> is a solution to record, convert and
|
|
|
|
stream audio and video. It is a very fast video and audio converter and it can
|
|
|
|
also acquire from a live audio/video source. Designed to be intuitive, the
|
|
|
|
command-line interface (<command>ffmpeg</command>) tries to figure out all the
|
|
|
|
parameters, when possible. <application>FFmpeg</application> can also convert
|
|
|
|
from any sample rate to any other, and resize video on the fly with a high
|
|
|
|
quality polyphase filter. <application>FFmpeg</application> can use a
|
|
|
|
video4linux compatible video source and any Open Sound System audio
|
2007-08-11 11:02:17 +08:00
|
|
|
source. The developers of this package do not create or distribute package
|
|
|
|
tarballs any longer. BLFS created the tarball for this package by checking
|
|
|
|
out from upstream SVN the <application>FFmpeg</application> code dated
|
|
|
|
June 6, 2007.</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download MD5 sum: &ffmpeg-md5sum;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Download size: &ffmpeg-size;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated disk space required: &ffmpeg-buildsize;</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>Estimated build time: &ffmpeg-time;</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
2005-09-10 12:21:04 +08:00
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
|
|
|
url="&patch-root;/ffmpeg-&ffmpeg-version;-gcc4-1.patch"/></para>
|
|
|
|
</listitem>
|
2006-01-13 04:26:23 +08:00
|
|
|
<listitem>
|
|
|
|
<para>Required patch: <ulink
|
|
|
|
url="&patch-root;/ffmpeg-&ffmpeg-version;-amr_fixes-1.patch"/></para>
|
|
|
|
</listitem>
|
2007-08-11 11:02:17 +08:00
|
|
|
</itemizedlist> -->
|
2005-09-10 12:21:04 +08:00
|
|
|
|
2005-05-13 02:05:01 +08:00
|
|
|
<bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
2007-08-11 11:02:17 +08:00
|
|
|
<para role="optional">
|
|
|
|
<ulink url="http://www.penguin.cz/~utx/amr">AMR narrowband (floating point)</ulink>,
|
|
|
|
<ulink url="http://www.penguin.cz/~utx/amr">AMR wideband</ulink>,
|
2005-05-31 05:55:16 +08:00
|
|
|
<ulink url="http://sourceforge.net/projects/faac">FAAC</ulink>,
|
2008-01-19 17:34:06 +08:00
|
|
|
<xref linkend="faad2"/>,
|
2007-08-11 11:02:17 +08:00
|
|
|
<xref linkend="freetype2"/>,
|
|
|
|
<ulink url="http://kbs.cs.tu-berlin.de/~jutta/gsm/">GSM</ulink>,
|
|
|
|
<xref linkend="imlib2"/>,
|
|
|
|
<xref linkend="lame"/>,
|
|
|
|
<xref linkend="liba52"/>,
|
|
|
|
<ulink url="http://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
|
|
|
|
<ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink> (SVN checkout),
|
|
|
|
<xref linkend="libvorbis"/>,
|
|
|
|
<ulink url="http://medialibrary.sourceforge.net/">MediaLibrary</ulink>,
|
|
|
|
<xref linkend="sdl"/>,
|
|
|
|
<ulink url="http://www.theora.org/">Theora</ulink>,
|
|
|
|
<xref linkend="x-window-system"/>,
|
|
|
|
<ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>,
|
|
|
|
<xref linkend="xvid"/>, and
|
2006-05-11 05:29:18 +08:00
|
|
|
<xref linkend="tetex"/> (to build HTML documentation)</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2006-04-11 02:37:19 +08:00
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/ffmpeg"/></para>
|
|
|
|
|
2005-05-12 05:16:35 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of FFmpeg</title>
|
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<para>Review the <filename>doc/optimization.txt</filename> file in the
|
2007-08-18 03:52:39 +08:00
|
|
|
source tree for information about optimizing the build. Additionally,
|
|
|
|
you may want to build the postprocessing library as other packages such
|
|
|
|
as <application>MPlayer</application> and
|
|
|
|
<application>Transcode</application> can utilize it (see the
|
|
|
|
<quote>Command Explanations</quote> section for additional
|
|
|
|
information).</para>
|
2007-08-11 11:02:17 +08:00
|
|
|
|
2005-05-31 05:55:16 +08:00
|
|
|
<para>Install <application>FFmpeg</application> by running the following
|
2005-05-12 05:16:35 +08:00
|
|
|
commands:</para>
|
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-pthreads \
|
|
|
|
--disable-ffplay &&
|
|
|
|
sed -i 's|/man|/share/man|' config.mak &&
|
|
|
|
make &&
|
|
|
|
texi2html --version >/dev/null 2>&1 || make doc/ff{mpeg,play,server}.1</userinput></screen>
|
|
|
|
|
|
|
|
<para>If you have <application>teTeX</application> installed, the HTML
|
|
|
|
documentation was built during the <command>make</command> process. If you
|
|
|
|
wish to create additional formats of the documentation, you must have
|
|
|
|
<application>teTeX</application> installed, then issue following
|
|
|
|
commands:</para>
|
|
|
|
|
|
|
|
<screen><userinput>cd doc &&
|
|
|
|
for DOCNAME in faq ffmpeg-doc hooks ffserver-doc ffplay-doc; do
|
|
|
|
texi2dvi -b -p $DOCNAME.texi
|
|
|
|
texi2dvi -b $DOCNAME.texi
|
|
|
|
dvips -o $DOCNAME.ps $DOCNAME.dvi
|
|
|
|
if [ $DOCNAME = ffserver-doc ] || [ $DOCNAME = ffplay-doc ]; then \
|
|
|
|
continue
|
|
|
|
fi
|
|
|
|
makeinfo --plaintext --force -o $DOCNAME.txt $DOCNAME.texi
|
|
|
|
done &&
|
|
|
|
cd .. &&
|
|
|
|
unset DOCNAME</userinput></screen>
|
|
|
|
|
|
|
|
<para>If you have <xref linkend="doxygen"/> installed and wish to create
|
|
|
|
the API documentation (takes about 100 MB of space), issue
|
|
|
|
<command>doxygen</command>.</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2006-05-14 08:31:48 +08:00
|
|
|
<para>This package does not come with a test suite that works.</para>
|
|
|
|
|
2005-05-12 05:16:35 +08:00
|
|
|
<para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<screen role="root"><userinput>make install &&
|
|
|
|
install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
|
|
|
install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version; &&
|
2007-08-13 05:08:16 +08:00
|
|
|
texi2html --version >/dev/null 2>&1 || make install-man</userinput></screen>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<para>If you created additional formats of the documentation,
|
|
|
|
install it by issuing the following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<screen role="root"><userinput>install -v -m644 doc/*.{html,dvi,pdf,ps} \
|
2006-01-13 04:26:23 +08:00
|
|
|
/usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2007-08-11 11:02:17 +08:00
|
|
|
<para>If you created the API documentation, install it by issuing the
|
|
|
|
following commands as the
|
|
|
|
<systemitem class="username">root</systemitem> user:</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &&
|
|
|
|
cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
|
|
|
|
|
2005-05-12 05:16:35 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para><parameter>--enable-shared</parameter>: This switch is needed to
|
2007-08-11 11:02:17 +08:00
|
|
|
build the shared libraries, otherwise only static libraries are built
|
|
|
|
and installed.</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
2005-05-31 05:55:16 +08:00
|
|
|
<para><parameter>--enable-pthreads</parameter>: This switch enables the
|
2005-05-12 05:16:35 +08:00
|
|
|
build to link against the Posix threads library.</para>
|
|
|
|
|
|
|
|
<para><parameter>--disable-ffplay</parameter>: Only installs the server part.
|
2005-05-31 05:55:16 +08:00
|
|
|
<command>ffplay</command> requires <application>X</application> for
|
|
|
|
building. Remove this option if <application>X</application> is
|
2005-05-12 05:16:35 +08:00
|
|
|
installed.</para>
|
|
|
|
|
2006-04-11 02:37:19 +08:00
|
|
|
<para><option>--enable-<replaceable><codec></replaceable></option>: Review
|
2005-05-31 05:55:16 +08:00
|
|
|
the available options and codecs using the
|
2007-08-11 11:02:17 +08:00
|
|
|
<command>./configure --help</command> command. You must explicitly enable
|
|
|
|
each optional codec. Note that if you wish to build support for
|
|
|
|
postprocessing, liba52, xvid, x264, libfaad2, x11grab or swscaler, you
|
|
|
|
must pass <option>--enable-gpl</option> to the
|
|
|
|
<command>configure</command> script.</para>
|
|
|
|
|
|
|
|
<para><command>texi2html --version ...</command>: These commands are used
|
|
|
|
to check the presence of the <application>teTeX</application> package, and
|
|
|
|
builds/installs the man pages if it is not found.</para>
|
2005-05-12 05:16:35 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring FFmpeg</title>
|
|
|
|
|
|
|
|
<sect3 id="ffmpeg-config">
|
|
|
|
<title>Config Files</title>
|
|
|
|
|
2005-05-31 05:55:16 +08:00
|
|
|
<para><filename>/etc/ffserver.conf</filename> and
|
2005-05-12 05:16:35 +08:00
|
|
|
<filename>~/.ffmpeg/ffserver-config</filename></para>
|
|
|
|
|
|
|
|
<indexterm zone="ffmpeg ffmpeg-config">
|
|
|
|
<primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<indexterm zone="ffmpeg ffmpeg-config">
|
|
|
|
<primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<para>You'll find a sample ffserver configuration file at
|
2005-05-31 05:55:16 +08:00
|
|
|
<ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
|
2005-05-12 05:16:35 +08:00
|
|
|
<filename>doc/ffserver.conf</filename> in the source tree).</para>
|
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>ffmpeg, ffserver, and optionally, ffplay</seg>
|
2007-08-11 11:02:17 +08:00
|
|
|
<seg>libavcodec.{so,a}, libavformat.{so,a}, libavutil.{so,a},
|
|
|
|
video hook modules and optionally, libpostproc.{so,a}</seg>
|
|
|
|
<seg>/usr/include/ffmpeg, /usr/include/postproc, /usr/lib/vhook, and
|
2005-05-12 05:16:35 +08:00
|
|
|
/usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="ffmpeg-prog">
|
|
|
|
<term><command>ffmpeg</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:55:16 +08:00
|
|
|
<para>is a command-line tool to convert video files, network streams
|
2005-05-12 05:16:35 +08:00
|
|
|
and input from a TV card to several video formats.</para>
|
|
|
|
<indexterm zone="ffmpeg ffmpeg-prog">
|
|
|
|
<primary sortas="b-ffmpeg">ffmpeg</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ffplay">
|
|
|
|
<term><command>ffplay</command></term>
|
|
|
|
<listitem>
|
2005-05-31 05:55:16 +08:00
|
|
|
<para>is a very simple and portable media player using the
|
2005-05-12 05:16:35 +08:00
|
|
|
<filename>ffmpeg</filename> libraries and the SDL library.</para>
|
|
|
|
<indexterm zone="ffmpeg ffplay">
|
|
|
|
<primary sortas="b-ffplay">ffplay</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="ffserver">
|
|
|
|
<term><command>ffserver</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>is a streaming server for everything that <command>ffmpeg</command>
|
|
|
|
could use as input (files, streams, TV card input, webcam, etc.).</para>
|
|
|
|
<indexterm zone="ffmpeg ffserver">
|
|
|
|
<primary sortas="b-ffserver">ffserver</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libavcodec">
|
|
|
|
<term><filename class='libraryfile'>libavcodec.so</filename></term>
|
|
|
|
<listitem>
|
2005-05-30 23:59:12 +08:00
|
|
|
<para>is a library containing the <application>FFmpeg</application>
|
2005-05-12 05:16:35 +08:00
|
|
|
codecs (both encoding and decoding).</para>
|
|
|
|
<indexterm zone="ffmpeg libavcodec">
|
|
|
|
<primary sortas="c-libavcodec">libavcodec.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="libavformat">
|
|
|
|
<term><filename class='libraryfile'>libavformat.so</filename></term>
|
|
|
|
<listitem>
|
2005-05-31 05:55:16 +08:00
|
|
|
<para>is a library containing the file formats handling (mux and demux code
|
|
|
|
for several formats) used by <command>ffplay</command> as well as
|
2005-05-12 05:16:35 +08:00
|
|
|
allowing the generation of audio or video streams.</para>
|
|
|
|
<indexterm zone="ffmpeg libavformat">
|
|
|
|
<primary sortas="c-libavformat">libavformat.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
2002-12-22 08:35:44 +08:00
|
|
|
|
|
|
|
</sect1>
|