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.

How to set encoder's real framerate to 30 in RDK use case?

Hi everyone,

     I set targetFrameRate to 30000 (it means framerate = 30).  But in real case it will encode

62 or 63 frames in one second.  So, how to control the framerate in RDK use case?  That's

it really generate 30 frames in one second.  Thanks.

Sincerely,

James

  • Hi,

    Actually, in DVRRDK, you need to tell the encoder about input fps as well as expected target fps. Looks like based on your configuration, input fps is coming to encoder is 60 and you are trying to get 30fps out from encoder, but encoder assumes that it is only getting 30fps. You need to do the following in your init configuration of the demo. You can get it in the demo_vcap_*******.c file. BTW, which version of DVRRDK are you using?

                    memset(&params, 0, sizeof(params));
                    Venc_setInputFrameRate(chId, 30);

                    params.frameRate = 30;

                    Venc_setDynamicParam(chId, 0, &params, VENC_FRAMERATE);

    Regards,

    Anshuman

    PS: Please mark this post as verified, if you think it has answered your question. Thanks.