Log in

View Full Version : problems with XVID settings


daWsOn_s
10th March 2009, 21:49
Hello,
I'm using Megui to do my encoding and I'm perfectly ok with all the options that I couldn't change it for anything else. Even if x264 is my main encoder sometimes I have to make some Xvids, the problem is that I can't get a good quality in megui with xvid (which uses xvid_encraw.exe) compared to VirtualDubMOD for example which uses VFW instead.
I'm using, without any doubts, different setting but I don't know what it's causing this evident better quality with VDM.

Here's a link to two sample videos made with the two programs (2-pass both), you can see that at about the same bitrate VMD has a much more better quality with less artifacts at the edges.

http://www.megaupload.com/?d=3MT8GVIH

With VMD I used the default settings (never changed since installation) except bitrate and with Megui I tried all profiles (with the same worse quality results)... anyway this sample was made with XVID 2pass Balanced with these settings:

[NoImage] Job commandline: "C:\Programmi\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Documents and Settings\Sandro\Desktop\The Fray - You Found Me (Jay Leno 02.03.2009) HD-1080i.avs" -pass1 "C:\Documents and Settings\Sandro\Desktop\The Fray - You Found Me (Jay Leno 02.03.2009) HD-1080i.stats" -bitrate 1100 -kboost 100 -chigh 30 -clow 15 -overhead 0 -turbo -max_key_interval 250 -nopacked -qtype 1 -closed_gop -lumimasking -notrellis -nochromame -imin 1 -pmin 1 -max_bframes 1 -bvhq -bquant_ratio 162 -bquant_offset 0 -bmin 1 -par 1:1 -threads 2


How can I get the same result in Megui with encraw? Thank you in advance.

Koepi
11th March 2009, 10:39
I don't know all of the options (-clow and -chigh).
But: remove the -turbo switch, -notrellis, -nochromame as well. Set -max_bframes to 2. Use a -bquant_offset of 1.
Those settings are closer to what the defaults in VfW are.

Cheers
Koepi

Sharktooth
11th March 2009, 13:48
-clow and -chigh are the low and high bitrate scenes degradation (%) but IMHO there are surely other differencies in the settings (quant matrices? VAQ?)...
in any case, the bitrate is too low for that source.

daWsOn_s
11th March 2009, 14:26
The output file is 624x352.

Anyway I tried changing the settings (I saw that the new updated ones are "corrected" though) but the result is the same. Those are not the settings that change the quality dramatically
[I]
[NoImage] Job commandline: "C:\Programmi\megui\tools\xvid_encraw\xvid_encraw.exe" -i "C:\Documents and Settings\Sandro\Desktop\The Fray - You Found Me (Jay Leno 02.03.2009) HD-1080i.avs" -pass2 "C:\Documents and Settings\Sandro\Desktop\The Fray - You Found Me (Jay Leno 02.03.2009) HD-1080i.stats" -bitrate 1100 -kboost 100 -chigh 30 -clow 15 -overhead 0 -max_key_interval 250 -nopacked -closed_gop -lumimasking -imin 1 -pmin 1 -bvhq -bquant_ratio 162 -bquant_offset 1 -bmin 1 -par 1:1 -threads 2 -avi

Sharktooth
11th March 2009, 14:36
try disabling VAQ (Adaptive Quantization => -lumimasking) in the megui preset.

henryho_hk
11th March 2009, 18:16
try:
-qtype 0 -max_key_interval 300 -packed -max_bframes 2 -bquant_ratio 150 -bquant_offset 100
-qtype 0 -max_key_interval 300 -packed -max_bframes 2 -bquant_ratio 162 -bquant_offset 0

Your VDM encode is using H.263 but your MeGUI is using MPEG matrix.

daWsOn_s
12th March 2009, 01:03
try disabling VAQ (Adaptive Quantization => -lumimasking) in the megui preset.


It helped a little

daWsOn_s
12th March 2009, 01:04
try:
-qtype 0 -max_key_interval 300 -packed -max_bframes 2 -bquant_ratio 150 -bquant_offset 100
-qtype 0 -max_key_interval 300 -packed -max_bframes 2 -bquant_ratio 162 -bquant_offset 0

Your VDM encode is using H.263 but your MeGUI is using MPEG matrix.


I would If I knew how to use this single line

henryho_hk
12th March 2009, 01:25
Simply replace the corresponding parameters in your xvid_encraw command lines (for both 1st and 2nd pass).

daWsOn_s
13th March 2009, 01:34
I don't know how to do it in megui

henryho_hk
13th March 2009, 02:49
The most significant option is "-qtype". Try to select the H.263 "matrix" in megui.

daWsOn_s
13th March 2009, 14:14
it's already set to h.263

Sharktooth
13th March 2009, 17:55
henryho_jk: it's the vdm encode that was encoded with the mpeg matrix.

henryho_hk
14th March 2009, 03:44
MPEG4Modifier said the megui encode is using MPEG and the vdm encode is using VDM. Doesn't the megui encode have more ringing?

Jeffster
14th March 2009, 11:23
@ daWsOn_s

I think these settings are the same as the vfw defaults (I'd recommend enabling bvhq also)...

http://www.mediafire.com/?yuu3ynu5j4z

Just extract to megui's Xvid profiles folder.

daWsOn_s
14th March 2009, 14:44
yep, it works!

henryho_hk
16th March 2009, 00:20
it's already set to h.263

Is it a bug in MeGUI user interface or the detection routine of MPEG4Modifier?

Sharktooth
16th March 2009, 22:11
... testing ...

Sharktooth
16th March 2009, 22:16
the user definatly modified the default presets coz i've checked the sources and, just to be sure, encoded a clip with megui using xvid as encoder with all the stock xvid presets and the result is mpeg4modifier detects h.263 quant type...
so the "bug" is just the user...

henryho_hk
17th March 2009, 13:53
h.264 ? ;)

If it is merely the wrong choice of matrix, it's better to enable VAQ again.

Sharktooth
18th March 2009, 04:52
typo... i meant h.263