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.

TDA2EXEVM: Frame drop in VIP link .

Part Number: TDA2EXEVM

Hi,

The below is my use-case,

Capture  -> VPE_D1 -> Merge -> Display (6ch channels)

We are configuring capture link to output 50fps. But, after that  in VPE link  some frames are getting dropped.

I have placed "Null" link after capture link that there is no frame drop. but when adding VPE link drops frames.

To make sure merge giving enough buffers to VPE link, i have kept null link after VPE. i.e., Capture  -> VPE -> Null still dropping some frames.

Since VPE internally uses same ISP(Image Signal Processor) HW to process frames. I think if  VPE gets interleaved with the ISP operation,it will dropping frames. We are using same resolution for all the 6 channels.

The below are the parameters setting for VPE link,

********************************************************

                chPrms = &pPrm->chParams[chId];
                chPrms->outParams[outId].numBufsPerCh = 15;//VPE_LINK_NUM_BUFS_PER_CH_DEFAULT;
                chPrms->outParams[outId].inputFrameRate = 50;
                chPrms->outParams[outId].outputFrameRate = 50;

                chPrms->outParams[outId].width  = captureInWidth;
                chPrms->outParams[outId].height = captureInHeight;
                chPrms->outParams[outId].dataFormat = SYSTEM_DF_YUV420SP_UV;

                chPrms->deiCfg.bypass = FALSE;
                //chPrms->deiCfg.bypass = TRUE;

                chPrms->deiCfg.inpMode = VPE_DEI_EDIMODE_LUMA_CHROMA;
                chPrms->deiCfg.tempInpEnable = TRUE;
                chPrms->deiCfg.tempInpChromaEnable = TRUE;
                chPrms->deiCfg.spatMaxBypass = TRUE;
                chPrms->deiCfg.tempMaxBypass = TRUE;

                chPrms->scCfg.bypass       = TRUE;
                chPrms->scCfg.nonLinear    = FALSE;
                chPrms->scCfg.stripSize    = 0;

                chPrms->scCropCfg.cropStartX = 0;
                chPrms->scCropCfg.cropStartY = 0;
                chPrms->scCropCfg.cropWidth  = 0;
                chPrms->scCropCfg.cropHeight = 0;
********************************************************************

The print statistics logs for reference,

cap_log_vpe_debug.txt

Need some suggestions to resolve this issue.

Rgds,

Balaji T

  • Hi,

    I have also enabled print statistics in VPE link, the log file follows.

    vpe_enable_printlog.txt

    Rgds,

    Balaji T

  • Hi there,

    It would be very helpful. if someone update on this.

    Rgds,

    Balaji T

  • Hi Balaji,

    Why are you setting crop size to 0? Crop size must not be 0.

    Also what is the resolution you are using in VPE? what is fps?

    VPE can processing some ~160MP/sec. is your processing within this limit?

    Rgds,

    Brijesh

  • Hi Brijesh,

    We referred lvds_vip_multi_cam_vpe_enc_null  use-case the VPE configuration.?

    In addition to that, we have added dei configuration.

    Please correct the configuration which results in minimal frame drop/No frame drop.

    Rgds,

    Balaji T

  • Hi Balaji,

    I could not understand below statement. 

    "Since VPE internally uses same ISP(Image Signal Processor) HW to process frames. I think if  VPE gets interleaved with the ISP operation"

    VPE on TDA2Ex is VPE only. There is no inbuild ISP for VPE on TDA2Ex..

    Does it work fine without DEI enabled? Can you try disabling DEI?

    Rgds,

    Brijesh

  • Brijesh,

    Yes i have validated disabling DEI there is no frame drop.

    If we set the below value for TRUE there is no frame drop.

                    chPrms->deiCfg.bypass = TRUE;
    Rgds,

    Balaji T

  • Balaji,

    This essentially means frame drops comes due to DEI enable. Are you sure you are providing correct field id in the frame? Please note that you need to provide correct field id in order for the DEI to work correctly. Otherwise, it could potentially drop frames.

    Rgds,

    Brijesh

  • Brijesh,

    Will you please help me to validate that i am providing correct field-Id in the frame.

    Expect the parameters that i have mentioned above, i am not configuring any parameters.

    Rgds,

    Balaji T

  • Hi Balaji,

    That should come from your capture source. Capture source should put in correct field id in fvid2_frame/system_buffer data structure..

    Rgds,

    Brijesh

  • Brijesh,

    It is possible to scale (up/down) the fields..?

    In my usecase, we are using the VPE with the above mentioned params to convert fields into frames. But, whatever the resolution we are setting to capture link the same is to given to VPE to convert as frames. If there is a need to scale(up/down) that frames, We are again using another VPE_1,  for that we are getting an assert.

    Will  you please suggest the links that captures fields and output frames are scalable.

    For example, look at the below use-case,

    Capture -> VPE  -> VPE_D1 -> Encode -> IPCIn(A15) -> Link (A15)

    We are getting the following assert.

     [HOST] [IPU2  ]     33.500427 s: Bj No of channels for encoder 6
     [HOST] [IPU2  ]     33.500518 s:  ENCODE: DEBUG enclink_populate_outbuf_pool_size_info  resClassChInfo.numActiveResClass = 2
     [HOST] [IPU2  ]     33.501494 s:  ENCODE: DEBUG EncLink_codecCreateOutObj  pOutObj->numAllocPools = 1
     [HOST] [IPU2  ]     33.510736 s:  ENCODE: DEBUG EncLink_codecCreateOutObj  pOutObj->outBufs[0] = 99d26090
     [HOST] [IPU2  ]     33.519978 s:  ENCODE: DEBUG EncLink_codecCreateOutObj  pOutObj->outBufs[1] = 99d260b8
     [HOST] [IPU2  ]     33.529311 s:  ENCODE: DEBUG EncLink_codecCreateOutObj  pOutObj->outBufs[2] = 99d260e0
     [HOST] [IPU2  ]     33.538583 s:  ENCODE: DEBUG EncLink_codecCreateOutObj  pOutObj->outBufs[3] = 99d26108
     [HOST] [IPU2  ]     33.539559 s:  ENCODE: Creating CH0 of 640 x 480,  pitch = (640, 640) [1] [0], bitrate = 2097 Kbps ...
     [HOST] [IPU2  ]     33.567162 s:  ENCODE: CH0: H264EncCreated:H264ENC_TI DEV.500.V.H264AVC.E.IVAHD.02.00.09.01
     [HOST] [IPU2  ]     33.567528 s:  ENCODE: Creating CH1 of 1280 x 720,  pitch = (2560, 2560) [1] [0], bitrate = 2097 Kbps ...
     [HOST] [IPU2  ]     33.568047 s:  Assertion @ Line: 808 in iva_enc/encLink_common.c: pChAlgCreatePrm->inputChromaFormat == XDM_YUV_420SP : failed !!!

    We need to know, how to scale to fields.?

    Rgds,

    Balaji T