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 output reslution in DVRRDK?

Hi,

I use swms + nsf + encode in my usecase. I set the output reslution of swms to 1280x480, and I want the output of encode is 1280x480 too. But now the encode output is 1920x1080 and I could not find the width and height options in EncLink_CreateParams. I check the Enc_Link's src file and find that the output reslution is decided by the inQueInfo. I don't know why the encode output is 1920x1080. Does anyone know the reason and how to set the reslution?

Thanks in advance! Appreciate for your reply!

  • Set the swmsPrm.initOutRes and swmsPrm.maxOutRes to 720P.If it is some custom resolution like 1280 x 480 you will have to add a new enum .Refer swmsLink for how the initOutRes and maxOutRes enums are used to get the width and height of the output buffer

  • Hi Badri,

    Thanks for your kindly reply! We have discussed the initOutRes and maxOutRes params of swms. I set both of them to 720P60, but the encode output seems to be 1080P60. I check the swmslink files and find the System_getOutSize function do the job. I will try to add 1280x480_30P to the system and let you know.