source: multimedia/videoutils/ffmpeg.xml@ 65a0209

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 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 65a0209 was 65a0209, checked in by Randy McMurchy <randy@…>, 19 years ago

Added indexing tags and instructions to install HTML documentation to FFmpeg

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

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
2 "http://www.oasis-open.org/docbook/xml/4.3/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-size "1.6 MB">
9 <!ENTITY ffmpeg-buildsize "49 MB">
10 <!ENTITY ffmpeg-time "0.87 SBU">
11]>
12
13<sect1 id="ffmpeg-package" xreflabel="FFmpeg-&ffmpeg-version;">
14<sect1info>
15<othername>$LastChangedBy$</othername>
16<date>$Date$</date>
17</sect1info>
18<?dbhtml filename="ffmpeg.html"?>
19<title>FFmpeg-&ffmpeg-version;</title>
20<indexterm zone="ffmpeg-package">
21<primary sortas="a-FFmpeg">FFmpeg</primary></indexterm>
22
23<sect2>
24<title>Introduction to <application>FFmpeg</application></title>
25
26<para><application>FFmpeg</application> is a solution to record, convert and
27stream audio and video. It is a very fast video and audio converter and it can
28also acquire from a live audio/video source. Designed to be intuitive, the
29command-line interface (<command>ffmpeg</command>) tries to figure out all the
30parameters, when possible. <application>FFmpeg</application> can also convert
31from any sample rate to any other, and resize video on the fly with a high
32quality polyphase filter. <application>FFmpeg</application> can use a
33video4linux compatible video source and any Open Sound System audio
34source.</para>
35
36<sect3><title>Package information</title>
37<itemizedlist spacing='compact'>
38<listitem><para>Download (HTTP):
39<ulink url="&ffmpeg-download-http;"/></para></listitem>
40<listitem><para>Download (FTP):
41<ulink url="&ffmpeg-download-ftp;"/></para></listitem>
42<listitem><para>Download size: &ffmpeg-size;</para></listitem>
43<listitem><para>Estimated disk space required:
44&ffmpeg-buildsize;</para></listitem>
45<listitem><para>Estimated build time:
46&ffmpeg-time;</para></listitem></itemizedlist>
47</sect3>
48
49<sect3><title><application>FFmpeg</application> dependencies</title>
50<sect4><title>Optional</title>
51<para><xref linkend="libvorbis"/>,
52<xref linkend="lame-package"/>,
53<xref linkend="liba52"/>,
54<xref linkend="imlib2"/>,
55X (<xref linkend="xfree86"/> or <xref linkend="xorg"/>),
56<xref linkend="sdl"/>,
57<xref linkend="freetype2"/>,
58<ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAC</ulink> and
59<ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD</ulink></para>
60</sect4>
61</sect3>
62
63</sect2>
64
65<sect2>
66<title>Installation of <application>FFmpeg</application></title>
67
68<para>Install <application>FFmpeg</application> by running the following
69commands:</para>
70
71<note><para>Review the <filename>doc/optimization.txt</filename> file in the
72source tree for information about optimizing the build.</para></note>
73
74<!-- <screen><userinput><command>patch -Np1 -i ../ffmpeg-&ffmpeg-version;-gcc34-1.patch &amp;&amp; -->
75<screen><userinput><command>./configure --prefix=/usr --enable-shared \
76 --enable-pthreads --disable-ffplay &amp;&amp;
77make &amp;&amp;
78make -C doc {ffmpeg,ffserver,ffplay}.1</command></userinput></screen>
79
80<para>Now, as the root user:</para>
81
82<screen><userinput role='root'><command>make install &amp;&amp;
83install -v -d -m755 /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
84install -v -m644 doc/*.html /usr/share/doc/ffmpeg-&ffmpeg-version;</command></userinput></screen>
85
86</sect2>
87
88<sect2>
89<title>Command explanations</title>
90
91<para><parameter>--enable-shared</parameter>: This switch is needed to
92build the <filename class="libraryfile">libavcodec</filename> and
93<filename class="libraryfile">libavformat</filename> shared
94libraries.</para>
95
96<para><parameter>--enable-pthreads</parameter>: This switch enables the
97build to link against the Posix threads library.</para>
98
99<para><option>--disable-ffplay</option>: Only installs the server part.
100<command>ffplay</command> requires <application>X</application> for
101building. Remove this option if <application>X</application> is
102installed.</para>
103
104<para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
105the available options and codecs using the
106<command>./configure --help</command> command.</para>
107
108<para><command>make -C doc {ffmpeg,ffserver,ffplay}.1</command>: This builds
109the man pages which are installed by <command>make install</command>.</para>
110
111<note><para>Linking the <application>liba52</application> library using the
112<option>--enable-a52</option> parameter to <command>configure</command> is
113known to break the build.</para></note>
114
115</sect2>
116
117<sect2>
118<title>Configuring <application>FFmpeg</application></title>
119
120<sect3 id="ffmpeg-config"><title>Config files</title>
121
122<para><filename>/etc/ffserver.conf</filename> and
123<filename>~/.ffmpeg/ffserver-config</filename></para>
124
125<indexterm zone="ffmpeg-package ffmpeg-config">
126<primary
127sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
128</indexterm>
129<indexterm zone="ffmpeg-package ffmpeg-config">
130<primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
131</indexterm>
132
133<para>You'll find a sample ffserver configuration file at
134<ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
135<filename>doc/ffserver.conf</filename> in the source tree).</para>
136</sect3>
137
138</sect2>
139
140<sect2>
141<title>Contents</title>
142
143<segmentedlist>
144<segtitle>Installed Programs</segtitle>
145<segtitle>Installed Libraries</segtitle>
146<segtitle>Installed Directories</segtitle>
147<seglistitem>
148<seg>ffmpeg, ffserver and optionally, ffplay</seg>
149<seg>libavcodec.so, libavformat.so and video hook modules</seg>
150<seg>/usr/include/ffmpeg, /usr/lib/vhook and
151/usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
152</seglistitem>
153</segmentedlist>
154
155<variablelist>
156<bridgehead renderas="sect3">Short Descriptions</bridgehead>
157<?dbfo list-presentation="list"?>
158
159<varlistentry id="ffmpeg">
160<term><command>ffmpeg</command></term>
161<listitem><para>is a command-line tool to convert video files, network streams
162and input from a <acronym>TV</acronym> card to several video formats.</para>
163<indexterm zone="ffmpeg-package ffmpeg">
164<primary sortas="b-ffmpeg">ffmpeg</primary></indexterm>
165</listitem>
166</varlistentry>
167
168<varlistentry id="ffplay">
169<term><command>ffplay</command></term>
170<listitem><para>is a very simple and portable media player using the
171<filename>ffmpeg</filename> libraries and the <acronym>SDL</acronym>
172library.</para>
173<indexterm zone="ffmpeg-package ffplay">
174<primary sortas="b-ffplay">ffplay</primary></indexterm>
175</listitem>
176</varlistentry>
177
178<varlistentry id="ffserver">
179<term><command>ffserver</command></term>
180<listitem><para>is a streaming server for everything that
181<command>ffmpeg</command> could use as input (files, streams, TV card input,
182webcam, etc.).</para>
183<indexterm zone="ffmpeg-package ffserver">
184<primary sortas="b-ffserver">ffserver</primary></indexterm>
185</listitem>
186</varlistentry>
187
188<varlistentry id="libavcodec">
189<term><filename class='libraryfile'>libavcodec.so</filename></term>
190<listitem><para>is a library containing the <application>FFmpeg</application>
191codecs (both encoding and decoding).</para>
192<indexterm zone="ffmpeg-package libavcodec">
193<primary sortas="c-libavcodec">libavcodec.so</primary></indexterm>
194</listitem>
195</varlistentry>
196
197<varlistentry id="libavformat">
198<term><filename class='libraryfile'>libavformat.so</filename></term>
199<listitem><para>is a library containing the file formats handling (mux and
200demux code for several formats) used by <command>ffplay</command> as well as
201allowing the generation of audio or video streams.</para>
202<indexterm zone="ffmpeg-package libavformat">
203<primary sortas="c-libavformat">libavformat.so</primary></indexterm>
204</listitem>
205</varlistentry>
206</variablelist>
207
208</sect2>
209
210</sect1>
211
Note: See TracBrowser for help on using the repository browser.