Log in

View Full Version : Command line for XviD 1.3 (1-pass and 2-pass) ???


mihanja80
11th January 2011, 20:58
You can see that I am registered on your forum a long time.
I read a lot and test...
I use to encode the program XviD4PSP (modified fcp (forclip)) code.google.com (http://code.google.com/p/xvid4psp/downloads/list) and
Xvid 1.3.0 RC1 (xvidcore.dll + xvid_encraw.exe; 32bit) from Jawor jawormat.republika.pl (http://jawormat.republika.pl/xvid.html)

Example:

-qtype 1 -vhqmode 4 -nopacked -bvhq -bquant_ratio 160 -bquant_offset 0 -masking 2 -max_key_interval 240 -reaction 17 -averaging 101 -smoother 101


-size 1496000 -qtype 1 -vhqmode 4 -nopacked -bvhq -bquant_ratio 160 -bquant_offset 0 -masking 2 -max_key_interval 240 -reaction 17 -averaging 101 -smoother 101 -kboost 11 -ostrength 6 -oimprove 6 -odegrade 6 -chigh 1 -clow 1 -overhead 16 -vbvmax 4854000 -vbvsize 3145728 -vbvpeak 10 -imin 1 -pmin 1 -bmin 1

At a forum in the FAQ there are a lot of useful information but many already outdated But very little information about the work from the console version of the XviD codec...
I found many descriptions of functions, settings for vfw but there is no information to work with xvid_encraw.exe

I am interested in the usual option, what options need to set in at two-pass encoding for the first pass and which are only for the second (which should be in the first pass and in the second)?
For example: Do I have to write-imin a -imin 1 -pmin 1 -bmin 1 in the first and second pass, or enough to write only in the second?
Can you please tell what commands (keys) must be specified in only one pass and which are only in the second (which means the rest will be needed in both passes).



Where can I find out about all available commands (keys) for XviD 1.3 (preferably with the description).


they Use for viewing for home DVD-players for TV

Please take 30 minutes to respond to my message, maybe stupid on your part

Thank you very much :helpful:
:thanks:


I use these settings may have other recommendations?
-qtype 1 -notrellis -vhqmode 4 -nopacked -bvhq -bquant_ratio 160 -bquant_offset 0 -masking 2 -max_key_interval 240 -metric 1

-size 1496000 -qtype 1 -notrellis -vhqmode 4 -nopacked -bvhq -bquant_ratio 160 -bquant_offset 0 -masking 2 -max_key_interval 240 -metric 1 -vbvmax 4854000 -vbvsize 3145728 -imin 2 -pmin 2 -bmin 2

henryho_hk
12th January 2011, 01:09
Assuming you are using XviD 1.2.x VAQ and squid_80's xvid_encraw, you can start with


xvid_encraw.exe -progress 100 -nopacked -bquant_ratio 162 -bquant_offset 0 -max_bframes 2 -qtype 0 -lumimasking -vhqmode 1 -i src.avs -max_key_interval 300 -pass1 src.pass -zones 0,q,3,K -quality 5 -nochromame -turbo
xvid_encraw.exe -progress 100 -nopacked -bquant_ratio 162 -bquant_offset 0 -max_bframes 2 -qtype 0 -lumimasking -vhqmode 4 -i src.avs -max_key_interval 300 -pass2 src.pass -bitrate 1500 -quality 6 -bvhq -avi dst.avi


If you use Jawor's xvid_encraw + XviD 1.3RC1 (it's more like alpha imho...)


xvid_encraw.exe -progress 100 -nopacked -bquant_ratio 162 -bquant_offset 0 -max_bframes 2 -qtype 0 -masking 2 -vhqmode 1 -i src.avs -max_key_interval 300 -pass1 src.pass -zones 0,q,3,K -quality 5 -nochromame -turbo
xvid_encraw.exe -progress 100 -nopacked -bquant_ratio 162 -bquant_offset 0 -max_bframes 2 -qtype 0 -masking 2 -vhqmode 4 -i src.avs -max_key_interval 300 -pass2 src.pass -bitrate 1500 -quality 6 -bvhq -avi dst.avi


You can add -qpel in the 2nd pass. Also, u can also try the new PNSRHVSM in XviD 1.3 by specifying "-metric 1" in both passes. XviD 1.3 offers much speed-up when u have multi-core CPU with -slices n, but u'd better avoid having "-qpel" and "-metric 1" at the same time.