Browse code

Add examples in documentation showing how to avoid to decode audio and output video in pass 1 for 2-pass encoding. Patch by Erwan Ducroquet erwan _dot_ ducroquet _at_ gmail _dot_ com

Originally committed as revision 14736 to svn://svn.ffmpeg.org/ffmpeg/trunk

Erwan Ducroquet authored on 2008/08/14 04:49:37
Showing 1 changed files
... ...
@@ -429,6 +429,12 @@ Select the pass number (1 or 2). It is useful to do two pass
429 429
 encoding. The statistics of the video are recorded in the first
430 430
 pass and the video is generated at the exact requested bitrate
431 431
 in the second pass.
432
+On pass 1, you may just deactivate audio and set output to null,
433
+examples for Windows and Unix:
434
+@example
435
+ffmpeg -i foo.mov -vcodec libxvid -pass 1 -an -f rawvideo -y NUL
436
+ffmpeg -i foo.mov -vcodec libxvid -pass 1 -an -f rawvideo -y /dev/null
437
+@end example
432 438
 
433 439
 @item -passlogfile @var{file}
434 440
 Set two pass logfile name to @var{file}.