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.

TDA2SX: Getting error at encode link(Alg process failed)

Part Number: TDA2SX

Hi all,

I am working on TDA2SX processor,I have written a new use case which is a file based usecase,In this I am using a new alg_link which converts RGB24_888 to YUV420SP_UV

Actually,there is no display in our Customboard.I need to dump the frames which are going to display.So I removed the display link and added the below links to dump the frames.

new_alglink(converts rgbtoyuv) ->encode ->null_link .

The new_alglink what I have generated converts RGB24_888 to YUV420SP_UV,because VPE link doesn't supports YUV420SP conversion.So I have written a new link.

Now,I am facing the below error at encode link.

ENCODE: ERROR: ALGPROCESS FAILED (status=0xffffffff) !!!

ENCODE: ERROR in Enclink_h264EncodeFrame.Status[-1]

Below are the encode params what I have set,I need to dump the frames at 10fps becoz,we are processing @10fps frame rate.

pLinkChPrm->format                 = SYSTEM_IVIDEO_H264HP;
        pLinkChPrm->profile                = 100;
        pLinkChPrm->dataLayout             = VENC_FIELD_SEPARATED;
        pLinkChPrm->fieldMergeEncodeEnable = FALSE;
        pLinkChPrm->enableAnalyticinfo     = 0;
        pLinkChPrm->enableWaterMarking     = 0;
        pLinkChPrm->maxBitRate             = -1;
        pLinkChPrm->encodingPreset         = SYSTEM_XDM_MED_SPEED_HIGH_QUALITY;
        pLinkChPrm->rateControlPreset      = SYSTEM_IVIDEO_LOW_DELAY;
        pLinkChPrm->enableHighSpeed        = FALSE;
        pLinkChPrm->enableSVCExtensionFlag = FALSE;
        pLinkChPrm->numTemporalLayer       = 0;
        pLinkChPrm->overrideInputScanFormat= 0;
        pLinkChPrm->fieldPicEncode         = 0;
        pLinkChPrm->IDRFrameInterval       = 1;

        pLinkDynPrm->intraFrameInterval    = 10;
        pLinkDynPrm->targetBitRate         = 10*1000*1000;
        pLinkDynPrm->interFrameInterval    = 1;
        pLinkDynPrm->mvAccuracy            = SYSTEM_IVIDENC2_MOTIONVECTOR_QUARTERPEL;
        pLinkDynPrm->inputFrameRate        = 10;
        pLinkDynPrm->rcAlg                 = 0;
        pLinkDynPrm->qpMin                 = 0;
        pLinkDynPrm->qpMax                 = 51;
        pLinkDynPrm->qpInit                = 25;
        pLinkDynPrm->vbrDuration           = 8;
        pLinkDynPrm->vbrSensitivity        = 0;
        pLinkDynPrm->maxPicSizeRatioI      = 1;

Could you please suggest me, how to solve this issue.

Thanks & Regards,

A.Kavya Harini