source: multimedia/videoutils/ffmpeg.xml@ 0b5a693

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 0b5a693 was 0b5a693, checked in by Randy McMurchy <randy@…>, 19 years ago

Final round of renaming the package-name entities

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

  • Property mode set to 100644
File size: 7.9 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" 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">
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"/>,
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>,
59<ulink url="http://www.audiocoding.com/modules/mydownloads/">FAAD</ulink> and
60<xref linkend="tex"/> (to build <acronym>HTML</acronym> documentation)</para>
61</sect4>
62</sect3>
63
64</sect2>
65
66<sect2>
67<title>Installation of <application>FFmpeg</application></title>
68
69<para>Install <application>FFmpeg</application> by running the following
70commands:</para>
71
72<note><para>Review the <filename>doc/optimization.txt</filename> file in the
73source tree for information about optimizing the build.</para></note>
74
75<!-- <screen><userinput><command>patch -Np1 -i ../ffmpeg-&ffmpeg-version;-gcc34-1.patch &amp;&amp; -->
76<screen><userinput><command>./configure --prefix=/usr --enable-shared \
77 --enable-pthreads --disable-ffplay &amp;&amp;
78make &amp;&amp;
79make -C doc {ffmpeg,ffserver,ffplay}.1</command></userinput></screen>
80
81<para>Now, as the root user:</para>
82
83<screen><userinput role='root'><command>make install</command></userinput></screen>
84
85<para>If you have <application>TeX</application> installed and you wish to
86install the <acronym>HTML</acronym> documentation, run the following
87command as an unprivileged user:</para>
88
89<screen><userinput><command>make -C doc</command></userinput></screen>
90
91<para>Now, as the root user:</para>
92
93<screen><userinput role='root'><command>install -v -d -m755 /usr/share/doc/ffmpeg-&ffmpeg-version; &amp;&amp;
94install -v -m644 doc/*.html /usr/share/doc/ffmpeg-&ffmpeg-version;</command></userinput></screen>
95
96</sect2>
97
98<sect2>
99<title>Command explanations</title>
100
101<para><parameter>--enable-shared</parameter>: This switch is needed to
102build the <filename class="libraryfile">libavcodec</filename> and
103<filename class="libraryfile">libavformat</filename> shared
104libraries.</para>
105
106<para><parameter>--enable-pthreads</parameter>: This switch enables the
107build to link against the Posix threads library.</para>
108
109<para><option>--disable-ffplay</option>: Only installs the server part.
110<command>ffplay</command> requires <application>X</application> for
111building. Remove this option if <application>X</application> is
112installed.</para>
113
114<para><option>--enable-<replaceable>[codec]</replaceable></option>: Review
115the available options and codecs using the
116<command>./configure --help</command> command.</para>
117
118<para><command>make -C doc {ffmpeg,ffserver,ffplay}.1</command>: This builds
119the man pages which are installed by <command>make install</command>.</para>
120
121<note><para>Linking the <application>liba52</application> library using the
122<option>--enable-a52</option> parameter to <command>configure</command> is
123known to break the build.</para></note>
124
125</sect2>
126
127<sect2>
128<title>Configuring <application>FFmpeg</application></title>
129
130<sect3 id="ffmpeg-config"><title>Config files</title>
131
132<para><filename>/etc/ffserver.conf</filename> and
133<filename>~/.ffmpeg/ffserver-config</filename></para>
134
135<indexterm zone="ffmpeg ffmpeg-config">
136<primary
137sortas="e-AA.ffmpeg-ffserver-config">~/.ffmpeg/ffserver-config</primary>
138</indexterm>
139<indexterm zone="ffmpeg ffmpeg-config">
140<primary sortas="e-etc-ffserver.conf">/etc/ffserver.conf</primary>
141</indexterm>
142
143<para>You'll find a sample ffserver configuration file at
144<ulink url="http://ffmpeg.sourceforge.net/sample.html"/> (also
145<filename>doc/ffserver.conf</filename> in the source tree).</para>
146</sect3>
147
148</sect2>
149
150<sect2>
151<title>Contents</title>
152
153<segmentedlist>
154<segtitle>Installed Programs</segtitle>
155<segtitle>Installed Libraries</segtitle>
156<segtitle>Installed Directories</segtitle>
157<seglistitem>
158<seg>ffmpeg, ffserver and optionally, ffplay</seg>
159<seg>libavcodec.so, libavformat.so and video hook modules</seg>
160<seg>/usr/include/ffmpeg, /usr/lib/vhook and
161/usr/share/doc/ffmpeg-&ffmpeg-version;</seg>
162</seglistitem>
163</segmentedlist>
164
165<variablelist>
166<bridgehead renderas="sect3">Short Descriptions</bridgehead>
167<?dbfo list-presentation="list"?>
168
169<varlistentry id="ffmpeg-prog">
170<term><command>ffmpeg</command></term>
171<listitem><para>is a command-line tool to convert video files, network streams
172and input from a <acronym>TV</acronym> card to several video formats.</para>
173<indexterm zone="ffmpeg ffmpeg-prog">
174<primary sortas="b-ffmpeg">ffmpeg</primary></indexterm>
175</listitem>
176</varlistentry>
177
178<varlistentry id="ffplay">
179<term><command>ffplay</command></term>
180<listitem><para>is a very simple and portable media player using the
181<filename>ffmpeg</filename> libraries and the <acronym>SDL</acronym>
182library.</para>
183<indexterm zone="ffmpeg ffplay">
184<primary sortas="b-ffplay">ffplay</primary></indexterm>
185</listitem>
186</varlistentry>
187
188<varlistentry id="ffserver">
189<term><command>ffserver</command></term>
190<listitem><para>is a streaming server for everything that
191<command>ffmpeg</command> could use as input (files, streams, TV card input,
192webcam, etc.).</para>
193<indexterm zone="ffmpeg ffserver">
194<primary sortas="b-ffserver">ffserver</primary></indexterm>
195</listitem>
196</varlistentry>
197
198<varlistentry id="libavcodec">
199<term><filename class='libraryfile'>libavcodec.so</filename></term>
200<listitem><para>is a library containing the <application>FFmpeg</application>
201codecs (both encoding and decoding).</para>
202<indexterm zone="ffmpeg libavcodec">
203<primary sortas="c-libavcodec">libavcodec.so</primary></indexterm>
204</listitem>
205</varlistentry>
206
207<varlistentry id="libavformat">
208<term><filename class='libraryfile'>libavformat.so</filename></term>
209<listitem><para>is a library containing the file formats handling (mux and
210demux code for several formats) used by <command>ffplay</command> as well as
211allowing the generation of audio or video streams.</para>
212<indexterm zone="ffmpeg libavformat">
213<primary sortas="c-libavformat">libavformat.so</primary></indexterm>
214</listitem>
215</varlistentry>
216</variablelist>
217
218</sect2>
219
220</sect1>
221
Note: See TracBrowser for help on using the repository browser.