Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Select the "XviD MPEG-4 Codec" in the codec selection section of your video conversion/encoding
software. Press the "Configure" button or whatever button that let you configure the codec settings, and
you should now have access to the configuration options described below (see screenshot below).
XviD Options
We'll now go through the steps you would need to follow setup the codec for two pass encoding.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 2 sur 22
Main Settings:
Profile @ Level:
XviD: Profiles
The "Simple" profiles is best compared to VCDs, since it limits the resolution to
352x*** and the bit-rate to up to 384 Kbits/s. "Advanced Simple" allows more
advanced features such as B-frames, Quarter Pixel and GMC. The "Portable",
"Handheld" and "Home Theatre" profiles are all aimed at ensuring compatibility.
For more information on compatibility with standalone XviD players, please
refer to our Using VirtualDub - Re-encode AVI for standalone compatibility
guide.
Each profile also has several different levels, with each level having a different
resolution/bit-rate limit.
The best profile to choose for day to day DVD conversion is "Advanced Simple
@ L5" - newer standalone players are compatible with this profile.
Press the "More" button to configure the Profile level you selected...
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 3 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 4 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 5 sur 22
Encoding Type:
This is where you select what kind of encoding you want to use with the XviD
codec.
For this guide, we'll use 2-pass encoding, since it gives a more precise final file
size, and will produce the best quality encoding (for that particular file size).
If you select Twopass - 1st pass and press the "More" button, this
is the window you'll get:
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 6 sur 22
Here, you can specify a filename of the stats file that will be
generated in the first pass to record the necessary information.
This filename must be the same as what you would specify for the
second pass. The "Full quality first pass" option will generate a file
that is encoded with all the normal encoding options (whereas a
normal first pass will skip many things to improve encoding
speed), so it's not that useful to select this option (it will slow
down your encoding). The "Discard first pass" option should be
selected as well to remove the video file encoded using the first
pass (which is playable, but is not at the best quality/file size and
probably not MPEG-4 compliant).
If you select Twopass - 2nd pass and press the "More" button, this
is the window you'll get:
Here, you have to specify the same stat file filename as you did
for the first pass. The rest of the options should not be touched
unless you know what you're doing, as they can affect both quality
and the accuracy of the predicted file size.
Click "OK" to close this window. There should now be a new option
available underneath the Encoding Type option called "Target
size".
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 7 sur 22
Zones:
XviD: Zones
Zones allow you to apply different encoding settings to different parts of the
video, for example, applying a lower bit-rate to the end credits to save space.
You can use the "Add" and "Remove" buttons to add/remove a zone, and once
you select a zone, you can click on the "Zone Options" to configure the zone:
Start frame #: - This is the video frame number for which this
zone will start to apply. For example, if you credits start at the
181024th frame, then enter it here.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 8 sur 22
You can access the advanced options by clicking on the "more" button in the "Quality preset"
section.
Motion search precision: - This options determines the precision of the motion search
algorithm. The higher the setting, the better quality the picture will be (at the expense of
encoding time). Set this to "6 - Ultra High" or "5 - Very High".
VHQ mode: - This option enables a more precise motion search mode, but at a serious
expense of speed. It is usually not worth going higher than "1 - Mode Decision", unless you
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 9 sur 22
Use VHQ for bframes too: - Selecting this option will decrease encoding speed by applying
VHQ mode to B-frames as well
Use chroma motion: - Selecting this option will decrease encoding speed by about 5-10%,
but will improve quality by reducing macro blocks.
Turbo ;-) - This option enables some speed optimization at the expense of some minor
quality loss.
Frame drop ratio: - Setting this ratio to higher than 0 will let the encoder drop frames from
the encoding, which will seriously degrade the quality of your encoding. Leave this setting at
0.
Cartoon Mode: - You can enable this option if your source material is animation.
Quantizer Restrictions: - Apart from changing all Min quantizer settings to 2 (using 1 will
not improve picture quality, and will only increase file size), you can leave the other settings
alone, as the codec will determine the best quantizer values to use.
Trellis quantization: - This option will decrease the file size, but may decrease encoding
speed and quality.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 10 sur 22
Other Options:
FourCC used: - The FourCC code determines the type of codec that was used to encode the
video. Since DivX and XviD are similar (both based on MPEG-4), you could change the
FourCC to make it playable with another codec. Normally, leave the FourCC code as it is (you
can also change the code in the future if you wish).
Number of threads: - This options was enabled in version 1.2.x of the XviD codec. This
allows you to run XviD encodinds in multi-thread mode, to take advantage of dual-core,
hyperthreaded or multi-CPU setups. Leaving this at "0" disables multi-threading, and this is
the recommended setting. Setting it to 2 might speed up encoding in a dual-core or
hyperthreaded system, but certain options (like GMC) are not multi-threaded, so the speed
up might not be evident.
Most of the other options can be ignored (eg. the "Decoder" tab sets the default decoder
options for the encoding - decoding options can be adjusted during playback as well), but in
the "Common" tab, there is an option called "Performance optimization", which allows you to
select which CPU optimizations to use (the "Automatic detection" option works fine in most
situation). Selecting a CPU optimization when your CPU does not support is not
recommended for obvious reasons.
Seleccione el "XviD MPEG-4 Codec" en la sección donde elige el codec en su programa de conversión.
Presione el botón de su programa que le permita configurar su codec, para tener acceso a las opciones de
configuración descritas a continuación (vea la imagen debajo).
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 11 sur 22
XviD Opciones
Bien, ahora seguiremos los pasos que necesita seguir para configurar el codec para dos pases.
Ajustes Principales:
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 12 sur 22
Los perfiles de XviD son en realidad normas del MPEG-4(Avi). Debido a que el
MPEG-4 esta diseñado para trabajar a través de muchas diferentes plataformas,
esas normas son requeridas para que el video Xvid/MPEG-4 que Ud. produzca
trabaje en esas plataformas (Ej. Algo que funciona en su tocador casero no
trabaja en su teléfono móvil o celular). Cada perfil tendrá diferentes
restricciones que poner al codec y por tanto a Ud. le es permitido realizar estos
ajustes.
XviD: Perfiles
Los perfiles "Simple" son mejores comparados a los del VCD, porque este limita
la resolución (tamaño de cada imagen) a 352x*** y el bit-rate, tasa de bits,
(bit, dígito binario), por x cantidad de tiempo, en este caso Kbits/s (kilo bits por
segundo). "Advance Simple", avanzada simple, permite características más
complejas como los 'B-frames', imágenes o cuadros codificados en forma bi-
direccional, 'Quarter Pixel', cuarto de un píxel, (píxel es un punto en fotografía
digital) y GMC (global motion compensation, compensación del movimiento
global o general). Los perfiles "Portable", portátil, "Handheld", de mano y
"Home Theatre", teatro en el hogar, están dirigidos a asegurar compatibilidad
con tocadores de XviD o video AVI fuera de su computador. En esta pagina en
ingles Using VirtualDub - Re-encode AVI for standalone compatibility encontrará
una guía para re-codificar un AVI para un tocador casero.
Cada perfil tiene también diferentes niveles, cada uno con diferentes limites de
resolución/bit-rate.
Apriete el botón "More", más, para configurar el "Profile @ Level", Nivel del
Perfil, que Ud. seleccione...
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 13 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 14 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 15 sur 22
Aquí es donde Ud. selecciona la clase de codificación que desea usar con el
codec XviD.
• Single Pass: (un solo pase) Codifica la película con un bit-rate constante.
• Twopass - 1st pass: (dos pases - primer pase) Primer paso para una
codificación a dos pases. Este paso analiza la fuente (la película o DVD
que desea codificar a AVI con XviD) y recoge la información necesaria
para el pase siguiente.
• Twopass - 2nd pass: (dos pases - segundo pase) El paso final para
codificar a dos pases, donde la información recogida por el pase anterior
es usada para optimizar la codificación.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 16 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 17 sur 22
Apriete "OK" para cerrar esta ventana. Ahora hay otra opción
debajo de "Encoding type", "Target size (kbytes)", Tamaño del
objetivo, este es el tamaño del archivo AVI que quiere crear, dado
en kilo bytes.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 18 sur 22
Zonas:
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 19 sur 22
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 20 sur 22
Haga click en el botón "more", más, para accesar las opciones avanzadas in la
sección "Quality preset", Calidad Preajustada.
VHQ mode: Modo Video alta calidad - Esta opción permite un modo de
busqueda de movimiento más preciso, pero a expensa de la velocidad.
Usualmente no vale la pena ir más allá de "1 - Mode Decision", a no ser que
haya seleccionado la opción GMC anteriormente.
Use VHQ for bframes too: Usar Video alta calidad para los bframes también -
Selecionando esta opción disminuirá la velocidad de codificación al aplicar modo
VHQ a los bframes también.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 21 sur 22
Frame drop ratio: Ratio de descarte de imágenes - Ajustando este ratio a más
de 0, permitirá al codificador descartar imágenes o cuadros de la codificación,
esto seriamente degradaría la calidad. Deje esta opción en 0.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013
Xvid Setup Guide (Printer Friendly Version) | Articles - Digital Digest Page 22 sur 22
Casi todas las otras opciones pueden ser ignoradas (ej. En la etiqueta
“Decoder”, decodificador, hay ajustes para las opciones por defecto para el
decodificador al hacer la codificación – estas opciones pueden ser ajustadas
cuando se toca el video), pero en la etiqueta “Common”, común, hay una
opción llamada "Performance optimization", optimización del rendimiento, que
le permite seleccionar cuales optimizaciones del CPU usar (la opción "Automatic
detection", detectar automáticamente, funciona bien en la mayoría de los
casos). Seleccionar una optimización de CPU cuando su CPU no la soporta no es
recomendado por razones obvias.
http://www.digital-digest.com/articles/xvid_setup_print.html 28/08/2013