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;
|
---|
5 |
|
---|
6 | <!ENTITY ffmpeg-download-http "http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-&ffmpeg-version;.tar.gz">
|
---|
7 | <!ENTITY ffmpeg-download-ftp " ">
|
---|
8 | <!ENTITY ffmpeg-size "1.6 MB">
|
---|
9 | <!ENTITY ffmpeg-buildsize "49 MB">
|
---|
10 | <!ENTITY ffmpeg-time "0.87 SBU">
|
---|
11 | ]>
|
---|
12 |
|
---|
13 | <sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
|
---|
14 | <sect1info>
|
---|
15 | <othername>$LastChangedBy$</othername>
|
---|
16 | <date>$Date$</date>
|
---|
17 | </sect1info>
|
---|
18 | <?dbhtml filename="ffmpeg.html"?>
|
---|
19 | <title>FFmpeg-&ffmpeg-version;</title>
|
---|
20 |
|
---|
21 | <sect2>
|
---|
22 | <title>Introduction to <application>FFmpeg</application></title>
|
---|
23 |
|
---|
24 | <para><application>FFmpeg</application> is a solution to record, convert and
|
---|
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>
|
---|
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>
|
---|
39 | <listitem><para>Estimated disk space required: &ffmpeg-buildsize;</para></listitem>
|
---|
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>
|
---|
45 | <para><xref linkend="libvorbis"/>,
|
---|
46 | <xref linkend="lame"/>,
|
---|
47 | <xref linkend="liba52"/>,
|
---|
48 | <xref linkend="imlib2"/>,
|
---|
49 | X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
|
---|
50 | <xref linkend="sdl"/>,
|
---|
51 | <xref linkend="freetype2"/>,
|
---|
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>
|
---|
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 |
|
---|
65 | <note><para>Review the <filename>doc/optimization.txt</filename> file in the
|
---|
66 | source tree for information about optimizing the build.</para></note>
|
---|
67 |
|
---|
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 &&
|
---|
71 | make &&
|
---|
72 | make -C doc {ffmpeg,ffserver,ffplay}.1 &&
|
---|
73 | make install</command></userinput></screen>
|
---|
74 |
|
---|
75 | </sect2>
|
---|
76 |
|
---|
77 | <sect2>
|
---|
78 | <title>Command explanations</title>
|
---|
79 |
|
---|
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>
|
---|
84 |
|
---|
85 | <para><parameter>--enable-pthreads</parameter>: This switch enables the
|
---|
86 | build to link against the Posix threads library.</para>
|
---|
87 |
|
---|
88 | <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
|
---|
89 | the available options and codecs using the
|
---|
90 | <command>./configure --help</command> command.</para>
|
---|
91 |
|
---|
92 | <para><option>--disable-ffplay</option>: Only installs the server part.
|
---|
93 | <command>ffplay</command> requires <application>X</application> for
|
---|
94 | building.</para>
|
---|
95 |
|
---|
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 |
|
---|
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>
|
---|
102 |
|
---|
103 | </sect2>
|
---|
104 |
|
---|
105 | <sect2>
|
---|
106 | <title>Configuring <application>FFmpeg</application></title>
|
---|
107 |
|
---|
108 | <sect3><title>Config files</title>
|
---|
109 |
|
---|
110 | <para><filename>/etc/ffserver.conf</filename> and
|
---|
111 | <filename>~/.ffmpeg/ffserver-config</filename></para>
|
---|
112 |
|
---|
113 | <para>You'll find a sample ffserver configuration file at
|
---|
114 | <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
|
---|
115 | <filename>doc/ffserver.conf</filename> in the source tree).</para>
|
---|
116 |
|
---|
117 | </sect3>
|
---|
118 |
|
---|
119 | </sect2>
|
---|
120 |
|
---|
121 | <sect2>
|
---|
122 | <title>Contents</title>
|
---|
123 |
|
---|
124 | <para>The <application>FFmpeg</application> package contains
|
---|
125 | <command>ffmpeg</command>,
|
---|
126 | <command>ffserver</command>,
|
---|
127 | <command>ffplay</command>,
|
---|
128 | <filename class="libraryfile">libavcodec</filename>,
|
---|
129 | <filename class="libraryfile">libavformat</filename> and
|
---|
130 | video hook modules.</para>
|
---|
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,
|
---|
138 | network streams and input from a TV card to several video formats.</para>
|
---|
139 | </sect3>
|
---|
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
|
---|
148 | player using the <filename>ffmpeg</filename> libraries and the
|
---|
149 | <acronym>SDL</acronym> library.</para></sect3>
|
---|
150 |
|
---|
151 | <sect3><title>libavcodec/libavformat</title>
|
---|
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
|
---|
155 | packets.</para></sect3>
|
---|
156 |
|
---|
157 | </sect2>
|
---|
158 |
|
---|
159 | </sect1>
|
---|
160 |
|
---|