source: multimedia/videoutils/ffmpeg.xml@ e77976f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 e77976f was e77976f, checked in by Randy McMurchy <randy@…>, 18 years ago

Changed all the references to X Window System links to a common entity displayed as 'X Window System' - now if there is ever an addition or removal of one of the X packages, an update in only one place will be required

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

  • Property mode set to 100644
File size: 11.2 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY ffmpeg-download-http "http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-&ffmpeg-version;.tar.gz">
8 <!ENTITY ffmpeg-download-ftp " ">
9 <!ENTITY ffmpeg-md5sum "ea5587e3c66d50b1503b82ac4179c303">
10 <!ENTITY ffmpeg-size "1.6 MB">
11 <!ENTITY ffmpeg-buildsize "62.9 MB (built with all dependencies)">
12 <!ENTITY ffmpeg-time "1.0 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 <keywordset>
22 <keyword role="package">ffmpeg-&ffmpeg-version;.tar</keyword>
23 <keyword role="ftpdir">ffmpeg</keyword>
24 </keywordset>
25 </sect1info>
26
27 <title>FFmpeg-&ffmpeg-version;</title>
28
29 <indexterm zone="ffmpeg">
30 <primary sortas="a-FFmpeg">FFmpeg</primary>
31 </indexterm>
32
33 <sect2 role="package">
34 <title>Introduction to FFmpeg</title>
35
36 <para><application>FFmpeg</application> is a solution to record, convert and
37 stream audio and video. It is a very fast video and audio converter and it can
38 also acquire from a live audio/video source. Designed to be intuitive, the
39 command-line interface (<command>ffmpeg</command>) tries to figure out all the
40 parameters, when possible. <application>FFmpeg</application> can also convert
41 from any sample rate to any other, and resize video on the fly with a high
42 quality polyphase filter. <application>FFmpeg</application> can use a
43 video4linux compatible video source and any Open Sound System audio
44 source.</para>
45
46 <bridgehead renderas="sect3">Package Information</bridgehead>
47 <itemizedlist spacing="compact">
48 <listitem>
49 <para>Download (HTTP): <ulink url="&ffmpeg-download-http;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download (FTP): <ulink url="&ffmpeg-download-ftp;"/></para>
53 </listitem>
54 <listitem>
55 <para>Download MD5 sum: &ffmpeg-md5sum;</para>
56 </listitem>
57 <listitem>
58 <para>Download size: &ffmpeg-size;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated disk space required: &ffmpeg-buildsize;</para>
62 </listitem>
63 <listitem>
64 <para>Estimated build time: &ffmpeg-time;</para>
65 </listitem>
66 </itemizedlist>
67
68 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
69 <itemizedlist spacing="compact">
70 <listitem>
71 <para>Required patch: <ulink
72 url="&patch-root;/ffmpeg-&ffmpeg-version;-gcc4-1.patch"/></para>
73 </listitem>
74 <listitem>
75 <para>Required patch: <ulink
76 url="&patch-root;/ffmpeg-&ffmpeg-version;-amr_fixes-1.patch"/></para>
77 </listitem>
78 </itemizedlist>
79
80 <bridgehead renderas="sect3">FFmpeg Dependencies</bridgehead>
81
82 <bridgehead renderas="sect4">Optional</bridgehead>
83 <para role="optional"><xref linkend="libvorbis"/>,
84 <xref linkend="lame"/>,
85 <xref linkend="imlib2"/>,
86 <xref linkend="x-window-system"/>,
87 <xref linkend="sdl"/>,
88 <xref linkend="freetype2"/>,
89 <xref linkend="mplayer"/> (for the shared post-processing library),
90 <ulink url="http://sourceforge.net/projects/faac">FAAC</ulink>,
91 <ulink url="http://sourceforge.net/projects/faac">FAAD2</ulink>,
92 <ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26104-540.zip">
93 AMR narrowband (floating point)</ulink> or
94 <ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26073-530.zip">
95 AMR naarrowband (fixed point)</ulink>,
96 <ulink url="http://www.3gpp.org/ftp/Specs/latest/Rel-5/26_series/26204-530.zip">
97 AMR wideband</ulink>, and
98 <xref linkend="tex"/> (to build HTML documentation)</para>
99
100 </sect2>
101
102 <sect2 role="installation">
103 <title>Installation of FFmpeg</title>
104
105 <para>Install <application>FFmpeg</application> by running the following
106 commands:</para>
107
108 <note>
109 <para>Review the <filename>doc/optimization.txt</filename> file in the
110 source tree for information about optimizing the build.</para>
111 </note>
112
113<screen><userinput>patch -Np1 -i ../ffmpeg-&ffmpeg-version;-gcc4-1.patch &amp;&amp;
114patch -Np1 -i ../ffmpeg-&ffmpeg-version;-amr_fixes-1.patch &amp;&amp;
115sed -i "s/static uint64/const uint64/" \
116 libavcodec/liba52/resample_mmx.c &amp;&amp;
117./configure --prefix=/usr --enable-shared \
118 --enable-pthreads --disable-ffplay &amp;&amp;
119make</userinput></screen>
120
121 <para>If you have <application>TeX</application> installed, the man pages
122 and HTML documentation were built during the <command>make</command>
123 process. Skip to the <systemitem class="username">root</systemitem> user
124 installation steps if you don't need other formats of the documentation, or
125 issue any or all of the following commands to create the additional
126 formats.</para>
127
128<screen><userinput>for DOCFILE in faq ffmpeg-doc ffplay-doc ffserver-doc hooks
129do
130 texi2pdf -b $DOCFILE.texi
131 texi2dvi -b $DOCFILE.texi
132 dvips -o $DOCFILE.ps $DOCFILE.dvi
133 makeinfo --plaintext --force -o $DOCFILE.txt $DOCFILE.texi
134done</userinput></screen>
135
136 <para>If you do not have <application>TeX</application> installed, use the
137 following command to build the man pages:</para>
138
139<screen><userinput>make -C doc ff{mpeg,play,server}.1</userinput></screen>
140
141 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
142
143<screen role="root"><userinput>make install</userinput></screen>
144
145 <para>If you have <application>TeX</application> installed on your system,
146 install the documentation by issuing the following commands as the
147 <systemitem class="username">root</systemitem> user (modify the command
148 appropriately to reflect the documentation formats you've created):</para>
149
150<screen role="root"><userinput>install -v -m755 -d /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
151install -v -m644 doc/*.{html,dvi,pdf,ps,txt}
152 /usr/share/doc/ffmpeg-&ffmpeg-version;</userinput></screen>
153
154 </sect2>
155
156 <sect2 role="commands">
157 <title>Command Explanations</title>
158
159 <para><command>sed -i -e "s/static uint64/const uint64/"
160 libavcodec/liba52/resample_mmx.c</command>: This command fixes an issue
161 on machines with MMX capability and use <application>GCC</application> >=
162 3.4.x to compile in A52 support using the <option>--enable-a52</option>
163 parameter passed to the <command>configure</command> script.</para>
164
165 <para><parameter>--enable-shared</parameter>: This switch is needed to
166 build the <filename class="libraryfile">libavcodec</filename> and
167 <filename class="libraryfile">libavformat</filename> shared
168 libraries.</para>
169
170 <para><parameter>--enable-pthreads</parameter>: This switch enables the
171 build to link against the Posix threads library.</para>
172
173 <para><parameter>--disable-ffplay</parameter>: Only installs the server part.
174 <command>ffplay</command> requires <application>X</application> for
175 building. Remove this option if <application>X</application> is
176 installed.</para>
177
178 <para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
179 the available options and codecs using the
180 <command>./configure --help</command> command. Also review the information
181 at the end of the configure script (<command>cat</command> the file or view
182 it using a text editor) for information about building support for the AMR
183 codecs.</para>
184
185 </sect2>
186
187 <sect2 role="configuration">
188 <title>Configuring FFmpeg</title>
189
190 <sect3 id="ffmpeg-config">
191 <title>Config Files</title>
192
193 <para><filename>/etc/ffserver.conf</filename> and
194 <filename>~/.ffmpeg/ffserver-config</filename></para>
195
196 <indexterm zone="ffmpeg ffmpeg-config">
197 <primary sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
198 </indexterm>
199
200 <indexterm zone="ffmpeg ffmpeg-config">
201 <primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
202 </indexterm>
203
204 <para>You'll find a sample ffserver configuration file at
205 <ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
206 <filename>doc/ffserver.conf</filename> in the source tree).</para>
207
208 </sect3>
209
210 </sect2>
211
212 <sect2 role="content">
213 <title>Contents</title>
214
215 <segmentedlist>
216 <segtitle>Installed Programs</segtitle>
217 <segtitle>Installed Libraries</segtitle>
218 <segtitle>Installed Directories</segtitle>
219
220 <seglistitem>
221 <seg>ffmpeg, ffserver, and optionally, ffplay</seg>
222 <seg>libavcodec.so, libavformat.so, and video hook modules</seg>
223 <seg>/usr/include/ffmpeg, /usr/lib/vhook, and
224 /usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
225 </seglistitem>
226 </segmentedlist>
227
228 <variablelist>
229 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
230 <?dbfo list-presentation="list"?>
231 <?dbhtml list-presentation="table"?>
232
233 <varlistentry id="ffmpeg-prog">
234 <term><command>ffmpeg</command></term>
235 <listitem>
236 <para>is a command-line tool to convert video files, network streams
237 and input from a TV card to several video formats.</para>
238 <indexterm zone="ffmpeg ffmpeg-prog">
239 <primary sortas="b-ffmpeg">ffmpeg</primary>
240 </indexterm>
241 </listitem>
242 </varlistentry>
243
244 <varlistentry id="ffplay">
245 <term><command>ffplay</command></term>
246 <listitem>
247 <para>is a very simple and portable media player using the
248 <filename>ffmpeg</filename> libraries and the SDL library.</para>
249 <indexterm zone="ffmpeg ffplay">
250 <primary sortas="b-ffplay">ffplay</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry id="ffserver">
256 <term><command>ffserver</command></term>
257 <listitem>
258 <para>is a streaming server for everything that <command>ffmpeg</command>
259 could use as input (files, streams, TV card input, webcam, etc.).</para>
260 <indexterm zone="ffmpeg ffserver">
261 <primary sortas="b-ffserver">ffserver</primary>
262 </indexterm>
263 </listitem>
264 </varlistentry>
265
266 <varlistentry id="libavcodec">
267 <term><filename class='libraryfile'>libavcodec.so</filename></term>
268 <listitem>
269 <para>is a library containing the <application>FFmpeg</application>
270 codecs (both encoding and decoding).</para>
271 <indexterm zone="ffmpeg libavcodec">
272 <primary sortas="c-libavcodec">libavcodec.so</primary>
273 </indexterm>
274 </listitem>
275 </varlistentry>
276
277 <varlistentry id="libavformat">
278 <term><filename class='libraryfile'>libavformat.so</filename></term>
279 <listitem>
280 <para>is a library containing the file formats handling (mux and demux code
281 for several formats) used by <command>ffplay</command> as well as
282 allowing the generation of audio or video streams.</para>
283 <indexterm zone="ffmpeg libavformat">
284 <primary sortas="c-libavformat">libavformat.so</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 </variablelist>
290
291 </sect2>
292
293</sect1>
Note: See TracBrowser for help on using the repository browser.