[MEncoder-users] Bits per block

Grozdan Nikolov microchip at chello.be
Thu Jul 12 15:28:54 CEST 2007


Hi,

Maybe this is not the right place to ask, but I have a question about 
calculating the bits per block value. In the "encoding-tips.txt" file which 
is located in the DOCS/tech directory of the MPlayer source package, a guy 
talks about how to calculate the bits per blocks value and also give a 
formula....

                   videobitrate * 1000
bpb = --------------------------------------
          fps * ((width * height) / (16 * 16))

And here's where I get a bit confused. He talks about 2 digit values as 
outcome (40 and 50 bpb) but when I calculate the bpb value for a 640x480 
movie with a 25 FPS value and 900 kbps as bitrate, I get huge values as 
outcome, eg

echo $(($((900*1000))/25*$((640*480))/$((16*16))))

and I get 43200000 as outcome. Only if I divide this outcome with 1000000 I 
get a two digits value (43 in this case)

So my question is am I the one who's doing something wrong here or is the 
above formula wrong?

Thanks in advance



More information about the MEncoder-users mailing list