Log in

View Full Version : Cannot pass bitrate via command line when using mencoder's profiles


mulder77
4th December 2010, 14:43
Hi,

I have different profiles for x264 encoding defined.
This setup has been working until some updates on my Fedora system were in place.

Currently these versions are installed:

x264.x86_64 0.0.0-0.28.20100706gitd058f37.fc14 @rpmfusion-free
x264-libs.x86_64 0.0.0-0.28.20100706gitd058f37.fc14 @rpmfusion-free

mencoder.x86_64 1.0-0.119.20100703svn.fc14 @rpmfusion-free


My goal is a 2-pass encoding with a target filesize. My script calculates the target bitrate after the first pass and calls mencoder like this:

mencoder input -profile pass2 -x264encopts bitrate=1234 -o output


When doing so, x264 fails:

x264 [error]: constant rate-factor is incompatible with 2pass.
So the bitrate isn't set.


If I add bitrate to my profile or call all in the command line without the usage of a profile, everything is ok.

Was is broken here and how do I fix it? As mentioned, in my previous setup (on Fedora 12) it was always ok.


Thanks
Markus