Log in

View Full Version : xvid_encraw bitrate problem


madhatter300871
3rd January 2012, 21:48
I encode using xvid_encraw, Keopi's 1.3.2 version. I perform a 2 pass bitrate mode encoding and specify the bitrate as 1000.

The help shows that bitrate is specified in kbps so I am presuming that my "1000" = 1000kbps = 1Mbps.

However .....

When I specify 1000, or 1500, or 2000, or 2500 my final bitrate is always 131kbps. I am therefore presuming that the value I have entered is being treated as bits and 131kbps is the lowest that the encoder can achieve.

I then entered 10000 and my final bitrate is 2697kbps, I am presuming that the 10000 is being treated as kbits and 2697kbps is the highest bitrate the encoder can achive.

Im confused ..... how do you specify the bitrate with xvid_encraw ? In bits, kbits, mbits or what ?

Thanks for any help.

Midzuki
4th January 2012, 02:04
xvid_encraw -h returns:
Rate control options:
<SNIP>

-framerate float : target framerate (25.0)
-bitrate [integer] : target bitrate (700)
values <= 10000 are treated as kbit/s
values > 10000 are treated as bit/s
<SNIP>

madhatter300871
5th January 2012, 00:36
Thanks !

However, when I set -bitrate 1000, or 1500, 2000, or 2500 I get a final bitrate of 131Kbps, I would expect 1Mbs, 2Mbs, 3Mbs respectively. When I set 10,000 (without the comma) I get a final bitrate of 2697Kbps, I would be expecting 10kbps (or the lowest the encoder could achieve).

Something isn't right, would you agree ?

Midzuki
5th January 2012, 02:48
I agree :o

However, how about trying other builds of xvid_encraw ? :confused:
For various reasons, I still prefer the modification by squid_80. :devil:
Besides, :script: might help :)

madhatter300871
5th January 2012, 18:09
I have used Jawors 1.3.2 build and Keopis 1.3.2 build, I can go back to another build (never thought of that, doh !!).

I'll post my script when I next do an encode, but basically I perform pass1 with no options except specifying the stats file. I then perform pass2 setting different options, in particular "-bitrate 1000". I'll post the full command line from my next encode.

madhatter300871
8th January 2012, 21:04
I uninstalled xvid, and deleted all copies of xvidencraw and the xvidcore dll, so I could just start over.

I downloaded the latest xvid from the xvid web site, installed it. I then made an encode with both jawors 1.3.2 and Keopis 1.3.2 build and it works as expected.

Hmmm, could my machine have just gotten screwed somehow regarding xvid ? Suppose I'll never know.

madhatter300871
10th January 2012, 01:16
Scrap that... found the problem. I'm an idiot, somebody poke me in the eye !!

I set imin/max, pmin/mx, bmin/max the wrong way round.... min as 31, max as 1.

DOH !!!

Midzuki
12th January 2012, 01:22
lol :)

Lol :p

LOL :D