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