[XviD-devel] 2 pass

Guillaume POIRIER poirierg at gmail.com
Wed May 11 11:52:23 CEST 2005


Hi Karine,

On 5/11/05, karine.yviquel <karine.yviquel at laposte.net> wrote:
> Hi,
> I'm new to this mailing list…
> I'm studying the 2nd pass rate control.
> When I compile the sources with visual 6, the single mode performs all right but I do not really understand what command line to enter to make the 2nd pass encoding.
> This is what I try:
> xvid_encraw.exe -i video.yuv –type 0 –w 448 –h 256 –frames 3 –o code.yuv –pass1 data1.txt –pass2 data2.txt
> Can someone help me?
Even though I don't use xvid_encraw to use XviD, I guess the problem
you have here is that you should not use --pass1 and --pass2 at the
same time. I think something like this should work better:
xvid_encraw.exe -i video.yuv –type 0 –w 448 –h 256 –frames 3 –o
code.yuv –pass1 data1.txt
xvid_encraw.exe -i video.yuv –type 0 –w 448 –h 256 –frames 3 –o
code.yuv –pass2 data2.txt

If it still doesn't work, maybe you should try to use the same pass
file for second pass: something like that:
xvid_encraw.exe -i video.yuv –type 0 –w 448 –h 256 –frames 3 –o
code.yuv –pass2 data1.txt

Other than that, unless you really need a very basic tool to encode
videos, I think you should try to use a tool such as MEncoder (for
which there's plenty of doc available), which you can compile with
MinGW: http://www.mingw.org/ here you can find how to compile it:
http://mplayerhq.hu/DOCS/HTML/en/windows.html
You can find binaries here:
http://ftp5.mplayerhq.hu/mplayer/releases/win32-beta/
An now, whenever you'd need to use XviD, just do like the following:
mencoder nosound -ovc xvid -xvidencopts pass=1 -vop scale=448:256
video.yuv -o monFilm_xvid.avi
and
mencoder nosound -ovc xvid -xvidencopts pass=2 -vop scale=448:256
video.yuv -o monFilm_xvid.avi

to use 2-pass mode.

Hope this helps.

Regards,
Guillaume POIRIER


More information about the XviD-devel mailing list