Hello,
I am trying to set the frame rate and the bit rate in my encoder instance. I would like the Frame Rate to 8 frames per second and the CBR to 800000bps.
I set static parameters to:
params.rateControlPreset = IVIDEO_LOW_DELAY;
params.maxBitRate = 800000;
params.inputChromaFormat = XDM_YUV_420SP; // can you change this to be RGB? No. This codec version only accepts 420SP
params.reconChromaFormat = XDM_CHROMA_NA;
params.maxWidth = 480;
params.maxHeight = 720;
params.maxFrameRate = 8000;
and dynamic parameters to:
dynParams.targetBitRate = params.maxBitRate;
dynParams.inputWidth = params.maxWidth;
dynParams.inputHeight = params.maxHeight;
dynParams.refFrameRate = params.maxFrameRate;
dynParams.targetFrameRate = params.maxFrameRate;
dynParams.intraFrameInterval = 8;
Then I feed the encoder a frame every 125ms.
I think this should be quite simple and the parameters will be set, however when I use StreamEye from Elcard, I see that this tool at least does not think those are the values. I would expect that the total number of bits for every 8 frames should total around 800,000 but tha tis not the case. I would also expect that the tool would know that it is CBR but instead it is telling me it is still a VBR.
Does this version of encoder not support setting these variables? I have even tried to set "encodingPreset = XDM_USER_DEFINED" but the H264 User Guide says this setting is not supported anyhow. Does this mean I cannot change any pre-sets in this encoder?
Thanks for your help, please let me know if you would more information.
Brandy