# HG changeset patch
# User gpoirier
# Date 1119547553 0
# Node ID c4974449b18c8b5d9916756b150463429a3ad386
# Parent f03a8d54e5f9424ea2acb001c5955819c72f2f7b
New codec covered by the encoding guide: XviD
diff -r f03a8d54e5f9 -r c4974449b18c DOCS/xml/en/mencoder.xml
--- a/DOCS/xml/en/mencoder.xml Thu Jun 23 16:44:52 2005 +0000
+++ b/DOCS/xml/en/mencoder.xml Thu Jun 23 17:25:53 2005 +0000
@@ -2438,6 +2438,147 @@
+
+Encoding with the XviD
+codec
+
+ XviD is a free library for
+ encoding MPEG-4 ASP video streams.
+ Before starting to encode, you need to
+ set up MEncoder to support it.
+
+
+ This guide mainly aims at featuring the same kind of information
+ as x264's encoding guide.
+ Therefore, please begin by reading
+ the first part of that
+ guide.
+
+
+
+
+What options should I use to get the best results?
+
+
+ Please begin by reviewing the
+ XviD section of
+ MPlayer's man page.
+ This section is intended to be a supplement to the man page.
+
+
+ The XviD default settings are already a good tradeoff between
+ speed and quality, therefore you can safely stick to them if
+ the following section puzzles you.
+
+
+
+
+Encoding options of XviD
+
+
+
+ vhq
+ This setting affects the macroblock decision algorithm, where the
+ higher the setting, the wiser the decision.
+ The default setting may be safely used for every encode, while
+ higher settings always help PSNR but are significantly slower.
+ Please note that a better PSNR does not necessarily mean
+ that the picture will look better, but tells you that it is
+ closer to the original.
+ Turning it off will noticeably speed up encoding; if speed is
+ critical for you, the tradeoff may be worth it.
+
+
+
+ bvhq
+ This does the same job as vhq, but does it on B-frames.
+ It has a negligible impact on speed, and slightly improves quality
+ (around +0.1dB PSNR).
+
+
+
+ max_bframes
+ A higher number of consecutive allowed B-frames usually improves
+ compressibility, although it may also lead to more blocking artifacts.
+ The default setting is a good tradeoff between compressibility and
+ quality, but you may increase it up to 3 if you are bitrate-starved.
+ You may also decrease it to 1 or 0 if you are aiming at perfect
+ quality, though in that case you should make sure your
+ target bitrate is high enough to ensure that the encoder does not
+ have to increase quantizers to reach it.
+
+
+
+ bf_threshold
+ This controls the B-frame sensitivity of the encoder, where a higher
+ value leads to more B-frames being used (and vice versa).
+ This setting is to be used together with ;
+ if you are bitrate-starved, you should increase both
+ and ,
+ while you may increase and reduce
+ so that the encoder may use more
+ B-frames in places that only really
+ need them.
+ A low number of and a high value of
+ is probably not a wise choice as it
+ will force the encoder to put B-frames in places that would not
+ benefit from them, therefore reducing visual quality.
+ However, if you need to be compatible with standalone players that
+ only support old DivX profiles (which only supports up to 1
+ consecutive B-frame), this would be your only way to
+ increase compressibility through using B-frames.
+
+
+
+ trellis
+ Optimizes the quantization process to get an optimal tradeoff
+ between PSNR and bitrate, which allows significant bit saving.
+ These bits will in return be spent elsewhere on the video,
+ raising overall visual quality.
+ You should always leave it on as its impact on quality is huge.
+ Even if you are looking for speed, do not disable it until you
+ have turned down and all other more
+ CPU-hungry options to the minimum.
+
+
+
+ cartoon
+ Designed to better encode cartoon content, and has no impact on
+ speed as it just tunes the mode decision heuristics for this type
+ of content.
+
+
+
+ me_quality
+ This setting is to control the precision of the motion estimation.
+ The higher , the more
+ precise the estimation of the original motion will be, and the
+ better the resulting clip will capture the original motion.
+
+
+ The default setting is best in all cases;
+ thus it is not recommended to turn it down unless you are
+ really looking for speed, as all the bits saved by a good motion
+ estimation would be spent elsewhere, raising overall quality.
+ Therefore, do not go any lower than 5, and even that only as a last
+ resort.
+
+
+
+ chroma_me
+ Improves motion estimation by also taking the chroma (color)
+ information into account, whereas
+ alone only uses luma (grayscale).
+ This slows down encoding by 5-10% but improves visual quality
+ quite a bit by reducing blocking effects.
+ If you are looking for speed, you should disable this option before
+ starting to consider reducing .
+
+
+
+
+
+
How to deal with telecine and interlacing within NTSC DVDs