This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

  • Answer Suggested

IPNC RDK3.5 Bitrate change

Genius 4480 points

Replies: 100

Views: 9876

In customized DM385 platform..

If I'm using rate control preset value, unable to change the bit rate dynamically..,

I want to change the bit rate from 8Mbps to 2Mbps.., Where it could be setted to 8Mbps

 dynamicParams->rateControlParams.rateControlParamsPreset = 4;
 dynamicParams->rateControlParams.HRDBufferSize = 0;
 dynamicParams->rateControlParams.initialBufferLevel = 0;
 dynamicParams->videnc2DynamicParams.targetBitRate = 0;
 dynamicParams->rateControlParams.rcAlgo = 0;

I enabled the above values for Mjpeg Encoder, I could n't able to change the bit rate !!!

Any one can guide me to solve this issue ???

Regards,

Rajesh Kannan.S

  • Hello,

    Are you trying to set CBR or it is VBR?
    What is the encoder?

    BR
    Margarita
  • In reply to Margarita Gashova:

    Hi

    Thanks for your reply Margarita

    pChPrm->rcType = VENC_RATE_CTRL_VBR

    I'm using VBR

    Regards,

    Rajesh Kannan.S
  • In reply to Rajesh Kannan:

    Hi,

    I'm using JPEG Encoder !!!

    Is it related to target bitrate or max bit rate ???

    What is the possibility to achieve minimum bit rate ???

    Regards,

    Rajesh Kannan.S
  • In reply to Rajesh Kannan:

    Hi,

    If you want to use VBR, You need to set as below:

    rateControlPreset = IVIDEO_STORAGE      ie., rateControlPreset = 2;

    or     

    rateControlPreset =  IVIDEO_USER_DEFINED;  ie., rateControlPreset = 5;

    rcAlgo = 0;

    maxBitRate >= (1.5 x targetBitRate );

    For more details please refer to section 11.4 in user guide. (11.4 How to change bitrate dynamically). What version of MJPEG Encoder are you using?

    Regards,
    Prashanth

    http://www.pathpartnertech.com/

    Please mark this reply as Verify Answer on this post if it answers the question. 

  • In reply to Prashanth Kumar15:

    Hi Prashanth,

    Thanks for your reply..,

    For static & dynamic I'm using the value as 4 below mentioned

    what is the meaning of this value ??

    staticParams->videnc2Params.rateControlPreset = 4;

    dynamicParams->rateControlParams.rateControlParamsPreset = 4;

    Because of this value I could n't able to achieve minimum bit rate ???

    MJPEG :- REL.500.V.MJPEG.E.IVAHD.01.00.11.00 version

    Kindly reply me what are all the changes need to be done to achieve the min bit rate ??

    Thank you very much for your reply...

    Regards,

    Rajesh Kannan.S

    Regards,

    Rajesh Kannan.S

  • In reply to Rajesh Kannan:

    Hi Rajesh,

    Rajesh Kannan

    what is the meaning of this value ??

    staticParams->videnc2Params.rateControlPreset = 4;

    dynamicParams->rateControlParams.rateControlParamsPreset = 4;

    This means you are setting it to Fixed_Qp. 

    Rajesh Kannan
    Because of this value I could n't able to achieve minimum bit rate ???

    Yes, you are right. When you set Fixed_Qp, bitrate will not be set.

    You can set the below values to achieve 2mbps bitrate:

    RateControlPreset = 5                    # 1 => Low Delay, 2 => Storage, 4 => None, 5 => User defined
    targetBitRate = 2000000                # 2MBPS is set
    maxBitRate = 7500000                   # Max bitrate, applicable in case of VBR
    rcAlgo = 0                                          # 0 => VBR, 1 => CBR
    initialBufferLevel = 4000000         # Initial Buffer level for HRD compliance, keep same as HRDBufferSize for best quality
    HRDBufferSize = 4000000            # Hypothetical Reference Decoder Buffer Size in bits - 2*bitrate for VBR, bitrate/2 for CBR

    Rajesh Kannan
    MJPEG :- REL.500.V.MJPEG.E.IVAHD.01.00.11.00 version

    You can try REL.500.V.MJPEG.E.IVAHD.01.00.16.00  the latest version, which has few bug fixes over the version you are using.

    Regards,
    Prashanth

    http://www.pathpartnertech.com/

    Please mark this reply as Verify Answer on this post if it answers the question. 

  • In reply to Prashanth Kumar15:

    Hi Prashanth

    Ya Thank u very much for your reply

    If I tried with out value 4 I'm getting the below mentioned ERROR !!!

    [m3vpss ] RAJESHKANNAN ::: Setted rcAlgo as (0) = (0)...
    [m3vpss ] FOSSILSHALE DEBUG : EncLinkJPEG_algDynamicParamUpdate width=480 height=848 pitch=848.............
    [m3vpss ] 1871:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_jpeg.c:[89]::INTERNAL ERROR:-1
    [m3vpss ] ALGCONTROL FAILED:CMD:1
    [m3vpss ]
    [m3vpss ] 1872:ERR::linkID:20000049::channelID:0::errorCode:-5::FileName:links_m3video/iva_enc/encLink_jpeg.c::linuNum:687::errorCondition:(algStatus == XDM_EOK)
    [m3vpss ] ENCLINK_JPEG:HEAPID:0 USED:1896
    [m3vpss ] 1873: Assertion @ Line: 928 in links_m3video/iva_enc/encLink_common.c: retVal == ENC_LINK_S_SUCCESS : failed !!!

    Kindly suggest me to solve this issue !!!

    Thank u so much

    Regards,

    Rajesh Kannan.S
  • In reply to Rajesh Kannan:

    Hi Rajesh,
    Please share all the parameter settings for which you got this error.

    Regards,
    Prashanth

    http://www.pathpartnertech.com/

    Please mark this reply as Verify Answer on this post if it answers the question. 

  • In reply to Prashanth Kumar15:

    Hi Prashanth,

    Thanks for your reply...

    Find the attached file for your reference..

    Regards,

    Rajesh Kannan.S

    encLink_jpeg.c

  • In reply to Rajesh Kannan:

    Hi Rajesh,

    Rajesh Kannan
    [m3vpss ] FOSSILSHALE DEBUG : EncLinkJPEG_algDynamicParamUpdate width=480 height=848 pitch=848.............

    Here pitch and height is 848. Pitch should be Capture width. Is your Input Width = 480 and Input Height = 848 (Resolution 480x848)? or Is the resolution interchanged?

    Regards,
    Prashanth

    http://www.pathpartnertech.com/

    Please mark this reply as Verify Answer on this post if it answers the question. 

This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.