source: multimedia/videoutils/ffmpeg.xml@ fd7e0ed6

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fd7e0ed6 was fd7e0ed6, checked in by Randy McMurchy <randy@…>, 16 years ago

Changed all lines with nothing but whitespace to blank lines

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@7429 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 12.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY ffmpeg-download-http "&files-anduin;/sources/ffmpeg-&ffmpeg-version;.tar.bz2">
8 <!ENTITY ffmpeg-download-ftp " ">
9 <!ENTITY ffmpeg-md5sum "abae526f04693c08684f0a18c28e3313">
10 <!ENTITY ffmpeg-size "2.2 MB">
11 <!ENTITY ffmpeg-buildsize "131 MB (built with all dependencies)">
12 <!ENTITY ffmpeg-time "1.8 SBU">
13]>
14
15<sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
16 <?dbhtml filename="ffmpeg.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>FFmpeg-&ffmpeg-version;</title>
24
25 <indexterm zone="ffmpeg">
26 <primary sortas="a-FFmpeg">FFmpeg</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to FFmpeg</title>
31
32 <para><application>FFmpeg</application> is a solution to record, convert and
33 stream audio and video. It is a very fast video and audio converter and it can
34 also acquire from a live audio/video source. Designed to be intuitive, the
35 command-line interface (<command>ffmpeg</command>) tries to figure out all the
36 parameters, when possible. <application>FFmpeg</application> can also convert
37 from any sample rate to any other, and resize video on the fly with a high
38 quality polyphase filter. <application>FFmpeg</application> can use a
39 video4linux compatible video source and any Open Sound System audio
40 source. The developers of this package do not create or distribute package
41 tarballs any longer. BLFS created the tarball for this package by checking
42 out from upstream SVN the <application>FFmpeg</application> code dated
43 June 6, 2007.</para>
44
45 <bridgehead renderas="sect3">Package Information</bridgehead>
46 <itemizedlist spacing="compact">
47 <listitem>
48 <para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
52 </listitem>
53 <listitem>
54 <para>Download MD5 sum: &ffmpeg-md5sum;</para>
55 </listitem>
56 <listitem>
57 <para>Download size: &ffmpeg-size;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated disk space required: &ffmpeg-buildsize;</para>
61 </listitem>
62 <listitem>
63 <para>Estimated build time: &ffmpeg-time;</para>
64 </listitem>
65 </itemizedlist>
66
67 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
68 <itemizedlist spacing="compact">
69 <listitem>
70 <para>Required patch: <ulink
71 url="&patch-root;/ffmpeg-&ffmpeg-version;-gcc4-1.patch"/></para>
72 </listitem>
73 <listitem>
74 <para>Required patch: <ulink
75 url="&patch-root;/ffmpeg-&ffmpeg-version;-amr_fixes-1.patch"/></para>
76 </listitem>
77 </itemizedlist> -->
78
79 <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
80
81 <bridgehead renderas="sect4">Optional</bridgehead>
82 <para role="optional">
83 <ulink url="http://www.penguin.cz/~utx/amr">AMR narrowband (floating point)</ulink>,
84 <ulink url="http://www.penguin.cz/~utx/amr">AMR wideband</ulink>,
85 <xref linkend="faac"/>,
86 <xref linkend="faad2"/>,
87 <xref linkend="freetype2"/>,
88 <ulink url="http://kbs.cs.tu-berlin.de/~jutta/gsm/">GSM</ulink>,
89 <xref linkend="imlib2"/>,
90 <xref linkend="lame"/>,
91 <xref linkend="liba52"/>,
92 <ulink url="http://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
93 <ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink> (SVN checkout),
94 <xref linkend="libvorbis"/>,
95 <ulink url="http://medialibrary.sourceforge.net/">MediaLibrary</ulink>,
96 <xref linkend="sdl"/>,
97 <ulink url="http://www.theora.org/">Theora</ulink>,
98 <xref linkend="x-window-system"/>,
99 <ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>,
100 <xref linkend="xvid"/>, and
101 <xref linkend="tetex"/> (to build HTML documentation)</para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/ffmpeg"/></para>
105
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of FFmpeg</title>
110
111 <para>Review the <filename>doc/optimization.txt</filename> file in the
112 source tree for information about optimizing the build. Additionally, you
113 may want to build the postprocessing library as other packages such as
114 <xref linkend='mplayer'/> and <xref linkend='transcode'/> can utilize it,
115 and <xref linkend='xine-lib'/> depends on it. See the <quote>Command
116 Explanations</quote> section for additional information.</para>
117
118 <para>Install <application>FFmpeg</application> by running the following
119 commands:</para>
120
121<screen><userinput>./configure --prefix=/usr \
122 --enable-shared \
123 --enable-pthreads \
124 --disable-ffplay &amp;&amp;
125sed -i 's|/man|/share/man|' config.mak &amp;&amp;
126make &amp;&amp;
127texi2html --version >/dev/null 2>&amp;1 || make doc/ff{mpeg,play,server}.1</userinput></screen>
128
129 <para>If you have <application>teTeX</application> installed, the HTML
130 documentation was built during the <command>make</command> process. If you
131 wish to create additional formats of the documentation, you must have
132 <application>teTeX</application> installed, then issue following
133 commands:</para>
134
135<screen><userinput>cd doc &amp;&amp;
136for DOCNAME in faq ffmpeg-doc hooks ffserver-doc ffplay-doc; do
137 texi2dvi -b -p $DOCNAME.texi
138 texi2dvi -b $DOCNAME.texi
139 dvips -o $DOCNAME.ps $DOCNAME.dvi
140 if [ $DOCNAME = ffserver-doc ] || [ $DOCNAME = ffplay-doc ]; then \
141 continue
142 fi
143 makeinfo --plaintext --force -o $DOCNAME.txt $DOCNAME.texi
144done &amp;&amp;
145cd .. &amp;&amp;
146unset DOCNAME</userinput></screen>
147
148 <para>If you have <xref linkend="doxygen"/> installed and wish to create
149 the API documentation (takes about 100 MB of space), issue
150 <command>doxygen</command>.</para>
151
152 <para>This package does not come with a test suite that works.</para>
153
154 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
155
156<screen role="root"><userinput>make install &amp;&amp;
157install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
158install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
159texi2html --version >/dev/null 2>&amp;1 || make install-man</userinput></screen>
160
161 <para>If you created additional formats of the documentation,
162 install it by issuing the following commands as the
163 <systemitem class="username">root</systemitem> user:</para>
164
165<screen role="root"><userinput>install -v -m644 doc/*.{html,dvi,pdf,ps} \
166 /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
167
168 <para>If you created the API documentation, install it by issuing the
169 following commands as the
170 <systemitem class="username">root</systemitem> user:</para>
171
172<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &amp;&amp;
173cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
174
175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <para><parameter>--enable-shared</parameter>: This switch is needed to
181 build the shared libraries, otherwise only static libraries are built
182 and installed.</para>
183
184 <para><parameter>--enable-pthreads</parameter>: This switch enables the
185 build to link against the Posix threads library.</para>
186
187 <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
188 <command>ffplay</command> requires <application>X</application> for
189 building. Remove this option if <application>X</application> is
190 installed.</para>
191
192 <para><option>--enable-<replaceable>&lt;codec&gt;</replaceable></option>: Review
193 the available options and codecs using the
194 <command>./configure --help</command> command. You must explicitly enable
195 each optional codec. Note that if you wish to build support for
196 postprocessing, liba52, xvid, x264, libfaad2, x11grab or swscaler, you
197 must pass <option>--enable-gpl</option> to the
198 <command>configure</command> script.</para>
199
200 <para><parameter>--enable-pp</parameter>: This switch enables
201 postprocessing support.</para>
202
203 <para><parameter>--enable-gpl</parameter>: This switch enables the
204 use of GPL code for postprocessing support.</para>
205
206 <para><command>texi2html --version ...</command>: These commands are used
207 to check the presence of the <application>teTeX</application> package, and
208 builds/installs the man pages if it is not found.</para>
209
210 </sect2>
211
212 <sect2 role="configuration">
213 <title>Configuring FFmpeg</title>
214
215 <sect3 id="ffmpeg-config">
216 <title>Config Files</title>
217
218 <para><filename>/etc/ffserver.conf</filename> and
219 <filename>~/.ffmpeg/ffserver-config</filename></para>
220
221 <indexterm zone="ffmpeg ffmpeg-config">
222 <primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
223 </indexterm>
224
225 <indexterm zone="ffmpeg ffmpeg-config">
226 <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
227 </indexterm>
228
229 <para>You'll find a sample ffserver configuration file at
230 <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
231 <filename>doc/ffserver.conf</filename> in the source tree).</para>
232
233 </sect3>
234
235 </sect2>
236
237 <sect2 role="content">
238 <title>Contents</title>
239
240 <segmentedlist>
241 <segtitle>Installed Programs</segtitle>
242 <segtitle>Installed Libraries</segtitle>
243 <segtitle>Installed Directories</segtitle>
244
245 <seglistitem>
246 <seg>ffmpeg, ffserver, and optionally, ffplay</seg>
247 <seg>libavcodec.{so,a}, libavformat.{so,a}, libavutil.{so,a},
248 video hook modules and optionally, libpostproc.{so,a}</seg>
249 <seg>/usr/include/ffmpeg, /usr/include/postproc, /usr/lib/vhook, and
250 /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
251 </seglistitem>
252 </segmentedlist>
253
254 <variablelist>
255 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
256 <?dbfo list-presentation="list"?>
257 <?dbhtml list-presentation="table"?>
258
259 <varlistentry id="ffmpeg-prog">
260 <term><command>ffmpeg</command></term>
261 <listitem>
262 <para>is a command-line tool to convert video files, network streams
263 and input from a TV card to several video formats.</para>
264 <indexterm zone="ffmpeg ffmpeg-prog">
265 <primary sortas="b-ffmpeg">ffmpeg</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="ffplay">
271 <term><command>ffplay</command></term>
272 <listitem>
273 <para>is a very simple and portable media player using the
274 <filename>ffmpeg</filename> libraries and the SDL library.</para>
275 <indexterm zone="ffmpeg ffplay">
276 <primary sortas="b-ffplay">ffplay</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="ffserver">
282 <term><command>ffserver</command></term>
283 <listitem>
284 <para>is a streaming server for everything that <command>ffmpeg</command>
285 could use as input (files, streams, TV card input, webcam, etc.).</para>
286 <indexterm zone="ffmpeg ffserver">
287 <primary sortas="b-ffserver">ffserver</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="libavcodec">
293 <term><filename class='libraryfile'>libavcodec.so</filename></term>
294 <listitem>
295 <para>is a library containing the <application>FFmpeg</application>
296 codecs (both encoding and decoding).</para>
297 <indexterm zone="ffmpeg libavcodec">
298 <primary sortas="c-libavcodec">libavcodec.so</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="libavformat">
304 <term><filename class='libraryfile'>libavformat.so</filename></term>
305 <listitem>
306 <para>is a library containing the file formats handling (mux and demux code
307 for several formats) used by <command>ffplay</command> as well as
308 allowing the generation of audio or video streams.</para>
309 <indexterm zone="ffmpeg libavformat">
310 <primary sortas="c-libavformat">libavformat.so</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 </variablelist>
316
317 </sect2>
318
319</sect1>
Note: See TracBrowser for help on using the repository browser.