VirtualBox

source: vbox/trunk/src/libs/ffmpeg-20060710/doc/faq.html@ 10179

Last change on this file since 10179 was 5776, checked in by vboxsync, 17 years ago

ffmpeg: exported to OSE

File size: 49.0 KB
Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html401/loose.dtd">
2<html>
3<!-- Created on June, 30 2006 by texi2html 1.76 -->
4<!--
5Written by: Lionel Cons <[email protected]> (original author)
6 Karl Berry <[email protected]>
7 Olaf Bachmann <[email protected]>
8 and many others.
9Maintained by: Many creative people <[email protected]>
10Send bugs and suggestions to <[email protected]>
11
12-->
13<head>
14<title>FFmpeg FAQ: 1. General Problems</title>
15
16<meta name="description" content="FFmpeg FAQ: 1. General Problems">
17<meta name="keywords" content="FFmpeg FAQ: 1. General Problems">
18<meta name="resource-type" content="document">
19<meta name="distribution" content="global">
20<meta name="Generator" content="texi2html 1.76">
21<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
22<style type="text/css">
23<!--
24a.summary-letter {text-decoration: none}
25pre.display {font-family: serif}
26pre.format {font-family: serif}
27pre.menu-comment {font-family: serif}
28pre.menu-preformatted {font-family: serif}
29pre.smalldisplay {font-family: serif; font-size: smaller}
30pre.smallexample {font-size: smaller}
31pre.smallformat {font-family: serif; font-size: smaller}
32pre.smalllisp {font-size: smaller}
33span.sansserif {font-family:sans-serif; font-weight:normal;}
34ul.toc {list-style: none}
35-->
36</style>
37
38
39</head>
40
41<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
42
43<a name="SEC1"></a>
44<table cellpadding="1" cellspacing="1" border="0">
45<tr><td valign="middle" align="left">[ &lt; ]</td>
46<td valign="middle" align="left">[<a href="#SEC2" title="Next section in reading order"> &gt; </a>]</td>
47<td valign="middle" align="left"> &nbsp; </td>
48<td valign="middle" align="left">[ &lt;&lt; ]</td>
49<td valign="middle" align="left">[ Up ]</td>
50<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
51<td valign="middle" align="left"> &nbsp; </td>
52<td valign="middle" align="left"> &nbsp; </td>
53<td valign="middle" align="left"> &nbsp; </td>
54<td valign="middle" align="left"> &nbsp; </td>
55<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
56<td valign="middle" align="left">[Contents]</td>
57<td valign="middle" align="left">[Index]</td>
58<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
59</tr></table>
60<h1 class="chapter"> 1. General Problems </h1>
61
62<hr size="6">
63<a name="SEC2"></a>
64<table cellpadding="1" cellspacing="1" border="0">
65<tr><td valign="middle" align="left">[<a href="#SEC1" title="Previous section in reading order"> &lt; </a>]</td>
66<td valign="middle" align="left">[<a href="#SEC3" title="Next section in reading order"> &gt; </a>]</td>
67<td valign="middle" align="left"> &nbsp; </td>
68<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
69<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
70<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
71<td valign="middle" align="left"> &nbsp; </td>
72<td valign="middle" align="left"> &nbsp; </td>
73<td valign="middle" align="left"> &nbsp; </td>
74<td valign="middle" align="left"> &nbsp; </td>
75<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
76<td valign="middle" align="left">[Contents]</td>
77<td valign="middle" align="left">[Index]</td>
78<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
79</tr></table>
80<h2 class="section"> 1.1 I cannot read this file although this format seems to be supported by ffmpeg. </h2>
81
82<p>Even if ffmpeg can read the file format, it may not support all its
83codecs. Please consult the supported codec list in the ffmpeg
84documentation.
85</p>
86<hr size="6">
87<a name="SEC3"></a>
88<table cellpadding="1" cellspacing="1" border="0">
89<tr><td valign="middle" align="left">[<a href="#SEC2" title="Previous section in reading order"> &lt; </a>]</td>
90<td valign="middle" align="left">[<a href="#SEC4" title="Next section in reading order"> &gt; </a>]</td>
91<td valign="middle" align="left"> &nbsp; </td>
92<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
93<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
94<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
95<td valign="middle" align="left"> &nbsp; </td>
96<td valign="middle" align="left"> &nbsp; </td>
97<td valign="middle" align="left"> &nbsp; </td>
98<td valign="middle" align="left"> &nbsp; </td>
99<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
100<td valign="middle" align="left">[Contents]</td>
101<td valign="middle" align="left">[Index]</td>
102<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
103</tr></table>
104<h2 class="section"> 1.2 How do I encode JPEGs to another format ? </h2>
105
106<p>If the JPEGs are named img1.jpg, img2.jpg, img3.jpg,..., use:
107</p>
108<table><tr><td>&nbsp;</td><td><pre class="example"> ffmpeg -i img%d.jpg /tmp/a.mpg
109</pre></td></tr></table>
110<p><samp>`%d'</samp> is replaced by the image number.
111</p>
112<p><tt>`img%03d.jpg'</tt> generates <tt>`img001.jpg'</tt>, <tt>`img002.jpg'</tt>, etc...
113</p>
114<p>The same system is used for the other image formats.
115</p>
116<hr size="6">
117<a name="SEC4"></a>
118<table cellpadding="1" cellspacing="1" border="0">
119<tr><td valign="middle" align="left">[<a href="#SEC3" title="Previous section in reading order"> &lt; </a>]</td>
120<td valign="middle" align="left">[<a href="#SEC5" title="Next section in reading order"> &gt; </a>]</td>
121<td valign="middle" align="left"> &nbsp; </td>
122<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
123<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
124<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
125<td valign="middle" align="left"> &nbsp; </td>
126<td valign="middle" align="left"> &nbsp; </td>
127<td valign="middle" align="left"> &nbsp; </td>
128<td valign="middle" align="left"> &nbsp; </td>
129<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
130<td valign="middle" align="left">[Contents]</td>
131<td valign="middle" align="left">[Index]</td>
132<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
133</tr></table>
134<h2 class="section"> 1.3 FFmpeg does not support codec XXX. Can you include a Windows DLL loader to support it ? </h2>
135
136<p>No. FFmpeg only supports open source codecs. Windows DLLs are not
137portable, bloated and often slow.
138</p>
139<hr size="6">
140<a name="SEC5"></a>
141<table cellpadding="1" cellspacing="1" border="0">
142<tr><td valign="middle" align="left">[<a href="#SEC4" title="Previous section in reading order"> &lt; </a>]</td>
143<td valign="middle" align="left">[<a href="#SEC6" title="Next section in reading order"> &gt; </a>]</td>
144<td valign="middle" align="left"> &nbsp; </td>
145<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
146<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
147<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
148<td valign="middle" align="left"> &nbsp; </td>
149<td valign="middle" align="left"> &nbsp; </td>
150<td valign="middle" align="left"> &nbsp; </td>
151<td valign="middle" align="left"> &nbsp; </td>
152<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
153<td valign="middle" align="left">[Contents]</td>
154<td valign="middle" align="left">[Index]</td>
155<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
156</tr></table>
157<h2 class="section"> 1.4 Why do I see a slight quality degradation with multithreaded MPEG* encoding ? </h2>
158
159<p>For multithreaded MPEG* encoding, the encoded slices must be independent,
160otherwise thread n would practically have to wait for n-1 to finish, so it's
161quite logical that there is a small reduction of quality. This is not a bug.
162</p>
163<hr size="6">
164<a name="SEC6"></a>
165<table cellpadding="1" cellspacing="1" border="0">
166<tr><td valign="middle" align="left">[<a href="#SEC5" title="Previous section in reading order"> &lt; </a>]</td>
167<td valign="middle" align="left">[<a href="#SEC7" title="Next section in reading order"> &gt; </a>]</td>
168<td valign="middle" align="left"> &nbsp; </td>
169<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
170<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
171<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
172<td valign="middle" align="left"> &nbsp; </td>
173<td valign="middle" align="left"> &nbsp; </td>
174<td valign="middle" align="left"> &nbsp; </td>
175<td valign="middle" align="left"> &nbsp; </td>
176<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
177<td valign="middle" align="left">[Contents]</td>
178<td valign="middle" align="left">[Index]</td>
179<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
180</tr></table>
181<h2 class="section"> 1.5 How can I read from the standard input or write to the standard output ? </h2>
182
183<p>Use <tt>`-'</tt> as filename.
184</p>
185<hr size="6">
186<a name="SEC7"></a>
187<table cellpadding="1" cellspacing="1" border="0">
188<tr><td valign="middle" align="left">[<a href="#SEC6" title="Previous section in reading order"> &lt; </a>]</td>
189<td valign="middle" align="left">[<a href="#SEC8" title="Next section in reading order"> &gt; </a>]</td>
190<td valign="middle" align="left"> &nbsp; </td>
191<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
192<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
193<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
194<td valign="middle" align="left"> &nbsp; </td>
195<td valign="middle" align="left"> &nbsp; </td>
196<td valign="middle" align="left"> &nbsp; </td>
197<td valign="middle" align="left"> &nbsp; </td>
198<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
199<td valign="middle" align="left">[Contents]</td>
200<td valign="middle" align="left">[Index]</td>
201<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
202</tr></table>
203<h2 class="section"> 1.6 Why does ffmpeg not decode audio in VOB files ? </h2>
204
205<p>The audio is AC3 (a.k.a. A/52). AC3 decoding is an optional component in ffmpeg
206as the component that handles AC3 decoding (liba52) is currently released under
207the GPL. If you have liba52 installed on your system, enable AC3 decoding
208with <code>./configure --enable-a52</code>. Take care: by
209enabling AC3, you automatically change the license of libavcodec from
210LGPL to GPL.
211</p>
212<hr size="6">
213<a name="SEC8"></a>
214<table cellpadding="1" cellspacing="1" border="0">
215<tr><td valign="middle" align="left">[<a href="#SEC7" title="Previous section in reading order"> &lt; </a>]</td>
216<td valign="middle" align="left">[<a href="#SEC9" title="Next section in reading order"> &gt; </a>]</td>
217<td valign="middle" align="left"> &nbsp; </td>
218<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
219<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
220<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
221<td valign="middle" align="left"> &nbsp; </td>
222<td valign="middle" align="left"> &nbsp; </td>
223<td valign="middle" align="left"> &nbsp; </td>
224<td valign="middle" align="left"> &nbsp; </td>
225<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
226<td valign="middle" align="left">[Contents]</td>
227<td valign="middle" align="left">[Index]</td>
228<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
229</tr></table>
230<h2 class="section"> 1.7 Which codecs are supported by Windows ? </h2>
231
232<p>Windows does not support standard formats like MPEG very well, unless you
233install some additional codecs
234</p>
235<p>The following list of video codecs should work on most Windows systems:
236</p><dl compact="compact">
237<dt> <samp>`msmpeg4v2'</samp></dt>
238<dd><p>.avi/.asf
239</p></dd>
240<dt> <samp>`msmpeg4'</samp></dt>
241<dd><p>.asf only
242</p></dd>
243<dt> <samp>`wmv1'</samp></dt>
244<dd><p>.asf only
245</p></dd>
246<dt> <samp>`wmv2'</samp></dt>
247<dd><p>.asf only
248</p></dd>
249<dt> <samp>`mpeg4'</samp></dt>
250<dd><p>only if you have some MPEG-4 codec installed like ffdshow or XviD
251</p></dd>
252<dt> <samp>`mpeg1'</samp></dt>
253<dd><p>.mpg only
254</p></dd>
255</dl>
256<p>Note, ASF files often have .wmv or .wma extensions in Windows. It should also
257be mentioned that Microsoft claims a patent on the ASF format, and may sue
258or threaten users who create ASF files with non-Microsoft software. It is
259strongly advised to avoid ASF where possible.
260</p>
261<p>The following list of audio codecs should work on most Windows systems:
262</p><dl compact="compact">
263<dt> <samp>`adpcm_ima_wav'</samp></dt>
264<dt> <samp>`adpcm_ms'</samp></dt>
265<dt> <samp>`pcm'</samp></dt>
266<dt> <samp>`mp3'</samp></dt>
267<dd><p>if some MP3 codec like LAME is installed
268</p></dd>
269</dl>
270
271<hr size="6">
272<a name="SEC9"></a>
273<table cellpadding="1" cellspacing="1" border="0">
274<tr><td valign="middle" align="left">[<a href="#SEC8" title="Previous section in reading order"> &lt; </a>]</td>
275<td valign="middle" align="left">[<a href="#SEC10" title="Next section in reading order"> &gt; </a>]</td>
276<td valign="middle" align="left"> &nbsp; </td>
277<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
278<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
279<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
280<td valign="middle" align="left"> &nbsp; </td>
281<td valign="middle" align="left"> &nbsp; </td>
282<td valign="middle" align="left"> &nbsp; </td>
283<td valign="middle" align="left"> &nbsp; </td>
284<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
285<td valign="middle" align="left">[Contents]</td>
286<td valign="middle" align="left">[Index]</td>
287<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
288</tr></table>
289<h2 class="section"> 1.8 Why does the chrominance data seem to be sampled at a different time from the luminance data on bt8x8 captures on Linux? </h2>
290
291<p>This is a well-known bug in the bt8x8 driver. For 2.4.26 there is a patch at
292(<a href="http://mplayerhq.hu/~michael/bttv-420-2.4.26.patch">http://mplayerhq.hu/~michael/bttv-420-2.4.26.patch</a>). This may also
293apply cleanly to other 2.4-series kernels.
294</p>
295<hr size="6">
296<a name="SEC10"></a>
297<table cellpadding="1" cellspacing="1" border="0">
298<tr><td valign="middle" align="left">[<a href="#SEC9" title="Previous section in reading order"> &lt; </a>]</td>
299<td valign="middle" align="left">[<a href="#SEC11" title="Next section in reading order"> &gt; </a>]</td>
300<td valign="middle" align="left"> &nbsp; </td>
301<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
302<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
303<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
304<td valign="middle" align="left"> &nbsp; </td>
305<td valign="middle" align="left"> &nbsp; </td>
306<td valign="middle" align="left"> &nbsp; </td>
307<td valign="middle" align="left"> &nbsp; </td>
308<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
309<td valign="middle" align="left">[Contents]</td>
310<td valign="middle" align="left">[Index]</td>
311<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
312</tr></table>
313<h2 class="section"> 1.9 How do I avoid the ugly aliasing artifacts in bt8x8 captures on Linux? </h2>
314
315<p>Pass 'combfilter=1 lumafilter=1' to the bttv driver. Note though that 'combfilter=1'
316will cause somewhat too strong filtering. A fix is to apply (<a href="http://mplayerhq.hu/~michael/bttv-comb-2.4.26.patch">http://mplayerhq.hu/~michael/bttv-comb-2.4.26.patch</a>)
317or (<a href="http://mplayerhq.hu/~michael/bttv-comb-2.6.6.patch">http://mplayerhq.hu/~michael/bttv-comb-2.6.6.patch</a>)
318and pass 'combfilter=2'.
319</p>
320<hr size="6">
321<a name="SEC11"></a>
322<table cellpadding="1" cellspacing="1" border="0">
323<tr><td valign="middle" align="left">[<a href="#SEC10" title="Previous section in reading order"> &lt; </a>]</td>
324<td valign="middle" align="left">[<a href="#SEC12" title="Next section in reading order"> &gt; </a>]</td>
325<td valign="middle" align="left"> &nbsp; </td>
326<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
327<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
328<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
329<td valign="middle" align="left"> &nbsp; </td>
330<td valign="middle" align="left"> &nbsp; </td>
331<td valign="middle" align="left"> &nbsp; </td>
332<td valign="middle" align="left"> &nbsp; </td>
333<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
334<td valign="middle" align="left">[Contents]</td>
335<td valign="middle" align="left">[Index]</td>
336<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
337</tr></table>
338<h2 class="section"> 1.10 I have a problem with an old version of ffmpeg; where should I report it? </h2>
339<p>Nowhere. Upgrade to the latest release or if there is no recent release upgrade
340to Subversion HEAD. You could also try to report it. Maybe you will get lucky and
341become the first person in history to get an answer different from &quot;upgrade
342to Subversion HEAD&quot;.
343</p>
344<hr size="6">
345<a name="SEC12"></a>
346<table cellpadding="1" cellspacing="1" border="0">
347<tr><td valign="middle" align="left">[<a href="#SEC11" title="Previous section in reading order"> &lt; </a>]</td>
348<td valign="middle" align="left">[<a href="#SEC13" title="Next section in reading order"> &gt; </a>]</td>
349<td valign="middle" align="left"> &nbsp; </td>
350<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
351<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
352<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
353<td valign="middle" align="left"> &nbsp; </td>
354<td valign="middle" align="left"> &nbsp; </td>
355<td valign="middle" align="left"> &nbsp; </td>
356<td valign="middle" align="left"> &nbsp; </td>
357<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
358<td valign="middle" align="left">[Contents]</td>
359<td valign="middle" align="left">[Index]</td>
360<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
361</tr></table>
362<h2 class="section"> 1.11 -f jpeg doesn't work. </h2>
363
364<p>Try '-f image -img jpeg test%d.jpg'.
365</p>
366<hr size="6">
367<a name="SEC13"></a>
368<table cellpadding="1" cellspacing="1" border="0">
369<tr><td valign="middle" align="left">[<a href="#SEC12" title="Previous section in reading order"> &lt; </a>]</td>
370<td valign="middle" align="left">[<a href="#SEC14" title="Next section in reading order"> &gt; </a>]</td>
371<td valign="middle" align="left"> &nbsp; </td>
372<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
373<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
374<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
375<td valign="middle" align="left"> &nbsp; </td>
376<td valign="middle" align="left"> &nbsp; </td>
377<td valign="middle" align="left"> &nbsp; </td>
378<td valign="middle" align="left"> &nbsp; </td>
379<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
380<td valign="middle" align="left">[Contents]</td>
381<td valign="middle" align="left">[Index]</td>
382<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
383</tr></table>
384<h2 class="section"> 1.12 Why can I not change the framerate? </h2>
385
386<p>Some codecs, like MPEG-1/2, only allow a small number of fixed framerates.
387Choose a different codec with the -vcodec command line option.
388</p>
389<hr size="6">
390<a name="SEC14"></a>
391<table cellpadding="1" cellspacing="1" border="0">
392<tr><td valign="middle" align="left">[<a href="#SEC13" title="Previous section in reading order"> &lt; </a>]</td>
393<td valign="middle" align="left">[<a href="#SEC15" title="Next section in reading order"> &gt; </a>]</td>
394<td valign="middle" align="left"> &nbsp; </td>
395<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
396<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
397<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
398<td valign="middle" align="left"> &nbsp; </td>
399<td valign="middle" align="left"> &nbsp; </td>
400<td valign="middle" align="left"> &nbsp; </td>
401<td valign="middle" align="left"> &nbsp; </td>
402<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
403<td valign="middle" align="left">[Contents]</td>
404<td valign="middle" align="left">[Index]</td>
405<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
406</tr></table>
407<h2 class="section"> 1.13 ffmpeg does not work; What is wrong? </h2>
408
409<p>Try a 'make distclean' in the ffmpeg source directory. If this does not help see
410(<a href="http://ffmpeg.org/bugreports.php">http://ffmpeg.org/bugreports.php</a>).
411</p>
412<hr size="6">
413<a name="SEC15"></a>
414<table cellpadding="1" cellspacing="1" border="0">
415<tr><td valign="middle" align="left">[<a href="#SEC14" title="Previous section in reading order"> &lt; </a>]</td>
416<td valign="middle" align="left">[<a href="#SEC16" title="Next section in reading order"> &gt; </a>]</td>
417<td valign="middle" align="left"> &nbsp; </td>
418<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
419<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
420<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
421<td valign="middle" align="left"> &nbsp; </td>
422<td valign="middle" align="left"> &nbsp; </td>
423<td valign="middle" align="left"> &nbsp; </td>
424<td valign="middle" align="left"> &nbsp; </td>
425<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
426<td valign="middle" align="left">[Contents]</td>
427<td valign="middle" align="left">[Index]</td>
428<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
429</tr></table>
430<h2 class="section"> 1.14 How do I encode XviD or DivX video with ffmpeg? </h2>
431
432<p>Both XviD and DivX (version 4+) are implementations of the ISO MPEG-4
433standard (note that there are many other coding formats that use this
434same standard). Thus, use '-vcodec mpeg4' to encode these formats. The
435default fourcc stored in an MPEG-4-coded file will be 'FMP4'. If you want
436a different fourcc, use the '-vtag' option. E.g., '-vtag xvid' will
437force the fourcc 'xvid' to be stored as the video fourcc rather than the
438default.
439</p>
440<hr size="6">
441<a name="SEC16"></a>
442<table cellpadding="1" cellspacing="1" border="0">
443<tr><td valign="middle" align="left">[<a href="#SEC15" title="Previous section in reading order"> &lt; </a>]</td>
444<td valign="middle" align="left">[<a href="#SEC17" title="Next section in reading order"> &gt; </a>]</td>
445<td valign="middle" align="left"> &nbsp; </td>
446<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
447<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
448<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
449<td valign="middle" align="left"> &nbsp; </td>
450<td valign="middle" align="left"> &nbsp; </td>
451<td valign="middle" align="left"> &nbsp; </td>
452<td valign="middle" align="left"> &nbsp; </td>
453<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
454<td valign="middle" align="left">[Contents]</td>
455<td valign="middle" align="left">[Index]</td>
456<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
457</tr></table>
458<h2 class="section"> 1.15 How do I encode videos which play on the iPod? </h2>
459
460<dl compact="compact">
461<dt> <samp>`needed stuff'</samp></dt>
462<dd><p>-acodec aac -vcodec mpeg4 width&lt;=320 height&lt;=240
463</p></dd>
464<dt> <samp>`working stuff'</samp></dt>
465<dd><p>4mv, title
466</p></dd>
467<dt> <samp>`non-working stuff'</samp></dt>
468<dd><p>B-frames
469</p></dd>
470<dt> <samp>`example command line'</samp></dt>
471<dd><p>ffmpeg -i input -acodec aac -ab 128 -vcodec mpeg4 -b 1200 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
472</p></dd>
473</dl>
474
475<hr size="6">
476<a name="SEC17"></a>
477<table cellpadding="1" cellspacing="1" border="0">
478<tr><td valign="middle" align="left">[<a href="#SEC16" title="Previous section in reading order"> &lt; </a>]</td>
479<td valign="middle" align="left">[<a href="#SEC18" title="Next section in reading order"> &gt; </a>]</td>
480<td valign="middle" align="left"> &nbsp; </td>
481<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
482<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
483<td valign="middle" align="left">[<a href="#SEC18" title="Next chapter"> &gt;&gt; </a>]</td>
484<td valign="middle" align="left"> &nbsp; </td>
485<td valign="middle" align="left"> &nbsp; </td>
486<td valign="middle" align="left"> &nbsp; </td>
487<td valign="middle" align="left"> &nbsp; </td>
488<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
489<td valign="middle" align="left">[Contents]</td>
490<td valign="middle" align="left">[Index]</td>
491<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
492</tr></table>
493<h2 class="section"> 1.16 How do I encode videos which play on the PSP? </h2>
494
495<dl compact="compact">
496<dt> <samp>`needed stuff'</samp></dt>
497<dd><p>-acodec aac -vcodec mpeg4 width*height&lt;=76800 width%16=0 height%16=0 -ar 24000 -r 30000/1001 or 15000/1001 -f psp
498</p></dd>
499<dt> <samp>`working stuff'</samp></dt>
500<dd><p>4mv, title
501</p></dd>
502<dt> <samp>`non-working stuff'</samp></dt>
503<dd><p>B-frames
504</p></dd>
505<dt> <samp>`example command line'</samp></dt>
506<dd><p>ffmpeg -i input -acodec aac -ab 128 -vcodec mpeg4 -b 1200 -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp output.mp4
507</p></dd>
508<dt> <samp>`needed stuff for H.264'</samp></dt>
509<dd><p>-acodec aac -vcodec h264 width*height&lt;=76800 width%16=0? height%16=0? -ar 48000 -coder 1 -r 30000/1001 or 15000/1001 -f psp
510</p></dd>
511<dt> <samp>`working stuff for H.264'</samp></dt>
512<dd><p>title, loop filter
513</p></dd>
514<dt> <samp>`non-working stuff for H.264'</samp></dt>
515<dd><p>CAVLC
516</p></dd>
517<dt> <samp>`example command line'</samp></dt>
518<dd><p>ffmpeg -i input -acodec aac -ab 128 -vcodec h264 -b 1200 -ar 48000 -mbd 2 -coder 1 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp -flags loop -trellis 2 -partitions parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 output.mp4
519</p></dd>
520</dl>
521
522<hr size="6">
523<a name="SEC18"></a>
524<table cellpadding="1" cellspacing="1" border="0">
525<tr><td valign="middle" align="left">[<a href="#SEC17" title="Previous section in reading order"> &lt; </a>]</td>
526<td valign="middle" align="left">[<a href="#SEC19" title="Next section in reading order"> &gt; </a>]</td>
527<td valign="middle" align="left"> &nbsp; </td>
528<td valign="middle" align="left">[<a href="#SEC1" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
529<td valign="middle" align="left">[<a href="#SEC1" title="Up section"> Up </a>]</td>
530<td valign="middle" align="left">[ &gt;&gt; ]</td>
531<td valign="middle" align="left"> &nbsp; </td>
532<td valign="middle" align="left"> &nbsp; </td>
533<td valign="middle" align="left"> &nbsp; </td>
534<td valign="middle" align="left"> &nbsp; </td>
535<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
536<td valign="middle" align="left">[Contents]</td>
537<td valign="middle" align="left">[Index]</td>
538<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
539</tr></table>
540<h1 class="chapter"> 2. Development </h1>
541
542<hr size="6">
543<a name="SEC19"></a>
544<table cellpadding="1" cellspacing="1" border="0">
545<tr><td valign="middle" align="left">[<a href="#SEC18" title="Previous section in reading order"> &lt; </a>]</td>
546<td valign="middle" align="left">[<a href="#SEC20" title="Next section in reading order"> &gt; </a>]</td>
547<td valign="middle" align="left"> &nbsp; </td>
548<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
549<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
550<td valign="middle" align="left">[ &gt;&gt; ]</td>
551<td valign="middle" align="left"> &nbsp; </td>
552<td valign="middle" align="left"> &nbsp; </td>
553<td valign="middle" align="left"> &nbsp; </td>
554<td valign="middle" align="left"> &nbsp; </td>
555<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
556<td valign="middle" align="left">[Contents]</td>
557<td valign="middle" align="left">[Index]</td>
558<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
559</tr></table>
560<h2 class="section"> 2.1 When will the next FFmpeg version be released? / Why are FFmpeg releases so few and far between? </h2>
561
562<p>Like most open source projects FFmpeg suffers from a certain lack of
563manpower. For this reason the developers have to prioritize the work
564they do and putting out releases is not at the top of the list, fixing
565bugs and reviewing patches takes precedence. Please don't complain or
566request more timely and/or frequent releases unless you are willing to
567help out creating them.
568</p>
569<hr size="6">
570<a name="SEC20"></a>
571<table cellpadding="1" cellspacing="1" border="0">
572<tr><td valign="middle" align="left">[<a href="#SEC19" title="Previous section in reading order"> &lt; </a>]</td>
573<td valign="middle" align="left">[<a href="#SEC21" title="Next section in reading order"> &gt; </a>]</td>
574<td valign="middle" align="left"> &nbsp; </td>
575<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
576<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
577<td valign="middle" align="left">[ &gt;&gt; ]</td>
578<td valign="middle" align="left"> &nbsp; </td>
579<td valign="middle" align="left"> &nbsp; </td>
580<td valign="middle" align="left"> &nbsp; </td>
581<td valign="middle" align="left"> &nbsp; </td>
582<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
583<td valign="middle" align="left">[Contents]</td>
584<td valign="middle" align="left">[Index]</td>
585<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
586</tr></table>
587<h2 class="section"> 2.2 Why doesn't FFmpeg support feature [xyz]? </h2>
588
589<p>Because no one has taken on that task yet. FFmpeg development is
590driven by the tasks that are important to the individual developers.
591If there is a feature that is important to you, the best way to get
592it implemented is to undertake the task yourself.
593</p>
594
595<hr size="6">
596<a name="SEC21"></a>
597<table cellpadding="1" cellspacing="1" border="0">
598<tr><td valign="middle" align="left">[<a href="#SEC20" title="Previous section in reading order"> &lt; </a>]</td>
599<td valign="middle" align="left">[<a href="#SEC22" title="Next section in reading order"> &gt; </a>]</td>
600<td valign="middle" align="left"> &nbsp; </td>
601<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
602<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
603<td valign="middle" align="left">[ &gt;&gt; ]</td>
604<td valign="middle" align="left"> &nbsp; </td>
605<td valign="middle" align="left"> &nbsp; </td>
606<td valign="middle" align="left"> &nbsp; </td>
607<td valign="middle" align="left"> &nbsp; </td>
608<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
609<td valign="middle" align="left">[Contents]</td>
610<td valign="middle" align="left">[Index]</td>
611<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
612</tr></table>
613<h2 class="section"> 2.3 Are there examples illustrating how to use the FFmpeg libraries, particularly libavcodec and libavformat ? </h2>
614
615<p>Yes. Read the Developers Guide of the FFmpeg documentation. Alternatively,
616examine the source code for one of the many open source projects that
617already incorporate ffmpeg at (<a href="projects.php">projects.php</a>).
618</p>
619<hr size="6">
620<a name="SEC22"></a>
621<table cellpadding="1" cellspacing="1" border="0">
622<tr><td valign="middle" align="left">[<a href="#SEC21" title="Previous section in reading order"> &lt; </a>]</td>
623<td valign="middle" align="left">[<a href="#SEC23" title="Next section in reading order"> &gt; </a>]</td>
624<td valign="middle" align="left"> &nbsp; </td>
625<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
626<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
627<td valign="middle" align="left">[ &gt;&gt; ]</td>
628<td valign="middle" align="left"> &nbsp; </td>
629<td valign="middle" align="left"> &nbsp; </td>
630<td valign="middle" align="left"> &nbsp; </td>
631<td valign="middle" align="left"> &nbsp; </td>
632<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
633<td valign="middle" align="left">[Contents]</td>
634<td valign="middle" align="left">[Index]</td>
635<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
636</tr></table>
637<h2 class="section"> 2.4 Can you support my C compiler XXX ? </h2>
638
639<p>No. Only GCC is supported. GCC is ported to most systems available and there
640is no need to pollute the source code with <code>#ifdef</code>s
641related to the compiler.
642</p>
643<hr size="6">
644<a name="SEC23"></a>
645<table cellpadding="1" cellspacing="1" border="0">
646<tr><td valign="middle" align="left">[<a href="#SEC22" title="Previous section in reading order"> &lt; </a>]</td>
647<td valign="middle" align="left">[<a href="#SEC24" title="Next section in reading order"> &gt; </a>]</td>
648<td valign="middle" align="left"> &nbsp; </td>
649<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
650<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
651<td valign="middle" align="left">[ &gt;&gt; ]</td>
652<td valign="middle" align="left"> &nbsp; </td>
653<td valign="middle" align="left"> &nbsp; </td>
654<td valign="middle" align="left"> &nbsp; </td>
655<td valign="middle" align="left"> &nbsp; </td>
656<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
657<td valign="middle" align="left">[Contents]</td>
658<td valign="middle" align="left">[Index]</td>
659<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
660</tr></table>
661<h2 class="section"> 2.5 Can I use FFmpeg or libavcodec under Windows ? </h2>
662
663<p>Yes, but the MinGW tools <em>must</em> be used to compile FFmpeg. You
664can link the resulting DLLs with any other Windows program. Read the
665<em>Native Windows Compilation</em> and <em>Visual C++ compatibility</em>
666sections in the FFmpeg documentation to find more information.
667</p>
668<hr size="6">
669<a name="SEC24"></a>
670<table cellpadding="1" cellspacing="1" border="0">
671<tr><td valign="middle" align="left">[<a href="#SEC23" title="Previous section in reading order"> &lt; </a>]</td>
672<td valign="middle" align="left">[<a href="#SEC25" title="Next section in reading order"> &gt; </a>]</td>
673<td valign="middle" align="left"> &nbsp; </td>
674<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
675<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
676<td valign="middle" align="left">[ &gt;&gt; ]</td>
677<td valign="middle" align="left"> &nbsp; </td>
678<td valign="middle" align="left"> &nbsp; </td>
679<td valign="middle" align="left"> &nbsp; </td>
680<td valign="middle" align="left"> &nbsp; </td>
681<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
682<td valign="middle" align="left">[Contents]</td>
683<td valign="middle" align="left">[Index]</td>
684<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
685</tr></table>
686<h2 class="section"> 2.6 Can you add automake, libtool or autoconf support ? </h2>
687
688<p>No. These tools are too bloated and they complicate the build. Moreover,
689since only <samp>`gcc'</samp> is supported they would add little advantages in
690terms of portability.
691</p>
692<hr size="6">
693<a name="SEC25"></a>
694<table cellpadding="1" cellspacing="1" border="0">
695<tr><td valign="middle" align="left">[<a href="#SEC24" title="Previous section in reading order"> &lt; </a>]</td>
696<td valign="middle" align="left">[<a href="#SEC26" title="Next section in reading order"> &gt; </a>]</td>
697<td valign="middle" align="left"> &nbsp; </td>
698<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
699<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
700<td valign="middle" align="left">[ &gt;&gt; ]</td>
701<td valign="middle" align="left"> &nbsp; </td>
702<td valign="middle" align="left"> &nbsp; </td>
703<td valign="middle" align="left"> &nbsp; </td>
704<td valign="middle" align="left"> &nbsp; </td>
705<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
706<td valign="middle" align="left">[Contents]</td>
707<td valign="middle" align="left">[Index]</td>
708<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
709</tr></table>
710<h2 class="section"> 2.7 Why not rewrite ffmpeg in object-oriented C++ ? </h2>
711
712<p>ffmpeg is already organized in a highly modular manner and does not need to
713be rewritten in a formal object language. Further, many of the developers
714favor straight C; it works for them. For more arguments on this matter,
715read &quot;Programming Religion&quot; at (<a href="http://lkml.org/faq/lkmlfaq-15.html">http://lkml.org/faq/lkmlfaq-15.html</a>).
716</p>
717<hr size="6">
718<a name="SEC26"></a>
719<table cellpadding="1" cellspacing="1" border="0">
720<tr><td valign="middle" align="left">[<a href="#SEC25" title="Previous section in reading order"> &lt; </a>]</td>
721<td valign="middle" align="left">[<a href="#SEC27" title="Next section in reading order"> &gt; </a>]</td>
722<td valign="middle" align="left"> &nbsp; </td>
723<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
724<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
725<td valign="middle" align="left">[ &gt;&gt; ]</td>
726<td valign="middle" align="left"> &nbsp; </td>
727<td valign="middle" align="left"> &nbsp; </td>
728<td valign="middle" align="left"> &nbsp; </td>
729<td valign="middle" align="left"> &nbsp; </td>
730<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
731<td valign="middle" align="left">[Contents]</td>
732<td valign="middle" align="left">[Index]</td>
733<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
734</tr></table>
735<h2 class="section"> 2.8 Why are the ffmpeg programs devoid of debugging symbols ? </h2>
736
737<p>The build process creates ffmpeg_g, ffplay_g, etc. which contain full debug
738information. Those binaries are strip'd to create ffmpeg, ffplay, etc. If
739you need the debug information, used the *_g versions.
740</p>
741<hr size="6">
742<a name="SEC27"></a>
743<table cellpadding="1" cellspacing="1" border="0">
744<tr><td valign="middle" align="left">[<a href="#SEC26" title="Previous section in reading order"> &lt; </a>]</td>
745<td valign="middle" align="left">[<a href="#SEC28" title="Next section in reading order"> &gt; </a>]</td>
746<td valign="middle" align="left"> &nbsp; </td>
747<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
748<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
749<td valign="middle" align="left">[ &gt;&gt; ]</td>
750<td valign="middle" align="left"> &nbsp; </td>
751<td valign="middle" align="left"> &nbsp; </td>
752<td valign="middle" align="left"> &nbsp; </td>
753<td valign="middle" align="left"> &nbsp; </td>
754<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
755<td valign="middle" align="left">[Contents]</td>
756<td valign="middle" align="left">[Index]</td>
757<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
758</tr></table>
759<h2 class="section"> 2.9 I do not like the LGPL, can I contribute code under the GPL instead ? </h2>
760
761<p>Yes, as long as the code is optional and can easily and cleanly be placed
762under #ifdef CONFIG_GPL without breaking anything. So for example a new codec
763or filter would be OK under GPL while a bugfix to LGPL code would not.
764</p>
765<hr size="6">
766<a name="SEC28"></a>
767<table cellpadding="1" cellspacing="1" border="0">
768<tr><td valign="middle" align="left">[<a href="#SEC27" title="Previous section in reading order"> &lt; </a>]</td>
769<td valign="middle" align="left">[<a href="#SEC29" title="Next section in reading order"> &gt; </a>]</td>
770<td valign="middle" align="left"> &nbsp; </td>
771<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
772<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
773<td valign="middle" align="left">[ &gt;&gt; ]</td>
774<td valign="middle" align="left"> &nbsp; </td>
775<td valign="middle" align="left"> &nbsp; </td>
776<td valign="middle" align="left"> &nbsp; </td>
777<td valign="middle" align="left"> &nbsp; </td>
778<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
779<td valign="middle" align="left">[Contents]</td>
780<td valign="middle" align="left">[Index]</td>
781<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
782</tr></table>
783<h2 class="section"> 2.10 I want to compile xyz.c alone but my compiler produced many errors. </h2>
784
785<p>Common code is in its own files in libav* and is used by the individual
786codecs. They will not work without the common parts, you have to compile
787the whole libav*. If you wish, disable some parts with configure switches.
788You can also try to hack it and remove more, but if you had problems fixing
789the compilation failure then you are probably not qualified for this.
790</p>
791<hr size="6">
792<a name="SEC29"></a>
793<table cellpadding="1" cellspacing="1" border="0">
794<tr><td valign="middle" align="left">[<a href="#SEC28" title="Previous section in reading order"> &lt; </a>]</td>
795<td valign="middle" align="left">[<a href="#SEC30" title="Next section in reading order"> &gt; </a>]</td>
796<td valign="middle" align="left"> &nbsp; </td>
797<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
798<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
799<td valign="middle" align="left">[ &gt;&gt; ]</td>
800<td valign="middle" align="left"> &nbsp; </td>
801<td valign="middle" align="left"> &nbsp; </td>
802<td valign="middle" align="left"> &nbsp; </td>
803<td valign="middle" align="left"> &nbsp; </td>
804<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
805<td valign="middle" align="left">[Contents]</td>
806<td valign="middle" align="left">[Index]</td>
807<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
808</tr></table>
809<h2 class="section"> 2.11 Visual C++ produces many errors. </h2>
810
811<p>Visual C++ is not compliant to the C standard and does not support
812the inline assembly used in FFmpeg.
813If you wish - for whatever weird reason - to use Visual C++ for your
814project then you can link the Visual C++ code with libav* as long as
815you compile the latter with a working C compiler. For more information, see
816the <em>Visual C++ compatibility</em> section in the FFmpeg documentation.
817</p>
818<p>There have been efforts to make FFmpeg compatible with Visual C++ in the
819past. However, they have all been rejected as too intrusive, especially
820since MinGW does the job perfectly adequately. None of the core developers
821work with Visual C++ and thus this item is low priority. Should you find
822the silver bullet that solves this problem, feel free to shoot it at us.
823</p>
824<hr size="6">
825<a name="SEC30"></a>
826<table cellpadding="1" cellspacing="1" border="0">
827<tr><td valign="middle" align="left">[<a href="#SEC29" title="Previous section in reading order"> &lt; </a>]</td>
828<td valign="middle" align="left">[ &gt; ]</td>
829<td valign="middle" align="left"> &nbsp; </td>
830<td valign="middle" align="left">[<a href="#SEC18" title="Beginning of this chapter or previous chapter"> &lt;&lt; </a>]</td>
831<td valign="middle" align="left">[<a href="#SEC18" title="Up section"> Up </a>]</td>
832<td valign="middle" align="left">[ &gt;&gt; ]</td>
833<td valign="middle" align="left"> &nbsp; </td>
834<td valign="middle" align="left"> &nbsp; </td>
835<td valign="middle" align="left"> &nbsp; </td>
836<td valign="middle" align="left"> &nbsp; </td>
837<td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
838<td valign="middle" align="left">[Contents]</td>
839<td valign="middle" align="left">[Index]</td>
840<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
841</tr></table>
842<h2 class="section"> 2.12 I have a file in memory / a API different from *open/*read/ libc how do i use it with libavformat ? </h2>
843
844<p>You have to implement a URLProtocol, see libavformat/file.c in FFmpeg
845and libmpdemux/demux_lavf.c in MPlayer sources.
846</p>
847<hr size="6">
848<a name="SEC_About"></a>
849<table cellpadding="1" cellspacing="1" border="0">
850<tr><td valign="middle" align="left">[<a href="#SEC1" title="Cover (top) of document">Top</a>]</td>
851<td valign="middle" align="left">[Contents]</td>
852<td valign="middle" align="left">[Index]</td>
853<td valign="middle" align="left">[<a href="#SEC_About" title="About (help)"> ? </a>]</td>
854</tr></table>
855<h1>About This Document</h1>
856<p>
857 This document was generated on <i>June, 30 2006</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
858</p>
859<p>
860 The buttons in the navigation panels have the following meaning:
861</p>
862<table border="1">
863 <tr>
864 <th> Button </th>
865 <th> Name </th>
866 <th> Go to </th>
867 <th> From 1.2.3 go to</th>
868 </tr>
869 <tr>
870 <td align="center"> [ &lt; ] </td>
871 <td align="center">Back</td>
872 <td>previous section in reading order</td>
873 <td>1.2.2</td>
874 </tr>
875 <tr>
876 <td align="center"> [ &gt; ] </td>
877 <td align="center">Forward</td>
878 <td>next section in reading order</td>
879 <td>1.2.4</td>
880 </tr>
881 <tr>
882 <td align="center"> [ &lt;&lt; ] </td>
883 <td align="center">FastBack</td>
884 <td>beginning of this chapter or previous chapter</td>
885 <td>1</td>
886 </tr>
887 <tr>
888 <td align="center"> [ Up ] </td>
889 <td align="center">Up</td>
890 <td>up section</td>
891 <td>1.2</td>
892 </tr>
893 <tr>
894 <td align="center"> [ &gt;&gt; ] </td>
895 <td align="center">FastForward</td>
896 <td>next chapter</td>
897 <td>2</td>
898 </tr>
899 <tr>
900 <td align="center"> [Top] </td>
901 <td align="center">Top</td>
902 <td>cover (top) of document</td>
903 <td> &nbsp; </td>
904 </tr>
905 <tr>
906 <td align="center"> [Contents] </td>
907 <td align="center">Contents</td>
908 <td>table of contents</td>
909 <td> &nbsp; </td>
910 </tr>
911 <tr>
912 <td align="center"> [Index] </td>
913 <td align="center">Index</td>
914 <td>index</td>
915 <td> &nbsp; </td>
916 </tr>
917 <tr>
918 <td align="center"> [ ? ] </td>
919 <td align="center">About</td>
920 <td>about (help)</td>
921 <td> &nbsp; </td>
922 </tr>
923</table>
924
925<p>
926 where the <strong> Example </strong> assumes that the current position is at <strong> Subsubsection One-Two-Three </strong> of a document of the following structure:
927</p>
928
929<ul>
930 <li> 1. Section One
931 <ul>
932 <li>1.1 Subsection One-One
933 <ul>
934 <li>...</li>
935 </ul>
936 </li>
937 <li>1.2 Subsection One-Two
938 <ul>
939 <li>1.2.1 Subsubsection One-Two-One</li>
940 <li>1.2.2 Subsubsection One-Two-Two</li>
941 <li>1.2.3 Subsubsection One-Two-Three &nbsp; &nbsp;
942 <strong>&lt;== Current Position </strong></li>
943 <li>1.2.4 Subsubsection One-Two-Four</li>
944 </ul>
945 </li>
946 <li>1.3 Subsection One-Three
947 <ul>
948 <li>...</li>
949 </ul>
950 </li>
951 <li>1.4 Subsection One-Four</li>
952 </ul>
953 </li>
954</ul>
955
956<hr size="1">
957<p>
958 <font size="-1">
959 This document was generated on <i>June, 30 2006</i> using <a href="http://texi2html.cvshome.org/"><i>texi2html 1.76</i></a>.
960 </font>
961 <br>
962
963</p>
964</body>
965</html>
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette