[XviD-devel] 2 pass
karine.yviquel
karine.yviquel at laposte.net
Wed May 11 14:12:32 CEST 2005
Thanks Guillaume,
The solution to use the two-pass mode is as follow:
xvid_encraw.exe -i video.yuv type 0 w 448 h 256 frames 3 o code.yuv pass1 data1.txt and then, xvid_encraw.exe -i video.yuv type 0 w 448 h 256 frames 3 o code.yuv -bitrate 300000 pass2 data1.txt
The first pass is coded with a constant QP.
But the 2nd pass is perform in VBR mode that why we need the bitrate too.
-----Message d'origine-----
De : xvid-devel-bounces at xvid.org [mailto:xvid-devel-bounces at xvid.org] De la part de Guillaume POIRIER Envoyé : mercredi 11 mai 2005 11:52 À : xvid-devel at xvid.org Objet : Re: [XviD-devel] 2 pass
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
Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34/mn) ; tél : 08 92 68 13 50 (0,34/mn)
More information about the XviD-devel
mailing list