PDA

View Full Version : Force 1st pass bitrate?


zzuser
5th November 2006, 23:15
Hi!

Is it possible to force mencoder or some other, preferrably Linux CLI, encoder to aim for a certain bitrate in the first pass with XviD? This is possible with x264 using -x264encopts bitrate=1800: pass=1, but with XviD mencoder says "xvid: bitrate setting is ignored during first pass". I know you are not supposed to keep the first pass encode and what I am asking for is probably by design not supported, but I'd nevertheless would like to know if it is possible. If nothing else is it possible to indirectly achieve the wanted functionality by modifying quantifiers or some other parameter? I'm getting 2400kbps output on the first pass, but I'd like to hit something in the neighbourhood of 1800 kbps.

Why? I need to create multirate encodes of the same material and utilizing the first and the second pass at predefined bitrates would be a convenient way of achieving this end result. In my application encoding speed is of the essence and thus my yearn for XviD rather than x264.

- Zed

Blue_MiSfit
6th November 2006, 04:36
Well, the way you do that in the VFW world is to create a zone for the first pass that spans the whole video, and make that zone a CQ zone - say 3 or 4 depending on how much compression you're looking for.

~Misfit