~ubuntu-branches/ubuntu/precise/ffmpeg-debian/precise

« back to all changes in this revision

Viewing changes to doc/faq.texi

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2009-01-20 09:20:53 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090120092053-izz63p40hc98qfgp
Tags: 3:0.svn20090119-1ubuntu1
* merge from debian. LP: #318501
* new version fixes CVE-2008-3230, LP: #253767

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
 
167
167
Beware that there is no "jpeg" codec. Use "mjpeg" instead.
168
168
 
169
 
@section I get "Unsupported codec (id=86043) for input stream #0.1". What is the problem?
170
 
 
171
 
This is the Qcelp codec, FFmpeg has no support for that codec currently.
172
 
Try MEncoder/MPlayer, it might work.
173
 
 
174
169
@section Why do I see a slight quality degradation with multithreaded MPEG* encoding?
175
170
 
176
171
For multithreaded MPEG* encoding, the encoded slices must be independent,
192
187
@section Why does the chrominance data seem to be sampled at a different time from the luminance data on bt8x8 captures on Linux?
193
188
 
194
189
This is a well-known bug in the bt8x8 driver. For 2.4.26 there is a patch at
195
 
(@url{http://svn.mplayerhq.hu/michael/trunk/patches/bttv-420-2.4.26.patch?view=co}). This may also
 
190
(@url{http://svn.ffmpeg.org/michael/trunk/patches/bttv-420-2.4.26.patch?view=co}). This may also
196
191
apply cleanly to other 2.4-series kernels.
197
192
 
198
193
@section How do I avoid the ugly aliasing artifacts in bt8x8 captures on Linux?
199
194
 
200
195
Pass 'combfilter=1 lumafilter=1' to the bttv driver. Note though that 'combfilter=1'
201
 
will cause somewhat too strong filtering. A fix is to apply (@url{http://svn.mplayerhq.hu/michael/trunk/patches/bttv-comb-2.4.26.patch?view=co})
202
 
or (@url{http://svn.mplayerhq.hu/michael/trunk/patches/bttv-comb-2.6.6.patch?view=co})
 
196
will cause somewhat too strong filtering. A fix is to apply (@url{http://svn.ffmpeg.org/michael/trunk/patches/bttv-comb-2.4.26.patch?view=co})
 
197
or (@url{http://svn.ffmpeg.org/michael/trunk/patches/bttv-comb-2.6.6.patch?view=co})
203
198
and pass 'combfilter=2'.
204
199
 
205
200
@section -f jpeg doesn't work.
231
226
@item non-working stuff
232
227
B-frames
233
228
@item example command line
234
 
ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
 
229
ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X output.mp4
235
230
@end table
236
231
 
237
232
@section How do I encode videos which play on the PSP?
244
239
@item non-working stuff
245
240
B-frames
246
241
@item example command line
247
 
ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -ar 24000 -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp output.mp4
 
242
ffmpeg -i input -acodec libfaac -ab 128kb -vcodec mpeg4 -b 1200kb -ar 24000 -mbd 2 -flags +4mv -trellis 2 -aic 2 -cmp 2 -subcmp 2 -s 368x192 -r 30000/1001 -title X -f psp output.mp4
248
243
@item needed stuff for H.264
249
244
-acodec libfaac -vcodec libx264 width*height<=76800 width%16=0? height%16=0? -ar 48000 -coder 1 -r 30000/1001 or 15000/1001 -f psp
250
245
@item working stuff for H.264
261
256
 
262
257
@section Which are good parameters for encoding high quality MPEG-4?
263
258
 
264
 
'-mbd rd -flags +4mv+trell+aic -cmp 2 -subcmp 2 -g 300 -pass 1/2',
 
259
'-mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2',
265
260
things to try: '-bf 2', '-flags qprd', '-flags mv0', '-flags skiprd'.
266
261
 
267
262
@section Which are good parameters for encoding high quality MPEG-1/MPEG-2?
268
263
 
269
 
'-mbd rd -flags +trell -cmp 2 -subcmp 2 -g 100 -pass 1/2'
 
264
'-mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 100 -pass 1/2'
270
265
but beware the '-g 100' might cause problems with some decoders.
271
266
Things to try: '-bf 2', '-flags qprd', '-flags mv0', '-flags skiprd.
272
267
 
431
426
@section I do not like the LGPL, can I contribute code under the GPL instead?
432
427
 
433
428
Yes, as long as the code is optional and can easily and cleanly be placed
434
 
under #ifdef CONFIG_GPL without breaking anything. So for example a new codec
 
429
under #if CONFIG_GPL without breaking anything. So for example a new codec
435
430
or filter would be OK under GPL while a bug fix to LGPL code would not.
436
431
 
437
432
@section I want to compile xyz.c alone but my compiler produced many errors.
474
469
 
475
470
@section Where is the documentation about ffv1, msmpeg4, asv1, 4xm?
476
471
 
477
 
see @url{http://svn.mplayerhq.hu/michael/trunk/docs/}
 
472
see @url{http://svn.ffmpeg.org/michael/trunk/docs/}
478
473
 
479
474
@section How do I feed H.263-RTP (and other codecs in RTP) to libavcodec?
480
475