source: multimedia/videoutils/ffmpeg.xml@ 5631507b

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 5631507b was 5631507b, checked in by Randy McMurchy <randy@…>, 17 years ago

Fixed a typo in FFmpeg

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

  • Property mode set to 100644
File size: 11.9 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 <ulink url="http://sourceforge.net/projects/faac">FAAC</ulink>,
86 <ulink url="http://sourceforge.net/projects/faac">FAAD2</ulink>,
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.</para>
113
114 <para>Install <application>FFmpeg</application> by running the following
115 commands:</para>
116
117<screen><userinput>./configure --prefix=/usr \
118 --enable-shared \
119 --enable-pthreads \
120 --disable-ffplay &amp;&amp;
121sed -i 's|/man|/share/man|' config.mak &amp;&amp;
122make &amp;&amp;
123texi2html --version >/dev/null 2>&amp;1 || make doc/ff{mpeg,play,server}.1</userinput></screen>
124
125 <para>If you have <application>teTeX</application> installed, the HTML
126 documentation was built during the <command>make</command> process. If you
127 wish to create additional formats of the documentation, you must have
128 <application>teTeX</application> installed, then issue following
129 commands:</para>
130
131<screen><userinput>cd doc &amp;&amp;
132for DOCNAME in faq ffmpeg-doc hooks ffserver-doc ffplay-doc; do
133 texi2dvi -b -p $DOCNAME.texi
134 texi2dvi -b $DOCNAME.texi
135 dvips -o $DOCNAME.ps $DOCNAME.dvi
136 if [ $DOCNAME = ffserver-doc ] || [ $DOCNAME = ffplay-doc ]; then \
137 continue
138 fi
139 makeinfo --plaintext --force -o $DOCNAME.txt $DOCNAME.texi
140done &amp;&amp;
141cd .. &amp;&amp;
142unset DOCNAME</userinput></screen>
143
144 <para>If you have <xref linkend="doxygen"/> installed and wish to create
145 the API documentation (takes about 100 MB of space), issue
146 <command>doxygen</command>.</para>
147
148 <para>This package does not come with a test suite that works.</para>
149
150 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
151
152<screen role="root"><userinput>make install &amp;&amp;
153install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
154install -v -m644 doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
155texi2html --version >/dev/null 2>&amp;1 || make install-man</userinput></screen>
156
157 <para>If you created additional formats of the documentation,
158 install it by issuing the following commands as the
159 <systemitem class="username">root</systemitem> user:</para>
160
161<screen role="root"><userinput>install -v -m644 doc/*.{html,dvi,pdf,ps} \
162 /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
163
164 <para>If you created the API documentation, install it by issuing the
165 following commands as the
166 <systemitem class="username">root</systemitem> user:</para>
167
168<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version;/api &amp;&amp;
169cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
170
171 </sect2>
172
173 <sect2 role="commands">
174 <title>Command Explanations</title>
175
176 <para><parameter>--enable-shared</parameter>: This switch is needed to
177 build the shared libraries, otherwise only static libraries are built
178 and installed.</para>
179
180 <para><parameter>--enable-pthreads</parameter>: This switch enables the
181 build to link against the Posix threads library.</para>
182
183 <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
184 <command>ffplay</command> requires <application>X</application> for
185 building. Remove this option if <application>X</application> is
186 installed.</para>
187
188 <para><option>--enable-<replaceable>&lt;codec&gt;</replaceable></option>: Review
189 the available options and codecs using the
190 <command>./configure --help</command> command. You must explicitly enable
191 each optional codec. Note that if you wish to build support for
192 postprocessing, liba52, xvid, x264, libfaad2, x11grab or swscaler, you
193 must pass <option>--enable-gpl</option> to the
194 <command>configure</command> script.</para>
195
196 <para><command>texi2html --version ...</command>: These commands are used
197 to check the presence of the <application>teTeX</application> package, and
198 builds/installs the man pages if it is not found.</para>
199
200 </sect2>
201
202 <sect2 role="configuration">
203 <title>Configuring FFmpeg</title>
204
205 <sect3 id="ffmpeg-config">
206 <title>Config Files</title>
207
208 <para><filename>/etc/ffserver.conf</filename> and
209 <filename>~/.ffmpeg/ffserver-config</filename></para>
210
211 <indexterm zone="ffmpeg ffmpeg-config">
212 <primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
213 </indexterm>
214
215 <indexterm zone="ffmpeg ffmpeg-config">
216 <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
217 </indexterm>
218
219 <para>You'll find a sample ffserver configuration file at
220 <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
221 <filename>doc/ffserver.conf</filename> in the source tree).</para>
222
223 </sect3>
224
225 </sect2>
226
227 <sect2 role="content">
228 <title>Contents</title>
229
230 <segmentedlist>
231 <segtitle>Installed Programs</segtitle>
232 <segtitle>Installed Libraries</segtitle>
233 <segtitle>Installed Directories</segtitle>
234
235 <seglistitem>
236 <seg>ffmpeg, ffserver, and optionally, ffplay</seg>
237 <seg>libavcodec.{so,a}, libavformat.{so,a}, libavutil.{so,a},
238 video hook modules and optionally, libpostproc.{so,a}</seg>
239 <seg>/usr/include/ffmpeg, /usr/include/postproc, /usr/lib/vhook, and
240 /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
241 </seglistitem>
242 </segmentedlist>
243
244 <variablelist>
245 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
246 <?dbfo list-presentation="list"?>
247 <?dbhtml list-presentation="table"?>
248
249 <varlistentry id="ffmpeg-prog">
250 <term><command>ffmpeg</command></term>
251 <listitem>
252 <para>is a command-line tool to convert video files, network streams
253 and input from a TV card to several video formats.</para>
254 <indexterm zone="ffmpeg ffmpeg-prog">
255 <primary sortas="b-ffmpeg">ffmpeg</primary>
256 </indexterm>
257 </listitem>
258 </varlistentry>
259
260 <varlistentry id="ffplay">
261 <term><command>ffplay</command></term>
262 <listitem>
263 <para>is a very simple and portable media player using the
264 <filename>ffmpeg</filename> libraries and the SDL library.</para>
265 <indexterm zone="ffmpeg ffplay">
266 <primary sortas="b-ffplay">ffplay</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="ffserver">
272 <term><command>ffserver</command></term>
273 <listitem>
274 <para>is a streaming server for everything that <command>ffmpeg</command>
275 could use as input (files, streams, TV card input, webcam, etc.).</para>
276 <indexterm zone="ffmpeg ffserver">
277 <primary sortas="b-ffserver">ffserver</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="libavcodec">
283 <term><filename class='libraryfile'>libavcodec.so</filename></term>
284 <listitem>
285 <para>is a library containing the <application>FFmpeg</application>
286 codecs (both encoding and decoding).</para>
287 <indexterm zone="ffmpeg libavcodec">
288 <primary sortas="c-libavcodec">libavcodec.so</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="libavformat">
294 <term><filename class='libraryfile'>libavformat.so</filename></term>
295 <listitem>
296 <para>is a library containing the file formats handling (mux and demux code
297 for several formats) used by <command>ffplay</command> as well as
298 allowing the generation of audio or video streams.</para>
299 <indexterm zone="ffmpeg libavformat">
300 <primary sortas="c-libavformat">libavformat.so</primary>
301 </indexterm>
302 </listitem>
303 </varlistentry>
304
305 </variablelist>
306
307 </sect2>
308
309</sect1>
Note: See TracBrowser for help on using the repository browser.