# HG changeset patch # User diego # Date 1084836936 0 # Node ID 58056bc98dd93b22a89aeb9428e152f2f0dde921 # Parent 1596232fa5b3e3bb9096363e868b68b0a0fa8679 Remove 3-pass encoding guide (can break A/V sync), rescaling is not necessarily bad, typo. diff -r 1596232fa5b3 -r 58056bc98dd9 DOCS/xml/en/mencoder.xml --- a/DOCS/xml/en/mencoder.xml Mon May 17 21:51:56 2004 +0000 +++ b/DOCS/xml/en/mencoder.xml Mon May 17 23:35:36 2004 +0000 @@ -15,10 +15,8 @@ -Encoding 2 or 3-pass MPEG4 ("DivX") +Encoding 2-pass MPEG4 ("DivX") - -2-pass encoding The name comes from the fact that this method encodes the file twice. The first encoding (dubbed pass) creates some temporary files @@ -27,79 +25,29 @@ file is created, using the bitrate data from the temporary files. The resulting file will have much better image quality. If this is the first time you heard about this, you should consult some guides available on the -Net. +net. - + +copy audio track -This example shows how to encode a DVD to a 2-pass MPEG4 ("DivX") AVI. -Just two commands are needed: -rm frameno.avi -remove this file, which can come from a previous 3-pass encoding (it interferes -with current one) +2-pass encode of a DVD to an MPEG4 ("DivX") AVI while copying +the audio track. mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi - - -3-pass encoding - -This is an extension of 2-pass encoding, where the audio encoding takes -place in a separate pass. This method enables estimation of recommended -video bitrate in order to fit on a CD. Also, the audio is encoded only -once, unlike in 2-pass mode. The schematics: - - - - - - Remove conflicting temporary file: - rm frameno.avi - - - First pass: - - mencoder file/DVD -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi - - An audio-only avi file will be created, containing - only the requested audio stream. Don't forget - , if you need to set it. If you were encoding a - long movie, MEncoder prints the recommended - bitrate values for 650Mb, 700Mb, and 800Mb destination sizes, after this - pass finishes. - - - Second pass: - -mencoder file/DVD -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=bitrate -This is the first pass of video encoding. Optionally specify the video -bitrate MEncoder printed at the end of the previous pass. - - - Third pass: - -mencoder file/DVD -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=bitrate - -This is the second pass of video encoding. Specify the same bitrate -as in the previous pass unless you really know what you are doing. -In this pass, audio from frameno.avi will be -inserted into the destination file...and it's all ready! - - + -Example of 3-pass encoding +encode audio track -rm frameno.avi -remove this file, which can come from a previous 3-pass encoding -(it interferes with current one) +2-pass encode of a DVD to an MPEG4 ("DivX") AVI while encoding +the audio track to MP3. -mencoder dvd://2 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3 -mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi -mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi +mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o movie.avi +mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac mp3lame -lameopts vbr=3 -o movie.avi @@ -142,9 +90,8 @@ Often the need to resize movie images' size emerges. Its reasons can be many: decreasing file size, network bandwidth,etc. Most people even do -rescaling when converting DVDs or SVCDs to DivX AVI. This is bad. -Instead of even you doing so, read the Preserving aspect ratio -section. +rescaling when converting DVDs or SVCDs to DivX AVI. If you wish to rescale, +read the Preserving aspect ratio section. @@ -158,7 +105,7 @@ Usage: -mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480-o output.avi +mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4 -vf scale=640:480 -o output.avi