Thank you Michael. But what if I set maxrate = 2000K instead of 9000K?
And then calculate total size like
sz:=((VideoBitrate/1000)/8)*totalsec+((AudioBitrate/1000)/8)*totalsec;
(where VideoBitrate = 2000K and AudioBitrate=448000. totalsec is a length of the movie). What do you think?