source: multimedia/videoutils/ffmpeg.xml@ d0151ee

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 d0151ee was 410e228b, checked in by Randy McMurchy <randy@…>, 16 years ago

Removed extraneous whitespace from the ends of line text

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

  • Property mode set to 100644
File size: 12.4 KB
RevLine 
[8a1e4f4]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[01062dd]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[560e14cf]6
[dff08f73]7 <!ENTITY ffmpeg-download-http "&files-anduin;/sources/ffmpeg-&ffmpeg-version;.tar.bz2">
[01062dd]8 <!ENTITY ffmpeg-download-ftp " ">
[dff08f73]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">
[01062dd]13]>
14
[0b5a693]15<sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
[8a1e4f4]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
[f009801]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
[dff08f73]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>
[8a1e4f4]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
[dff08f73]67 <!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[7ab0cf0d]68 <itemizedlist spacing="compact">
69 <listitem>
70 <para>Required patch: <ulink
71 url="&patch-root;/ffmpeg-&ffmpeg-version;-gcc4-1.patch"/></para>
72 </listitem>
[f5d262aa]73 <listitem>
74 <para>Required patch: <ulink
75 url="&patch-root;/ffmpeg-&ffmpeg-version;-amr_fixes-1.patch"/></para>
76 </listitem>
[dff08f73]77 </itemizedlist> -->
[7ab0cf0d]78
[f29d6ee]79 <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
[8a1e4f4]80
81 <bridgehead renderas="sect4">Optional</bridgehead>
[dff08f73]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>,
[222787b9]85 <xref linkend="faac"/>,
[7aa678d]86 <xref linkend="faad2"/>,
[dff08f73]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
[520f6b4f]101 <xref linkend="tetex"/> (to build HTML documentation)</para>
[8a1e4f4]102
[0e2aa08]103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/ffmpeg"/></para>
105
[8a1e4f4]106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of FFmpeg</title>
110
[c1feba2]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
[a4ea5a1]116 Explanations</quote> section for additional information.</para>
[dff08f73]117
[f009801]118 <para>Install <application>FFmpeg</application> by running the following
[8a1e4f4]119 commands:</para>
120
[dff08f73]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>
[8a1e4f4]151
[e2c98cc6]152 <para>This package does not come with a test suite that works.</para>
153
[8a1e4f4]154 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
155
[dff08f73]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;
[5631507b]159texi2html --version >/dev/null 2>&amp;1 || make install-man</userinput></screen>
[8a1e4f4]160
[dff08f73]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>
[8a1e4f4]164
[dff08f73]165<screen role="root"><userinput>install -v -m644 doc/*.{html,dvi,pdf,ps} \
[f5d262aa]166 /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
[8a1e4f4]167
[dff08f73]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>
[fd7e0ed6]171
[dff08f73]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
[8a1e4f4]175 </sect2>
176
177 <sect2 role="commands">
178 <title>Command Explanations</title>
179
180 <para><parameter>--enable-shared</parameter>: This switch is needed to
[dff08f73]181 build the shared libraries, otherwise only static libraries are built
182 and installed.</para>
[8a1e4f4]183
[f009801]184 <para><parameter>--enable-pthreads</parameter>: This switch enables the
[8a1e4f4]185 build to link against the Posix threads library.</para>
186
187 <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
[f009801]188 <command>ffplay</command> requires <application>X</application> for
189 building. Remove this option if <application>X</application> is
[8a1e4f4]190 installed.</para>
191
[0e2aa08]192 <para><option>--enable-<replaceable>&lt;codec&gt;</replaceable></option>: Review
[f009801]193 the available options and codecs using the
[dff08f73]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
[410e228b]200 <para><parameter>--enable-pp</parameter>: This switch enables
[be09b68]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
[dff08f73]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>
[8a1e4f4]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
[f009801]218 <para><filename>/etc/ffserver.conf</filename> and
[8a1e4f4]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
[f009801]230 <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
[8a1e4f4]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>
[dff08f73]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
[8a1e4f4]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>
[f009801]262 <para>is a command-line tool to convert video files, network streams
[8a1e4f4]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>
[f009801]273 <para>is a very simple and portable media player using the
[8a1e4f4]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>
[d7ecaa6]295 <para>is a library containing the <application>FFmpeg</application>
[8a1e4f4]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>
[f009801]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
[8a1e4f4]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>
[49e5372]318
319</sect1>
Note: See TracBrowser for help on using the repository browser.