Question about bitrate and framerate
Hi. I am a little confused with the parameters for encoder. SEncParamExt has this: oSEncParamExt.fMaxFrameRate and this; oSEncParamExt.iTargetBitrate
Whats confuse me is that if i set fMaxFrameRate to be 30 for example then this alone can determine the Bitrate. Then why there is an option to set the iTargetBitrate then?
Same question here: oSEncParamExt.sSpatialLayers[0].fFrameRate = 30.0f; oSEncParamExt.sSpatialLayers[0].iSpatialBitrate = 1500000;
and why there is an option to choose bitrate & FrameRate for input and for output.
Hope someone can make me understand this.
Thanks.
Frame rate is completely different from bitrate. Informally, bitrate is to control the bitstream output bandwidth. Frame rate is mainly for display fluency. It may affect the bitrate, but it cannot "determine the Bitrate".
So if i INCREASE the bitrate and leave the frame rate as it is, then somehow the incoder will need to do something in order to keep the same frame rate. so to lower the bitrate it sends, it will need to a) lower the frame it sends - but since i left it as it is then it should not do that, so the only other option for the encoder to low the data it sends (bitrate) but to keep the same frame rate is to lower the quality of the movie - 1)is that correct?
- and if i keep the bitrate as it is and just lower to frame rate, what then the encoder will do? Lets say i set the frame rate to 1 and keep the bitrate as it so, so encoder will do some waiting (sleep, wait for sindleobject...) inside its functions to meet the 1 FPS?
@jim12345 I believe there is no way to have both constant bitrate and framerate. To do that the encoder should be able to automatically lower encoding quality.
Right now if we set the SEncParamExt.bEnableFrameSkip to false there is a warning that tells us that Rate Control is disabled without skipping frames.
Automatically lowering encoding quality rather than framerate would be nice.