source: multimedia/videoutils/ffmpeg.xml@ 2216c969

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 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 2216c969 was 2216c969, checked in by Andrew Benton <andy@…>, 12 years ago

create the ffmpeg html docs

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

  • Property mode set to 100644
File size: 16.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
8 "http://ffmpeg.org/releases/ffmpeg-&ffmpeg-version;.tar.bz2">
9 <!ENTITY ffmpeg-download-ftp " ">
10 <!ENTITY ffmpeg-md5sum "ff8cb914f657e164dd60ea1008b555a8">
11 <!ENTITY ffmpeg-size "5.8 MB">
12 <!ENTITY ffmpeg-buildsize "256 MB">
13 <!ENTITY ffmpeg-time "3.9 SBU">
14]>
15
16<sect1 id="ffmpeg" xreflabel="FFmpeg-&ffmpeg-version;">
17 <?dbhtml filename="ffmpeg.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>FFmpeg-&ffmpeg-version;</title>
25
26 <indexterm zone="ffmpeg">
27 <primary sortas="a-FFmpeg">FFmpeg</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to FFmpeg</title>
32
33 <para>
34 <application>FFmpeg</application> is a solution to record, convert and
35 stream audio and video. It is a very fast video and audio converter and it
36 can also acquire from a live audio/video source. Designed to be intuitive,
37 the command-line interface (<command>ffmpeg</command>) tries to figure out
38 all the parameters, when possible. <application>FFmpeg</application> can
39 also convert from any sample rate to any other, and resize video on the
40 fly with a high quality polyphase filter.
41 <application>FFmpeg</application> can use a video4linux compatible video
42 source and any Open Sound System audio source.
43 </para>
44
45 &lfs71_checked;
46
47 <bridgehead renderas="sect3">Package Information</bridgehead>
48 <itemizedlist spacing="compact">
49 <listitem>
50 <para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
51 </listitem>
52 <listitem>
53 <para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
54 </listitem>
55 <listitem>
56 <para>Download MD5 sum: &ffmpeg-md5sum;</para>
57 </listitem>
58 <listitem>
59 <para>Download size: &ffmpeg-size;</para>
60 </listitem>
61 <listitem>
62 <para>Estimated disk space required: &ffmpeg-buildsize;</para>
63 </listitem>
64 <listitem>
65 <para>Estimated build time: &ffmpeg-time;</para>
66 </listitem>
67 </itemizedlist>
68
69 <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
70
71 <bridgehead renderas="sect4">Recommended</bridgehead>
72 <para role="recommended"><xref linkend="yasm"/></para>
73
74 <bridgehead renderas="sect4">Optional</bridgehead>
75 <para role="optional">
76 <xref linkend="faad2"/>,
77 <xref linkend="lame"/>,
78 <xref linkend="libtheora"/>,
79 <xref linkend="libvorbis"/>,
80 <xref linkend="libvpx"/>,
81 <xref linkend="x-window-system"/>,
82 <ulink url="http://www.videolan.org/developers/x264.html">x264</ulink>
83 <xref linkend="xvid"/>,
84 <ulink url="http://sourceforge.net/projects/opencore-amr">OpenCore AMR</ulink>,
85 <xref linkend="faac"/>,
86 <xref linkend="freetype2"/>,
87 <ulink url="http://libgsm.sourcearchive.com/">GSM</ulink>,
88 <ulink url="http://sourceforge.net/projects/libdc1394">libdc1394</ulink>,
89 <ulink url="http://svn.mplayerhq.hu/nut/src/trunk/">libnut</ulink>
90 (SVN checkout),
91 <ulink url="http://xavs.sourceforge.net/">libxavs</ulink>
92 (SVN checkout),
93 <ulink url="http://sourceforge.net/projects/librtmp">librtmp</ulink>,
94 <ulink url="http://diracvideo.org/">libschroedinger</ulink>,
95 <ulink url="http://medialibrary.sourceforge.net/">MediaLibrary</ulink>,
96 <ulink
97 url="http://connect.creativelabs.com/openal/default.aspx">OpenAL</ulink>,
98 <ulink url="http://tipok.org.ua/node/17">libaacplus</ulink>,
99 <ulink url="http://code.google.com/p/libass/">libass</ulink>,
100 <ulink url="http://www.celt-codec.org/">libcelt</ulink>,
101 <ulink url="http://ftp.gnu.org/pub/gnu/libcdio/">libcdio</ulink>,
102 <ulink
103 url="http://sourceforge.net/projects/opencvlibrary/">libopencv</ulink>,
104 <ulink url="http://sourceforge.net/projects/libdc1394/">libdc1394</ulink>,
105 <ulink url="http://linuxtv.org/downloads/v4l-utils/">libv4l2</ulink>,
106 <xref linkend="openjpeg"/>
107 (<application>FFmpeg</application> includes code for it's own jpeg2000
108 encoder and decoder which is enabled by default),
109 <xref linkend="speex"/>,
110 <xref linkend="gnutls"/>,
111 <xref linkend="openssl"/>,
112 <xref linkend="sdl"/> and
113 <ulink url="http://www.nongnu.org/texi2html">texi2html</ulink>
114 (to build HTML documentation).</para>
115
116 <para condition="html" role="usernotes">
117 User Notes: <ulink url="&blfs-wiki;/ffmpeg"/>
118 </para>
119 </sect2>
120
121 <sect2 role="installation">
122 <title>Installation of FFmpeg</title>
123
124 <para>
125 Install <application>FFmpeg</application> by running the following
126 commands:
127 </para>
128
129<screen><userinput>./configure --prefix=/usr --enable-gpl \
130 --enable-shared --disable-static &amp;&amp;
131make</userinput></screen>
132
133 <para>To convert the docs to html use the following commands:</para>
134
135<screen><userinput>cd doc &amp;&amp;
136sed -i '/@top/d;/ignore$/d' *.texi &amp;&amp;
137sed -i '/@include avoptions/d' avtools-common-opts.texi &amp;&amp;
138for DOC in *.texi
139do makeinfo --html --no-split -o ${DOC%texi}html ${DOC}
140done &amp;&amp;
141cd ..</userinput></screen>
142
143 <para>
144 If you have <xref linkend="doxygen"/> installed and wish to create the API
145 documentation (takes about 150 MB of space), issue the command
146 <command>doxygen</command>.
147 </para>
148
149 <para>This package does not come with a test suite.</para>
150
151 <para>Now, as the <systemitem class="username">root</systemitem>
152 user:</para>
153
154<screen role="root"><userinput>make install &amp;&amp;
155mkdir /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
156cp doc/*.html doc/*.txt /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
157
158 <para>
159 The <application>FFmpeg</application> source contains a tool called
160 <command>qt-faststart</command> that can modify QuickTime formatted movies
161 (mov or mp4) so that the header information is located at the beginning of
162 the file instead of the end. This allows video players to begin playing
163 the content before the entire file has been downloaded. An example of
164 where this is useful for preparing videos before uploading them to
165 YouTube. If need <command>qt-faststart</command>, you can compile it with
166 gcc. As the <systemitem class="username">root</systemitem> user:
167 </para>
168
169<screen><userinput>gcc ../tools/qt-faststart.c -o /usr/bin/qt-faststart</userinput></screen>
170
171 <para>
172 If you used <command>doxygen</command> to create the API documentation,
173 install it by issuing the following commands as the
174 <systemitem class="username">root</systemitem> user:
175 </para>
176
177<screen role="root"><userinput>mkdir /usr/share/doc/ffmpeg-&ffmpeg-version;/api &amp;&amp;
178cp -v doxy/* /usr/share/doc/ffmpeg-&ffmpeg-version;/api</userinput></screen>
179 </sect2>
180
181 <sect2 role="commands">
182 <title>Command Explanations</title>
183
184 <para>
185 <option>--enable-gpl</option>: This switch enables the use of GPL code and
186 permits support for postprocessing, swscale and many other features.
187 </para>
188
189 <para>
190 <option>--enable-shared</option>: This switch is needed to build the
191 shared libraries, otherwise only static libraries are built and installed.
192 </para>
193
194 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
195 href="../../xincludes/static-libraries.xml"/>
196
197 <para>
198 <option>--enable-<replaceable>&lt;codec&gt;</replaceable></option>:
199 <application>FFmpeg</application> comes with code to compile decoders for
200 almost every codec you could think of. The only reason to enable a
201 specific codec (and make <application>FFmpeg</application> link to the
202 prerequisite shared library installed on your system) is to make ffmpeg
203 compile an <emphasis>encoder</emphasis> for that codec.
204 <application>FFmpeg</application> is an excellent collection of decoders.
205 If you just want to use <application>FFmpeg</application> to watch video
206 or listen to music (via other applications like
207 <application>Gstreamer</application> or Xine) then you will not benefit
208 from linking FFmpeg to another library.
209 </para>
210
211 <para>
212 <command>sed -i '/@top/d;/ignore$/d' *.texi</command> and
213 <command>sed -i '/@include avoptions/d' avtools-common-opts.texi</command>:
214 these seds work around problems with the .texi files.
215 </para>
216
217 <para>
218 <command>makeinfo --html --no-split -o ${DOC%texi}html ${DOC}</command>:
219 this converts the .texi files into html.
220 </para>
221 </sect2>
222
223 <sect2 role="configuration">
224 <title>Configuring FFmpeg</title>
225
226 <sect3 id="ffmpeg-config">
227 <title>Config Files</title>
228
229 <para><filename>/etc/ffserver.conf</filename> and
230 <filename>~/.ffmpeg/ffserver-config</filename></para>
231
232 <indexterm zone="ffmpeg ffmpeg-config">
233 <primary
234 sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
235 </indexterm>
236
237 <indexterm zone="ffmpeg ffmpeg-config">
238 <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
239 </indexterm>
240
241 <para>
242 You'll find a sample <command>ffserver</command> configuration file at
243 <filename>doc/ffserver.conf</filename> in the source tree.
244 </para>
245 </sect3>
246 </sect2>
247
248 <sect2 role="content">
249 <title>Contents</title>
250
251 <segmentedlist>
252 <segtitle>Installed Programs</segtitle>
253 <segtitle>Installed Libraries</segtitle>
254 <segtitle>Installed Directories</segtitle>
255
256 <seglistitem>
257 <seg>
258 ffmpeg,
259 ffplay,
260 ffprobe,
261 ffserver and
262 qt-faststart
263 </seg>
264 <seg>
265 libavcodec.so,
266 libavdevice.so,
267 libavfilter.so,
268 libavformat.so,
269 libavutil.so,
270 libpostproc.so,
271 libswresample and
272 libswscale.so
273 </seg>
274 <seg>
275 /usr/include/libavcodec,
276 /usr/include/libavdevice,
277 /usr/include/libavfilter,
278 /usr/include/libavformat,
279 /usr/include/libavutil,
280 /usr/include/libpostproc,
281 /usr/include/libswresample
282 /usr/include/libswscale,
283 /usr/share/ffmpeg and
284 /usr/share/doc/ffmpeg-&ffmpeg-version;
285 </seg>
286 </seglistitem>
287 </segmentedlist>
288
289 <variablelist>
290 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
291 <?dbfo list-presentation="list"?>
292 <?dbhtml list-presentation="table"?>
293
294 <varlistentry id="ffmpeg-prog">
295 <term><command>ffmpeg</command></term>
296 <listitem>
297 <para>
298 is a command-line tool to convert video files, network streams and
299 input from a TV card to several video formats.
300 </para>
301 <indexterm zone="ffmpeg ffmpeg-prog">
302 <primary sortas="b-ffmpeg">ffmpeg</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="ffplay">
308 <term><command>ffplay</command></term>
309 <listitem>
310 <para>
311 is a very simple and portable media player using the
312 <filename>ffmpeg</filename> libraries and the SDL library.
313 </para>
314 <indexterm zone="ffmpeg ffplay">
315 <primary sortas="b-ffplay">ffplay</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="ffprobe">
321 <term><command>ffprobe</command></term>
322 <listitem>
323 <para>
324 gathers information from multimedia streams and prints it in a human
325 and machine-readable fashion.
326 </para>
327 <indexterm zone="ffmpeg ffprobe">
328 <primary sortas="b-ffprobe">ffprobe</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="ffserver">
334 <term><command>ffserver</command></term>
335 <listitem>
336 <para>
337 is a streaming server for everything that <command>ffmpeg</command>
338 could use as input (files, streams, TV card input, webcam, etc).
339 </para>
340 <indexterm zone="ffmpeg ffserver">
341 <primary sortas="b-ffserver">ffserver</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="qt-faststart">
347 <term><command>qt-faststart</command></term>
348 <listitem>
349 <para>
350 moves the index file to the front of quicktime (mov/mp4) videos.
351 </para>
352 <indexterm zone="ffmpeg qt-faststart">
353 <primary sortas="b-qt-faststart">qt-faststart</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="libavcodec">
359 <term><filename class="libraryfile">libavcodec.so</filename></term>
360 <listitem>
361 <para>
362 is a library containing the <application>FFmpeg</application> codecs
363 (both encoding and decoding).
364 </para>
365 <indexterm zone="ffmpeg libavcodec">
366 <primary sortas="c-libavcodec">libavcodec.so</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="libavdevice">
372 <term><filename class="libraryfile">libavdevice.so</filename></term>
373 <listitem>
374 <para>
375 is the <application>FFmpeg</application> device handling library.
376 </para>
377 <indexterm zone="ffmpeg libavdevice">
378 <primary sortas="c-libavdevice">libavdevice.so</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 <varlistentry id="libavfilter">
384 <term><filename class="libraryfile">libavfilter.so</filename></term>
385 <listitem>
386 <para>
387 is a library of filters that can alter video or audio between the
388 decoder and the encoder (or output).
389 </para>
390 <indexterm zone="ffmpeg libavfilter">
391 <primary sortas="c-libavfilter">libavfilter.so</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="libavformat">
397 <term><filename class="libraryfile">libavformat.so</filename></term>
398 <listitem>
399 <para>
400 is a library containing the file formats handling (mux and demux
401 code for several formats) used by <command>ffplay</command> as well
402 as allowing the generation of audio or video streams.
403 </para>
404 <indexterm zone="ffmpeg libavformat">
405 <primary sortas="c-libavformat">libavformat.so</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="libavutil">
411 <term><filename class="libraryfile">libavutil.so</filename></term>
412 <listitem>
413 <para>is the <application>FFmpeg</application> utility library.</para>
414 <indexterm zone="ffmpeg libavutil">
415 <primary sortas="c-libavutil">libavutil.so</primary>
416 </indexterm>
417 </listitem>
418 </varlistentry>
419
420 <varlistentry id="libpostproc">
421 <term><filename class="libraryfile">libpostproc.so</filename></term>
422 <listitem>
423 <para>
424 is the <application>FFmpeg</application> post processing library.
425 </para>
426 <indexterm zone="ffmpeg libpostproc">
427 <primary sortas="c-libpostproc">libpostproc.so</primary>
428 </indexterm>
429 </listitem>
430 </varlistentry>
431
432 <varlistentry id="libswresample">
433 <term><filename class="libraryfile">libswresample.so</filename></term>
434 <listitem>
435 <para>
436 is the <application>FFmpeg</application> audio rescaling library,
437 it contains functions for converting audio sample formats.
438 </para>
439 <indexterm zone="ffmpeg libswresample">
440 <primary sortas="c-libswresample">libswresample.so</primary>
441 </indexterm>
442 </listitem>
443 </varlistentry>
444
445 <varlistentry id="libswscale">
446 <term><filename class="libraryfile">libswscale.so</filename></term>
447 <listitem>
448 <para>
449 is the <application>FFmpeg</application> image rescaling library.
450 </para>
451 <indexterm zone="ffmpeg libswscale">
452 <primary sortas="c-libswscale">libswscale.so</primary>
453 </indexterm>
454 </listitem>
455 </varlistentry>
456 </variablelist>
457 </sect2>
458</sect1>
Note: See TracBrowser for help on using the repository browser.