Re: XviD-users Digest, Vol 14, Issue 2

Santhosh <[email protected]> Mon, 22 Mar 2004 16:42:43 +0530 (IST)
Newsgroups gmane.comp.video.xvid.user
Message-ID <[email protected]>
> You wrote:
>
> > cat *.vob | mencoder -oac mp3lame -lameopts cbr:br=128:vol=4 -aid 128
> -ovc
> > xvid -sws 2 -xvidencopts bitrate=600:max_key_interval=240:4mv:pass=1
> -ofps
> > 25 -vop scale=640:360 -o title2.avi -
> >
> > But the problem is, the size of the output file is about 2.3 GB.
>
> Remove the ":pass=1" from the end of xvidencopts; that's for 2-pass
> operation, on the first pass of which it totally ignores the bitrate you
> set and does a pass with a fixed quantizer of 2 (which results in a really
> big file).
>
> Alternatively (slower and better) use what you wrote except with
> -o /dev/null (you don't need the file output on the first pass, just
> wastes space), then do a second pass (change to "pass=2" and back to -o
> title2.avi or whatever).

Thanks for the advice. I did exactly as you mentioned and got the job
done. But while doing the second pass, I had to guess the bitrate value to
get the file of desired size. Is there some neat way of finding the
bitrate value exactly, which results a file of desired size.

>
> Getting a bit off XviD, you don't have to rip the files to disk first...
> just do mencoder dvd://2 etc.  (or -dvd 2 if you're using an old version).
> There's a tradeoff, the one way you're using up gigs of disk space, the
> other way, you're spinning your dvd-rom drive continuously for hours on
> end.  Myself, I could use a reason to buy a new, faster dvd drive ;-)
>
> --wes