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.

question about capture PAL on 8168

Other Parts Discussed in Thread: TVP5158

Dear All:
I'm now using 8168 to capture PAL and encode them into 264 format file. The software I'm using is RDK 3.0.
The chain is like this:
capture -> ipcout_vpss -> ipcin_video -> encode ....
I set the input video format to be VSYS_STD_576I, and the setting of the above links is like this:

capturePrm.tilerEnable = FALSE;
capturePrm.numBufsPerCh = 16;
capturePrm.numExtraBufs = 0;
capturePrm.maxBlindAreasPerCh = 0;
capturePrm.isPalMode = TRUE;
capturePrm.enableSdCrop = FALSE;
capturePrm.doCropInCapture = FALSE;

for(i=0; i<capturePrm.numVipInst; i++)
{
  vipInstId = SYSTEM_CAPTURE_INST_VIP0_PORTA + 2*i;
  pCaptureInstPrm = &capturePrm.vipInst[i];
  pCaptureInstPrm->vipInstId = vipInstId%SYSTEM_CAPTURE_INST_MAX;
  pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_SII9233A_DRV + 1;

  pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;

  pCaptureInstPrm->standard = chainsCfg->displayRes[i];

  pCaptureInstPrm->numOutput = 1;
  pCaptureInstPrm->numChPerOutput = 1;
  pCaptureInstPrm->frameCaptureMode = FALSE; //o
  pCaptureInstPrm->fieldsMerged = FALSE; //o

  pCaptureOutPrm = &pCaptureInstPrm->outParams[0];
  pCaptureOutPrm->dataFormat = SYSTEM_DF_YUV420SP_UV; //o
  pCaptureOutPrm->scEnable = FALSE;
  pCaptureOutPrm->scOutWidth = gChains_ctrl.channelConf[i].width;
  pCaptureOutPrm->scOutHeight = gChains_ctrl.channelConf[i].height;

  pCaptureOutPrm->outQueId = 0;
}

capturePrm.outQueParams[0].nextLink = ipcOutVpssId;
capturePrm.outQueParams[1].nextLink = ipcOutVpssId;

System_linkCreate(captureId, &capturePrm, sizeof(capturePrm));
for (i=0; i<gChains_ctrl.channelNum; i++) {
  chainsCfg->displayRes[i] = capturePrm.vipInst[i].standard;
  Vsys_getResSize(chainsCfg->displayRes[i], &chainsCfg->channelConf[i].width, &chainsCfg->channelConf[i].height);
  Vsys_getResRate(chainsCfg->displayRes[i], &chainsCfg->channelConf[i].frameRate);
}

ipcOutVpssPrm.inQueParams.prevLinkId = captureId;
ipcOutVpssPrm.inQueParams.prevLinkQueId = 0;
ipcOutVpssPrm.numOutQue = 1;
ipcOutVpssPrm.numChPerOutQue[0] = 1;
ipcOutVpssPrm.outQueParams[0].nextLink = ipcInVideoId;
ipcOutVpssPrm.notifyNextLink = TRUE;
ipcOutVpssPrm.notifyPrevLink = FALSE;
ipcOutVpssPrm.noNotifyMode = FALSE;
ipcOutVpssPrm.numChPerOutQue[0] = 0;
ipcOutVpssPrm.equallyDivideChAcrossOutQues = FALSE;

ipcInVideoPrm.inQueParams.prevLinkId = ipcOutVpssId;
ipcInVideoPrm.inQueParams.prevLinkQueId = 0;
ipcInVideoPrm.numOutQue = 1;
ipcInVideoPrm.numChPerOutQue[0] = 2;
ipcInVideoPrm.outQueParams[0].nextLink = encId;
ipcInVideoPrm.notifyNextLink = TRUE;
ipcInVideoPrm.notifyPrevLink = FALSE;
ipcInVideoPrm.noNotifyMode = FALSE;
ipcInVideoPrm.numChPerOutQue[0] = 0;
ipcInVideoPrm.equallyDivideChAcrossOutQues = FALSE;

gChains_ctrl.channelNum = 2;

for (i=0; i<gChains_ctrl.channelNum; i++)
{
  encPrm.chCreateParams[i].format = chainsCfg->channelConf[i].encFormat;
  encPrm.chCreateParams[i].profile = chainsCfg->channelConf[i].encProfile;
  encPrm.chCreateParams[i].dataLayout = IVIDEO_FIELD_SEPARATED; //o
  encPrm.chCreateParams[i].fieldMergeEncodeEnable = TRUE;
  encPrm.chCreateParams[i].enableAnalyticinfo = FALSE;
  encPrm.chCreateParams[i].enableWaterMarking = FALSE;
  encPrm.chCreateParams[i].encodingPreset = XDM_USER_DEFINED;
  encPrm.chCreateParams[i].rateControlPreset = IVIDEO_USER_DEFINED;
  encPrm.chCreateParams[i].enableHighSpeed = FALSE;
  encPrm.chCreateParams[i].defaultDynamicParams.interFrameInterval = 1;
  encPrm.chCreateParams[i].defaultDynamicParams.intraFrameInterval = chainsCfg->channelConf[i].intraFrameInterval;
  encPrm.chCreateParams[i].defaultDynamicParams.inputFrameRate = chainsCfg->channelConf[i].frameRate;
  encPrm.chCreateParams[i].defaultDynamicParams.targetFrameRate = chainsCfg->channelConf[i].encFrameRate;
  encPrm.chCreateParams[i].defaultDynamicParams.targetBitRate = 4000000;
  encPrm.chCreateParams[i].defaultDynamicParams.mvAccuracy = IVIDENC2_MOTIONVECTOR_QUARTERPEL;
  encPrm.chCreateParams[i].defaultDynamicParams.rcAlg = chainsCfg->channelConf[i].rateCtrl;
  encPrm.chCreateParams[i].defaultDynamicParams.qpMin = 0;
  encPrm.chCreateParams[i].defaultDynamicParams.qpMax = 51;
  encPrm.chCreateParams[i].defaultDynamicParams.qpInit = -1;
  encPrm.chCreateParams[i].defaultDynamicParams.vbrDuration = 8;
  encPrm.chCreateParams[i].defaultDynamicParams.vbrSensitivity = 0;

}
encPrm.inQueParams.prevLinkId = ipcInVideoId;
encPrm.inQueParams.prevLinkQueId= 0;
encPrm.outQueParams.nextLink = ipcBitsOutVideoId;
encPrm.numBufPerCh[0] = 0;

When I run the program, it outputs the following error:

207:!!!SLAVE CORE [VIDEO-M3] DOWN!!!
SystemLink_copySlaveCoreExceptionContext:146
mmap of [0xbe9c0000:36864]
mmap virt addresss:0x40069000
munmap of [0x40069000:36864]
SystemLink_copySlaveCoreExceptionContext:153

[m3video] 16920: ENCODE: Creating CH0 of 360 x 576, pitch = (384, 384) [INTERLACED ] [NON-TILED ], bitrate = 4000 Kbps ...
[m3vpss ] -----------_create before isUsed
[m3video] size=236,inputHeight=576,inputWidth=360,refFrameRate=25000,targetFrameRate=25000, targetBitRate=4000000, intraFrameInterval=25, interFrameInterval=1
[m3video] size=236,inputHeight=576,inputWidth=360,refFrameRate=25000,targetFrameRate=25000, targetBitRate=4000000, intraFrameInterval=25, interFrameInterval=1
[m3video] size=236,inputHeight=576,inputWidth=360,refFrameRate=25000,targetFrameRate=25000, targetBitRate=4000000, intraFrameInterval=25, interFrameInterval=1
[m3video] 16931:!ERROR!:ENCLINK::links_m3video/iva_enc/encLink_h264.c:[247]::INTERNAL ERROR:-1
[m3video] ALGCONTROL FAILED:CMD:1
[m3video] ERROR: XDM_UNSUPPORTEDPARAM = 14,
[m3video] ERROR: XDM_FATALERROR = 15
[m3video] ERROR: IH264ENC_UNSUPPORTED_VIDENC2DYNAMICPARAMS = 30,
[m3vpss ] -----------_create find 100
[m3video]
[m3video] 16932:ERR::linkID:10000021::channelID:0::errorCode:-5::FileName:links_m3video/iva_enc/encLink_h264.c::linuNum:1336::errorCondition:(algStatus == XDM_EOK)
[m3video] ENCLINK_H264:HEAPID:0 USED:1896
[m3video] 16932: Assertion @ Line: 864 in links_m3video/iva_enc/encLink_common.c: retVal == ENC_LINK_S_SUCCESS : failed !!!

It seems that the encoder can't accept the parameter. So I think there is some mistake in the links' setting. Could you give me some hints?

Thanks!

  • You are connecting capture output directly to encoder. DVRRDK 3.0 encoder doesn't support interlaced (field picture) encode. You will have to add DEI after capture to make progressive frame for encoding. Also you have to set capture

    pCaptureInstPrm->standard  to SYSTEM_STD_D1.

    The issue you are facing is due to wrong height to encoder. Heigth should be 288 when doing interlaced encoding not 576.

    Note that DVRRDK 3.0 is not supported. Pls migrate to DVRRDK 4.01 where interlaced encoding is supported.

  • Hi, Narayanan

      Thanks for your reply.

      I managed to insert the DEI link. But I fail to find one example or document about this. Can you give me some 

    link or example about it? My current stream is like this :

    capture + vpssIpcOut + videoIpcIn + encoder ...

      so where can I insert the DEI link? just after capture link without adding additional ipc links?

      In addition, the 8168 reference manual shows the DEI must be followed by scaler. So is it necessary to insert

    a scale link after DEI link?

  • Refer link API documentation and DVR_RDK_McFW_Link_API_Training document. Almost all usecases have DEI link.

    You can refer /dvr_rdk/mcfw/src_linux/mcfw_api/usecases/ti816x/multich_vcap_vdis.c

    You should add dei after capture.

    There is no need to add scaler after DEI.

  • Hi, Narayanan:
      Thanks again for your patient reply.
      Now I insert the DEI link in the chain. I don't quite understand many of the link's parameters, so I just copy from
    the demo. My use case is simple, just capture one PAL input and deinterlace it, then send to the encoder. When
    running the programe, the following error appears:
    [m3video] 16909: Assertion @ Line: 193 in dvr_rdk/mcfw/src_bios6/links_m3video/codec_utils/utils_encdec.h:
    (chromaFormat == FVID2_DF_YUV420SP_UV) || (chromaFormat == FVID2_DF_YUV420SP_VU) : failed !!!
      the passed-in "chromaFormat" is 1, which means SYSTEM_DF_YUV422I_YUYV. the capture's output in the code
    is SYSTEM_DF_YUV420SP_UV, so I don't know where the data format is changed.
      I append the code fragment, pls help me to find the incorrect setting. Thank you.

    CHAINS_INIT_STRUCT(CaptureLink_CreateParams,capturePrm);
    CHAINS_INIT_STRUCT(DeiLink_CreateParams,deiPrm);
    CHAINS_INIT_STRUCT(IpcLink_CreateParams,ipcOutVpssPrm);
    CHAINS_INIT_STRUCT(IpcLink_CreateParams,ipcInVideoPrm);
    CHAINS_INIT_STRUCT(EncLink_CreateParams,encPrm);
    CHAINS_INIT_STRUCT(IpcBitsOutLinkRTOS_CreateParams,ipcBitsOutVideoPrm);
    CHAINS_INIT_STRUCT(IpcBitsInLinkHLOS_CreateParams,ipcBitsInHostPrm);

    captureId = SYSTEM_LINK_ID_CAPTURE;
    deiId = SYSTEM_LINK_ID_DEI_0;
    ipcOutVpssId = SYSTEM_VPSS_LINK_ID_IPC_OUT_M3_0;
    ipcInVideoId = SYSTEM_VIDEO_LINK_ID_IPC_IN_M3_0;
    encId = SYSTEM_LINK_ID_VENC_0;
    ipcBitsOutVideoId = SYSTEM_VIDEO_LINK_ID_IPC_BITS_OUT_0;
    ipcBitsInHostId = SYSTEM_HOST_LINK_ID_IPC_BITS_IN_0;

    System_linkControl(
      SYSTEM_LINK_ID_M3VIDEO,
      SYSTEM_COMMON_CMD_SET_CH2IVAHD_MAP_TBL,
      &systemVid_encDecIvaChMapTbl,
      sizeof(SystemVideo_Ivahd2ChMap_Tbl),
      TRUE
    );


    capturePrm.numVipInst = 1;
    capturePrm.tilerEnable = FALSE;
    capturePrm.numBufsPerCh = 16;
    capturePrm.numExtraBufs = 0;
    capturePrm.maxBlindAreasPerCh = 0;
    //capturePrm.isPalMode = FALSE;
    capturePrm.isPalMode = TRUE;
    capturePrm.enableSdCrop = FALSE;
    capturePrm.doCropInCapture = FALSE;

    for(i=0; i<capturePrm.numVipInst; i++)
    {
      vipInstId = SYSTEM_CAPTURE_INST_VIP0_PORTA + 2*i;
      pCaptureInstPrm = &capturePrm.vipInst[i];
      pCaptureInstPrm->vipInstId = vipInstId%SYSTEM_CAPTURE_INST_MAX;
      pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_SII9233A_DRV + 1;

      pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;

      pCaptureInstPrm->standard = chainsCfg->displayRes[i];

      pCaptureInstPrm->numOutput = 1;
      pCaptureInstPrm->numChPerOutput = 1;
      pCaptureInstPrm->frameCaptureMode = FALSE;
      pCaptureInstPrm->fieldsMerged = TRUE;

      pCaptureOutPrm = &pCaptureInstPrm->outParams[0];
      pCaptureOutPrm->dataFormat = SYSTEM_DF_YUV420SP_UV;
      pCaptureOutPrm->scEnable = FALSE;
      pCaptureOutPrm->scOutWidth = gChains_ctrl.channelConf[i].width;
      pCaptureOutPrm->scOutHeight = (gChains_ctrl.channelConf[i].height)/2;
      pCaptureOutPrm->outQueId = 0;

    }

    capturePrm.outQueParams[0].nextLink = deiId;

    System_linkCreate(captureId, &capturePrm, sizeof(capturePrm));
    for (i=0; i<gChains_ctrl.channelNum; i++) {
      chainsCfg->displayRes[i] = capturePrm.vipInst[i].standard;
      Vsys_getResSize(chainsCfg->displayRes[i], &chainsCfg->channelConf[i].width, &chainsCfg->channelConf[i].height);
      Vsys_getResRate(chainsCfg->displayRes[i], &chainsCfg->channelConf[i].frameRate);
    }

    deiPrm.inQueParams.prevLinkId = captureId;
    deiPrm.inQueParams.prevLinkQueId = 0;
    deiPrm.outQueParams[0].nextLink = ipcOutVpssId;
    deiPrm.enableOut[0] = TRUE;
    deiPrm.enableOut[1] = FALSE;
    deiPrm.tilerEnable[DEI_LINK_OUT_QUE_VIP_SC] = FALSE;
    deiPrm.comprEnable = FALSE;
    deiPrm.setVipScYuv422Format = FALSE;

    /* DEI Path Scalar ratio is 1:2, D1 => CIF */
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0].scaleMode = DEI_SCALE_MODE_RATIO;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0].ratio.widthRatio.numerator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0].ratio.widthRatio.denominator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0].ratio.heightRatio.numerator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0].ratio.heightRatio.denominator = 1;
    for (chId=1; chId < DEI_LINK_MAX_CH; chId++)
      deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][chId] = deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_DEI_SC][0];

    /* VIP Scalar ratio is 1:1 */
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0].scaleMode = DEI_SCALE_MODE_RATIO;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0].ratio.widthRatio.numerator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0].ratio.widthRatio.denominator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0].ratio.heightRatio.numerator = 1;
    deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0].ratio.heightRatio.denominator = 1;
    for (chId=1; chId < DEI_LINK_MAX_CH; chId++)
      deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][chId] = deiPrm.outScaleFactor[DEI_LINK_OUT_QUE_VIP_SC][0];

    ipcOutVpssPrm.inQueParams.prevLinkId = deiId;
    ipcOutVpssPrm.inQueParams.prevLinkQueId = 0;
    ipcOutVpssPrm.numOutQue = 1;
    ipcOutVpssPrm.numChPerOutQue[0] = 1;
    ipcOutVpssPrm.outQueParams[0].nextLink = ipcInVideoId;
    ipcOutVpssPrm.notifyNextLink = TRUE;
    ipcOutVpssPrm.notifyPrevLink = FALSE;
    ipcOutVpssPrm.noNotifyMode = FALSE;
    ipcOutVpssPrm.numChPerOutQue[0] = 0;
    ipcOutVpssPrm.equallyDivideChAcrossOutQues = FALSE;

    ipcInVideoPrm.inQueParams.prevLinkId = ipcOutVpssId;
    ipcInVideoPrm.inQueParams.prevLinkQueId = 0;
    ipcInVideoPrm.numOutQue = 1;
    ipcInVideoPrm.numChPerOutQue[0] = 2;
    ipcInVideoPrm.outQueParams[0].nextLink = encId;
    ipcInVideoPrm.notifyNextLink = TRUE;
    ipcInVideoPrm.notifyPrevLink = FALSE;
    ipcInVideoPrm.noNotifyMode = FALSE;
    ipcInVideoPrm.numChPerOutQue[0] = 0;
    ipcInVideoPrm.equallyDivideChAcrossOutQues = FALSE;

    //gChains_ctrl.channelNum = 4;
    gChains_ctrl.channelNum = 1;

    for (i=0; i<gChains_ctrl.channelNum; i++) {
      encPrm.chCreateParams[i].format = chainsCfg->channelConf[i].encFormat;
      encPrm.chCreateParams[i].profile = chainsCfg->channelConf[i].encProfile;
      encPrm.chCreateParams[i].dataLayout = IVIDEO_FIELD_SEPARATED;
      encPrm.chCreateParams[i].fieldMergeEncodeEnable = FALSE;
      encPrm.chCreateParams[i].enableAnalyticinfo = FALSE;
      encPrm.chCreateParams[i].enableWaterMarking = FALSE;
      encPrm.chCreateParams[i].encodingPreset = XDM_USER_DEFINED;
      encPrm.chCreateParams[i].rateControlPreset = IVIDEO_USER_DEFINED;
      encPrm.chCreateParams[i].enableHighSpeed = FALSE;
      encPrm.chCreateParams[i].defaultDynamicParams.interFrameInterval = 1;
      encPrm.chCreateParams[i].defaultDynamicParams.intraFrameInterval = chainsCfg->channelConf[i].intraFrameInterval;
      encPrm.chCreateParams[i].defaultDynamicParams.inputFrameRate = chainsCfg->channelConf[i].frameRate;
      encPrm.chCreateParams[i].defaultDynamicParams.targetFrameRate = chainsCfg->channelConf[i].encFrameRate;
      encPrm.chCreateParams[i].defaultDynamicParams.targetBitRate = 4000000;
      encPrm.chCreateParams[i].defaultDynamicParams.mvAccuracy = IVIDENC2_MOTIONVECTOR_QUARTERPEL;
      encPrm.chCreateParams[i].defaultDynamicParams.rcAlg = chainsCfg->channelConf[i].rateCtrl;
      encPrm.chCreateParams[i].defaultDynamicParams.qpMin = 0;
      encPrm.chCreateParams[i].defaultDynamicParams.qpMax = 51;
      encPrm.chCreateParams[i].defaultDynamicParams.qpInit = -1;
      encPrm.chCreateParams[i].defaultDynamicParams.vbrDuration = 8;
      encPrm.chCreateParams[i].defaultDynamicParams.vbrSensitivity = 0;
    }
    encPrm.inQueParams.prevLinkId = ipcInVideoId;
    encPrm.inQueParams.prevLinkQueId= 0;
    encPrm.outQueParams.nextLink = ipcBitsOutVideoId;
    encPrm.numBufPerCh[0] = 0;

  • You are using DEI_SC output queue which supports only YUV422I output format. Use DEI_VIP_SC output queue which supports YUV420SP format required by the encoder. Refer DVR_RDK_McFW_Link_API_Training to understand basic of links and supported output format.

  • Hi, Narayanan:

      Now I have insert a DEI link with VIP_SC output queue. The system still can't capture data, the following

    is the statistics:

     

    [m3vpss ] *** Capture Driver Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] VIP Parser Reset Count : 0
    [m3vpss ]
    [m3vpss ] | Total Even Odd Total Even Odd Min / Max Min / Max Dropped Fid Repeat Frame Error Y/C
    [m3vpss ] CH | Fields Fields Fields FPS FPS FPS Width Height Fields Count (Desc Error Y/C)
    [m3vpss ] ------------------------------------------------------------------------------------------------------------
    [m3vpss ] 000 | 1 1 0 0 0 0 65535 / 0 65535 / 0 1 0 0/0 (0/0)
    [m3vpss ] 200 | 1 1 0 0 0 0 65535 / 0 65535 / 0 1 0 0/0 (0/0)
    [m3vpss ]
    [m3vpss ] VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
    [m3vpss ] VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0
    [m3vpss ]
    [m3vpss ] *** Capture List Manager Advanced Statistics ***
    [m3vpss ]
    [m3vpss ] List Post Count : 2503
    [m3vpss ] List Stall Count : 0
    [m3vpss ] List Post Time (ms) : Max = 0, Min = 0, Avg = 0, Total = 0
    [m3vpss ] INTC Timeout Count : (0, 0) (Min timeout value = 990, 1000)
    [m3vpss ] Descriptor miss found count : 0
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] VIP and VPDMA registers,
    [m3vpss ] VIP0 : FIQ_STATUS : 0x4810551c = 0x00000000
    [m3vpss ] VIP1 : FIQ_STATUS : 0x48105a1c = 0x00000000
    [m3vpss ] VPDMA: LIST_BUSY : 0x4810d00c = 0x00000000
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] 27267: CAPTURE: Fields = 0 (fps = 0, CPU Load = 0)
    [m3vpss ] 27267: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
    [m3vpss ] 27268: SYSTEM : FREE SPACE : System Heap = 6104 B, Mbx = 10240 msgs)
    [m3vpss ] 27268: SYSTEM : FREE SPACE : SR0 Heap = 11003648 B (10 MB)
    [m3vpss ] 27268: SYSTEM : FREE SPACE : Frame Buffer = 223079296 B (212 MB)
    [m3vpss ] 27268: SYSTEM : FREE SPACE : Bitstream Buffer = 349942656 B (333 MB)
    [m3vpss ] 27268: SYSTEM : FREE SPACE : Tiler 8-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ] 27268: SYSTEM : FREE SPACE : Tiler 16-bit = 134217728 B (128 MB) - TILER ON
    [m3vpss ]
    [m3vpss ] *** [DEI2 ] DEI Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 12 secs
    [m3vpss ] Total Fields Processed : 0
    [m3vpss ] Total Fields FPS : 0 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User
    [m3vpss ] Num | FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS Skip
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [m3vpss ] 1 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] *** [DEI2 ] DEI Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 0 secs
    [m3vpss ] Total Fields Processed : 0
    [m3vpss ] Total Fields FPS : 0 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User
    [m3vpss ] Num | FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS Skip
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [m3vpss ] 1 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] *** [DEI2 ] DEI Statistics ***
    [m3vpss ]
    [m3vpss ] Elasped Time : 0 secs
    [m3vpss ] Total Fields Processed : 0
    [m3vpss ] Total Fields FPS : 0 FPS
    [m3vpss ]
    [m3vpss ]
    [m3vpss ] CH | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User
    [m3vpss ] Num | FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS FPS Skip
    [m3vpss ] ----------------------------------------------------------------------------------------------------------------------------------------
    [m3vpss ] 0 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0
    [m3vpss ] 1 | 0 0 0 0 0 0 0 0 0 0 0 0 0 0

    The decoder I use is adv7441a.  When I initialize it to decode VGA signal (progressive), the dsp (using the same

    progran) can capture data, although the video data is not correct. But when we initialize the chip to decode PAL,

    the dsp can't capture any data. 

    I doubt if the AD is initilized OK to output correct data. If we don't consider this, is there any problem with the dsp's

    side?

    The attach is the log. Thanks!

    
    *** Bootargs Validated for mem param ***
    *** Bootargs Validated for notifyk.vpssm3 params ***
    Kernel bootargs validated
    amixer: Cannot find the given element from control default
    
     [c6xdsp ] Remote Debug Shared Memory @ 0xbf000000
     [m3video] Remote Debug Shared Memory @ 0xbf005020
     [m3vpss ] Remote Debug Shared Memory @ 0xbf00a040
    SysLink version : 2.10.02.17
    SysLink module created on Date:Mar 10 2013 Time:21:00:53
    Trace enabled
    Trace SetFailureReason enabled
     Setting DMM priority for [DUCATI  ] to [0] ( 0x4e000624 = 0x08000000 )
     Setting DMM priority for [HDVICP0 ] to [2] ( 0x4e000634 = 0x0000000a )
     Setting DMM priority for [HDVICP1 ] to [2] ( 0x4e000634 = 0x000a0000 )
     Setting DMM priority for [HDVICP2 ] to [2] ( 0x4e000634 = 0x00a00000 )
    Attached to slave procId 2.
    Loaded file ../firmware/dvr_rdk_fw_m3vpss.xem3 on slave procId 2.
    Started slave procId 2.
    After Ipc_loadcallback status [0x00000000]
    After Ipc_startcallback status [0x097d2000]
     [m3vpss ] This is my main_m3vpss
     [m3vpss ] ***** SYSTEM  : Frequency <ORG> - 250000000, <NEW> - 280000000
     [m3vpss ] notify_attach  rtnVal  0
     [m3vpss ] initProxyServer  rtnVal  0
     [m3vpss ] This is my system_start m3vpss m3video dsp
     [m3vpss ] This is my system_start Before Task_create System_main
     [m3vpss ]  
     [m3vpss ]  *** UTILS: CPU KHz = 560000 Khz ***
     [m3vpss ]  
     [m3vpss ]  44: SYSTEM  : System Common Init in progress !!!
     [m3vpss ] Before System_ipcInit
     [m3vpss ]  44: SYSTEM: IPC init in progress !!!
     [m3vpss ]  44: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  1043: SYSTEM: Attaching to [HOST] ... 
     [m3vpss ]  1045: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3vpss ]  1045: SYSTEM: Attaching to [DSP] ... 
    Attached to slave procId 1.
    Loaded file ../firmware/dvr_rdk_fw_m3video.xem3 on slave procId 1.
    Started slave procId 1.
    After Ipc_loadcallback status [0x00000000]
    After Ipc_startcallback status [0x00000000]
     [m3video] ***** SYSTEM  : Frequency <ORG> - 250000000, <NEW> - 280000000
     [m3vpss ]  2045: SYSTEM: Attaching to [DSP] ... 
     [m3video] This is my system_start m3vpss m3video dsp
     [m3video] This is my system_start Before Task_create System_main
     [m3video]  
     [m3video]  *** UTILS: CPU KHz = 560000 Khz ***
     [m3video]  
     [m3video]  1797: SYSTEM  : System Common Init in progress !!!
     [m3video] Before System_ipcInit
     [m3video]  1797: SYSTEM: IPC init in progress !!!
     [m3video]  1797: SYSTEM: Attaching to [HOST] ... 
     [m3video]  2797: SYSTEM: Attaching to [HOST] ... 
     [m3video]  2799: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [m3video]  2799: SYSTEM: Attaching to [DSP] ... 
    Attached to slave procId 0.
     [m3vpss ]  3045: SYSTEM: Attaching to [DSP] ... 
    Loaded file ../firmware/dvr_rdk_fw_c6xdsp.xe674 on slave procId 0.
    Started slave procId 0.
    After Ipc_loadcallback status [0x00000000]
     [c6xdsp ] ***** SYSTEM  : Frequency <ORG> - 800000000, <NEW> - 800000000
     [m3video]  3799: SYSTEM: Attaching to [DSP] ... 
     [m3vpss ]  4045: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ] This is my system_start m3vpss m3video dsp
     [c6xdsp ] This is my system_start Before Task_create System_main
     [c6xdsp ]  
     [c6xdsp ]  *** UTILS: CPU KHz = 800000 Khz ***
     [c6xdsp ]  
     [c6xdsp ]  5: SYSTEM  : System Common Init in progress !!!
     [c6xdsp ] Before System_ipcInit
     [c6xdsp ]  5: SYSTEM: IPC init in progress !!!
     [c6xdsp ]  5: SYSTEM: Attaching to [HOST] ... 
    After Ipc_startcallback status [0x00000000]
     [c6xdsp ]  1029: SYSTEM: Attaching to [HOST] ... 
     [c6xdsp ]  1032: SYSTEM: Attaching to [HOST] ... SUCCESS !!!
     [c6xdsp ]  1032: SYSTEM: Attaching to [VIDEO-M3] ... 
    DMA: Module install successful, device major num = 251 
    DRV: Module install successful
    DRV: Module built on Mar 10 2013 21:15:13 
     [c6xdsp ] Remote Debug Shared Memory @ 0xbf000000
     [m3video] Remote Debug Shared Memory @ 0xbf005020
     [m3vpss ] Remote Debug Shared Memory @ 0xbf00a040
     [m3video]  4799: SYSTEM: Attaching to [DSP] ... 
     [m3vpss ]  5045: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  2055: SYSTEM: Attaching to [VIDEO-M3] ... 
     [c6xdsp ]  2612: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
     [m3video]  5799: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  2612: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3video]  5799: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
     [m3video]  5799: SYSTEM: Attaching to [VPSS-M3] ... 
     [m3vpss ]  6045: SYSTEM: Attaching to [DSP] ... 
     [m3video]  6799: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ]  3635: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ]  3879: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
     [m3vpss ]  7045: SYSTEM: Attaching to [DSP] ... 
     [c6xdsp ]  3879: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  7046: SYSTEM: Attaching to [DSP] ... SUCCESS !!!
     [m3vpss ]  7046: SYSTEM: Attaching to [VIDEO-M3] ... 
     [m3video]  7799: SYSTEM: Attaching to [VPSS-M3] ... 
     [c6xdsp ]  4903: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3video]  8046: SYSTEM: Attaching to [VPSS-M3] ... SUCCESS !!!
     [m3vpss ]  8045: SYSTEM: Attaching to [VIDEO-M3] ... 
     [c6xdsp ]  4903: SYSTEM: Creating MsgQ [DSP_MSGQ] ...
     [m3video]  8046: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [m3vpss ]  8046: SYSTEM: Attaching to [VIDEO-M3] ... SUCCESS !!!
     [c6xdsp ]  4903: SYSTEM: Creating MsgQ [DSP_ACK_MSGQ] ...
     [m3video]  8046: SYSTEM: Creating MsgQ [VIDEO-M3_MSGQ] ...
     [m3vpss ]  8046: SYSTEM: Creating MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     [c6xdsp ]  4903: SYSTEM: Notify register to [HOST] line 0, event 15 ... 
     [m3video]  8046: SYSTEM: Creating MsgQ [VIDEO-M3_ACK_MSGQ] ...
     [m3vpss ]  8046: SYSTEM: Creating MsgQ [VPSS-M3_MSGQ] ...
     [c6xdsp ]  4903: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 
     [m3video]  8048: SYSTEM: Notify register to [HOST] line 0, event 15 ... 
     [m3vpss ]  8046: SYSTEM: Creating MsgQ [VPSS-M3_ACK_MSGQ] ...
     [c6xdsp ]  4903: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 
     [m3video]  8048: SYSTEM: Notify register to [DSP] line 0, event 15 ... 
     [m3vpss ]  8048: SYSTEM: Notify register to [HOST] line 0, event 15 ... 
     [c6xdsp ]  4903: SYSTEM: IPC init DONE !!!
     [m3video]  8048: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 
     [m3vpss ]  8048: SYSTEM: Notify register to [DSP] line 0, event 15 ... 
     [m3video]  8048: SYSTEM: IPC init DONE !!!
     [m3vpss ]  8048: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 
     [m3vpss ]  8048: SYSTEM: IPC init DONE !!!
     [c6xdsp ]  4905: MEM: Shared Region 2: Base = 0xb0000000, Length = 0x0e9c0000 (233 MB) 
     [m3video]  8055: MEM: Shared Region 2: Base = 0xb0000000, Length = 0x0e9c0000 (233 MB) 
     [m3vpss ]  8055: MEM: Shared Region 2: Base = 0xb0000000, Length = 0x0e9c0000 (233 MB) 
     [c6xdsp ]  4906: MEM: Shared Region 1: Base = 0x88000000, Length = 0x15080000 (336 MB) 
     [m3video]  8055: MEM: Shared Region 1: Base = 0x88000000, Length = 0x15080000 (336 MB) 
     [m3vpss ]  8055: MEM: Shared Region 1: Base = 0x88000000, Length = 0x15080000 (336 MB) 
     [c6xdsp ]  4906: SYSTEM  : System Common Init Done !!!
     [m3video]  8057: SYSTEM  : System Common Init Done !!!
     [m3vpss ]  8057: SYSTEM  : System Common Init Done !!!
     [c6xdsp ]  4787: SYSTEM  : System DSP Init in progress !!!
     [m3video]  8057: SYSTEM  : System Video Init in progress !!!
     [m3vpss ]  8057: SYSTEM  : System VPSS Init in progress !!!
     [c6xdsp ]  4787: SYSTEM  : RpeServer_init() done... Ret Val 0!!!
     [m3video]  8057: SYSTEM  : System Video Init Done !!!
     [m3vpss ] === HDVPSS Clocks are enabled ===
     [c6xdsp ]  4910: SYSTEM: Creating ListMP [DSP_IPC_OUT_19] in region 0 ...
     [m3video]  8058: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_0] in region 0 ...
     [m3vpss ] === HDVPSS is fully functional ===
     [c6xdsp ]  4910: SYSTEM: Creating ListMP [DSP_IPC_IN_19] in region 0 ...
     [m3video]  8058: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_0] in region 0 ...
     [m3vpss ] === HDVPSS module is not in standby ===
     [c6xdsp ]  4910: SYSTEM: ListElem Shared Addr = 0xbf18ee00
     [m3video]  8058: SYSTEM: ListElem Shared Addr = 0xbf18b680
     [m3vpss ] === I2C1 Clk is active ===
     [c6xdsp ]  4911: SYSTEM: Creating ListMP [DSP_IPC_OUT_20] in region 0 ...
     [m3video]  8060: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_1] in region 0 ...
     [m3vpss ] PLATFORM: UNKNOWN CPU detected, defaulting to VPS_PLATFORM_CPU_REV_2_0
     [c6xdsp ]  4911: SYSTEM: Creating ListMP [DSP_IPC_IN_20] in region 0 ...
     [m3video]  8060: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_1] in region 0 ...
     [m3vpss ]  8062: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_0] in region 0 ...
     [c6xdsp ]  4911: SYSTEM: ListElem Shared Addr = 0xbf1b1a80
     [m3video]  8060: SYSTEM: ListElem Shared Addr = 0xbf1ae580
     [m3vpss ]  8062: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_0] in region 0 ...
     [c6xdsp ]  4912: SYSTEM: Creating ListMP [DSP_IPC_OUT_21] in region 0 ...
     [m3vpss ]  8062: SYSTEM: ListElem Shared Addr = 0xbf1f0e80
     [c6xdsp ]  4912: SYSTEM: Creating ListMP [DSP_IPC_IN_21] in region 0 ...
     [m3vpss ]  8064: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_1] in region 0 ...
     [c6xdsp ]  4912: SYSTEM: ListElem Shared Addr = 0xbf1d1a00
     [m3video]  8066: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_19] in region 0 ...
     [m3vpss ]  8065: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_1] in region 0 ...
     [c6xdsp ]  4913: SYSTEM: Creating ListMP [DSP_IPC_OUT_24] in region 0 ...
     [m3video]  8066: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_19] in region 0 ...
     [m3vpss ]  8065: SYSTEM: ListElem Shared Addr = 0xbf22f980
     [c6xdsp ]  4913: SYSTEM: Creating ListMP [DSP_IPC_IN_24] in region 0 ...
     [m3video]  8066: SYSTEM: ListElem Shared Addr = 0xbf232e80
     [m3vpss ]  8077: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_19] in region 0 ...
     [c6xdsp ]  4913: SYSTEM: ListElem Shared Addr = 0xbf1f4380
     [m3video]  8068: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_20] in region 0 ...
     [m3vpss ]  8077: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_19] in region 0 ...
     [c6xdsp ]  4914: SYSTEM: Creating ListMP [DSP_IPC_OUT_25] in region 0 ...
     [m3video]  8068: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_20] in region 0 ...
     [m3vpss ]  8077: SYSTEM: ListElem Shared Addr = 0xbf291c80
     [c6xdsp ]  4914: SYSTEM: Creating ListMP [DSP_IPC_IN_25] in region 0 ...
     [m3video]  8069: SYSTEM: ListElem Shared Addr = 0xbf252880
     [m3vpss ]  8079: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_20] in region 0 ...
     [c6xdsp ]  4914: SYSTEM: ListElem Shared Addr = 0xbf212100
     [m3video]  8071: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_21] in region 0 ...
     [m3vpss ]  8079: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_20] in region 0 ...
     [c6xdsp ] !!WARNING.Resource already registered:2
     [c6xdsp ]  4796: SYSTEM  : Initializing Links !!! 
     [m3video]  8071: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_21] in region 0 ...
     [m3vpss ]  8080: SYSTEM: ListElem Shared Addr = 0xbf2b1680
     [m3video]  8071: SYSTEM: ListElem Shared Addr = 0xbf272280
     [m3vpss ]  8082: SYSTEM: Creating ListMP [VPSS-M3_IPC_OUT_21] in region 0 ...
     [c6xdsp ]  4915: SYSTEM  : FREE SPACE : System Heap      = 10268448 B, Mbx = 10240 msgs) 
     [m3video]  8082: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_24] in region 0 ...
     [m3vpss ]  8082: SYSTEM: Creating ListMP [VPSS-M3_IPC_IN_21] in region 0 ...
     [m3video]  8083: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_24] in region 0 ...
     [m3vpss ]  8082: SYSTEM: ListElem Shared Addr = 0xbf2d1080
     [c6xdsp ]  4808: SYSTEM  : Initializing Links ... DONE !!! 
     [m3video]  8083: SYSTEM: ListElem Shared Addr = 0xbf2f0a80
     [m3vpss ]  8084: SYSTEM : HDVPSS Drivers Version: HDVPSS_01_00_01_37
     [m3video]  8085: SYSTEM: Creating ListMP [VIDEO-M3_IPC_OUT_25] in region 0 ...
     [m3vpss ]  8084: SYSTEM  : FVID2 Init in progress !!!
     [c6xdsp ]  4808: SYSTEM  : System DSP Init Done !!!
     [m3video]  8085: SYSTEM: Creating ListMP [VIDEO-M3_IPC_IN_25] in region 0 ...
     [c6xdsp ] This is my system_start m3vpss m3video dsp, before exit
     [m3video]  8085: SYSTEM: ListElem Shared Addr = 0xbf30e580
     [m3video]  8087: HDVICP: Doing PRCM for IVAHD[0] ... 
     [m3video]  8087: HDVICP: PRCM for IVAHD[0] ... DONE.
     [m3video]  8087: HDVICP: Doing PRCM for IVAHD[1] ... 
     [m3video]  8087: HDVICP: PRCM for IVAHD[1] ... DONE.
     [m3video]  8087: HDVICP: Doing PRCM for IVAHD[2] ... 
     [m3vpss ] Driver register drvOps->drvId:0........
     [m3video]  8087: HDVICP: PRCM for IVAHD[2] ... DONE.
     [m3video]  8088: SYSTEM  : Initializing Links !!! 
     [m3video]  8088: SYSTEM  : FREE SPACE : System Heap      = 6280232 B, Mbx = 10240 msgs) 
     [m3video]  8088: SYSTEM  : FREE SPACE : SR0 Heap         = 13452672 B (12 MB) 
     [m3video]  8088: SYSTEM  : FREE SPACE : Frame Buffer     = 245104512 B (233 MB) 
     [m3video]  8088: SYSTEM  : FREE SPACE : Bitstream Buffer = 352845696 B (336 MB) 
     [m3video]  8088: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     [m3video]  8089: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
     [m3video]  8089: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ] Driver register drvOps->drvId:0 success........
     [m3video]  8111: SYSTEM  : Initializing Links ... DONE !!! 
     [m3video] This is my system_start m3vpss m3video dsp, before exit
     [m3vpss ]  8142: SYSTEM  : FVID2 Init in progress DONE !!!
     [m3vpss ]  8142: SYSTEM  : Device Init in progress !!!
     [m3vpss ] initPrms.isI2cInitReq = 1
     [m3vpss ] initPrms.isI2cInitReq = 1
     [m3vpss ] Driver register drvOps->drvId:600........
     [m3vpss ] Driver register drvOps->drvId:600 success........
     [m3vpss ]  0: Vps_deviceI2cInit >>>
     [m3vpss ]  Vps_deviceI2cInit success.........................
     [m3vpss ] Received character 's'
     [c6xdsp ] Remote Debug Shared Memory @ 0xbf000000
     [m3video] Remote Debug Shared Memory @ 0xbf005020
     [m3vpss ] Remote Debug Shared Memory @ 0xbf00a040
     [m3video] Received character 's'
     [m3vpss ]  Vps_deviceI2cInit boardId 0.........................
     [c6xdsp ] Remote Debug Shared Memory @ 0xbf000000
     [m3video] Remote Debug Shared Memory @ 0xbf005020
     [m3vpss ] Remote Debug Shared Memory @ 0xbf00a040
     [c6xdsp ] Received character 's'
    /home/root/opt/dvr_rdk/ti816x
    [module] vpss probe done.
     [m3vpss ]  Vps_deviceI2cInit etv 5.........................
    [module] ti81xxfb probe done.
    HDMI W1 rev 2.0
    [module] ti81xx_hdmi probe done.
     [m3vpss ] Driver register drvOps->drvId:403........
     [m3vpss ] Driver register drvOps->drvId:403 success........
     [m3vpss ] Driver register drvOps->drvId:404........
     [m3vpss ] Driver register drvOps->drvId:404 success........
     [m3vpss ] Driver register drvOps->drvId:500........
     [m3vpss ] Driver register drvOps->drvId:500 success........
     [m3vpss ]  10906: SYSTEM  : Device Init in progress DONE !!!
     [m3vpss ]  11027: SYSTEM  : System VPSS Init Done !!!
     [m3vpss ]  11027: UTILS: DMA: HWI Create for INT63 !!!
     [m3vpss ]  11027: SYSTEM  : Initializing Links !!! 
     [m3vpss ]  11027: SYSTEM  : FREE SPACE : System Heap      = 12456 B, Mbx = 10240 msgs) 
     [m3vpss ]  11027: SYSTEM  : FREE SPACE : SR0 Heap         = 13452672 B (12 MB) 
     [m3vpss ]  11028: SYSTEM  : FREE SPACE : Frame Buffer     = 240794496 B (229 MB) 
     [m3vpss ]  11028: SYSTEM  : FREE SPACE : Bitstream Buffer = 352845696 B (336 MB) 
     [m3vpss ]  11028: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  11028: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  11112: SYSTEM  : Initializing Links ... DONE !!! 
     [m3vpss ]  11112: SYSTEM  : Set Static L3 pressure for HDVPSS as High
     [m3vpss ] This is my system_start m3vpss m3video dsp, before exit
     0: SYSTEM: System Common Init in progress !!!
     0: SYSTEM: IPC init in progress !!!
     17: SYSTEM: Opening MsgQ Heap [IPC_MSGQ_MSG_HEAP] ...
     18: SYSTEM: Creating MsgQ [HOST_MSGQ] ...
     20: SYSTEM: Creating MsgQ [HOST_ACK_MSGQ] ...
     21: SYSTEM: Opening MsgQ [DSP_MSGQ] ...
     22: SYSTEM: Opening MsgQ [VIDEO-M3_MSGQ] ...
     22: SYSTEM: Opening MsgQ [VPSS-M3_MSGQ] ...
     23: SYSTEM: Notify register to [DSP] line 0, event 15 ... 
     24: SYSTEM: Notify register to [VIDEO-M3] line 0, event 15 ... 
     24: SYSTEM: Notify register to [VPSS-M3] line 0, event 15 ... 
     24: SYSTEM: IPC init DONE !!!
     26: SYSTEM: Creating ListMP [HOST_IPC_OUT_24] in region 0 ...
     28: SYSTEM: Creating ListMP [HOST_IPC_IN_24] in region 0 ...
     30: SYSTEM: ListElem Shared Addr = 0x41e72080
     31: SYSTEM: Creating ListMP [HOST_IPC_OUT_25] in region 0 ...
     33: SYSTEM: Creating ListMP [HOST_IPC_IN_25] in region 0 ...
     34: SYSTEM: ListElem Shared Addr = 0x41e8fb80
     37: SYSTEM: Creating ListMP [HOST_IPC_OUT_19] in region 0 ...
     39: SYSTEM: Creating ListMP [HOST_IPC_IN_19] in region 0 ...
     41: SYSTEM: ListElem Shared Addr = 0x41ead680
     42: SYSTEM: Creating ListMP [HOST_IPC_OUT_20] in region 0 ...
     44: SYSTEM: Creating ListMP [HOST_IPC_IN_20] in region 0 ...
     46: SYSTEM: ListElem Shared Addr = 0x41ecd080
     47: SYSTEM: Creating ListMP [HOST_IPC_OUT_21] in region 0 ...
     49: SYSTEM: Creating ListMP [HOST_IPC_IN_21] in region 0 ...
     51: SYSTEM: ListElem Shared Addr = 0x41eeca80
     68: SYSTEM: System Common Init Done !!!
     [host] CHAINS_IPCBITS:Chains_ipcBitsRecvRtspServerFxn:Entered...the exitBitsInThread value is 0
     [m3vpss ]  16668: CAPTURE: Create in progress !!!
     [m3vpss ]  16702: CAPTURE: VIP0 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! 
     [m3video]  16771: IPC_IN_M3   : Create in progress !!!
     [m3vpss ]   Vps_platform 8168x 9df84a5d....
     [m3video]  16772: SYSTEM: Opening ListMP [VPSS-M3_IPC_OUT_0] ...
     [m3video]  16772: SYSTEM: Opening ListMP [VPSS-M3_IPC_IN_0] ...
     [m3vpss ]   Vps_platformCpuRev: 6b094....
     [m3video]  16774: IPC_IN_M3   : Create Done !!!
     [m3video]  16775: ENCODE: Create in progress ... !!!
     [m3vpss ] Vps_captCreateChObj.................1155............
     [m3video] SYSTEM_LINK_ID_VENC_0=0x10000021 ...
     [m3video]  16791: ENCODE: Creating CH0 of 352 x 576, pitch = (352, 352) [PROGRESSIVE] [NON-TILED  ], bitrate = 4000 Kbps, dataFormat=7 ... 
     [host]  237: IPC_BITS_IN   : Create in progress !!!
     [host]  237: IPC_BITS_IN   : ListMPOpen start !!!
     [host]  237: SYSTEM: Opening ListMP [VIDEO-M3_IPC_OUT_24] ...
     239: SYSTEM: Opening ListMP [VIDEO-M3_IPC_IN_24] ...
     [m3video] ENCLINK_H264:HEAPID:0        USED:13808
     [m3video] ENCLINK_H264:HEAPID:3        USED:1024000
     [m3video]  16797: ENCODE: Creating CH1 of 352 x 576, pitch = (352, 352) [PROGRESSIVE] [NON-TILED  ], bitrate = 4000 Kbps, dataFormat=7 ... 
     [host]  241: IPC_BITS_IN   : ListMPOpen done !!!
    
     [host]  577: IPC_BITS_IN   : System_linkGetInfo done !!!
    
     [host] ipcin: pObj->inQueInfo.chInfo[chId].dataFormat2=0
    
     [host]  577: IPC_BITS_IN   : Create Done !!!
     [m3video] chroma format=7
     [m3vpss ] In Vps_sii9233bCreate.................
     [m3video] ENCLINK_H264:HEAPID:0        USED:11912
     [m3video] ENCLINK_H264:HEAPID:3        USED:1024000
     [m3vpss ] Vps_sii9233bCreate 137.............!
     [m3video]  16803: ENCODE: All CH Create ... DONE !!!
     [m3vpss ] Vps_sii9233bCreate 144.............!
     [m3vpss ] Vps_sii9233bCreate 210.............!
     [m3vpss ] After FVID2_create decoderId is 1028
     [m3video] ENCLINK:HEAPID:0     USED:25840
     [m3vpss ]  16719: CAPTURE: VIP0 PortA VID DEC 1028 (0x30): 9df407d3:9df40545:9e5f5334
     [m3video] ENCLINK:HEAPID:2     USED:2903040
     [m3vpss ] CaptureLink_drvCreate numCh 1.5=1
     [m3video] ENCLINK:HEAPID:3     USED:2048000
     [m3vpss ] CaptureLink_drvCreate numCh 1.4=1
     [m3video]  16805: ENCODE: Create ... DONE !!!
     [m3vpss ]  16719: CAPTURE: VIP1 PortA capture mode is [16-bit, Non-mux Embedded Sync] !!! 
     [m3video]  16805: IPC_BITS_OUT   : Create in progress !!!
     [m3vpss ] Before drvSimVdeo Source select 0......................
     [m3video] System_LinkGetInfo in _local, procId=1, linkId=0x10000021, SYSTEM_VIDEO_LINK_ID_IPC_IN_M3_0=0x10000002 ...
     [m3video] SYSTEM_LINK_ID_VENC_0=0x10000021 ...
     [m3vpss ] After drvSimVdeo Source select......................
     [m3video] 16807: EncLink_getInfo called here
     [m3video]  16807: IPC_BITS_OUT   : Create Done !!!
     [m3vpss ] Before FVID2_create VIP_DRV instId:2 
     [m3vpss ]   Vps_platformGetId: 6b095....
     [m3vpss ]   Vps_platform 8168x 9df84a5d....
     [m3vpss ]   Vps_platformCpuRev: 6b094....
     [m3vpss ] Vps_captCreate.................206............
     [m3vpss ] Vps_captCreateChObj.................1155............
     [m3vpss ] Before switch videoCaptureMode 0.............
     [m3vpss ] After FVID2_create VIP_DRV instId:2 
     [m3vpss ] Before FVID2_create decoderId is 1028
     [m3vpss ] In Vps_sii9233bCreate.................
     [m3vpss ] Vps_sii9233bCreate 137.............!
     [m3vpss ] Vps_sii9233bCreate 144.............!
     [m3vpss ] Vps_sii9233bCreate 210.............!
     [m3vpss ] After FVID2_create decoderId is 1028
     [m3vpss ]  16735: CAPTURE: VIP1 PortA VID DEC 1028 (0x31): 9df407d3:9df40545:9e62e774
     [m3vpss ] CaptureLink_drvCreate numCh 1.5=2
     [m3vpss ]  UTILS: DMA: Allocated CH (TCC) = 58 (58)
     [m3vpss ] CAPTURE::HEAPID:0    USED:672
     [m3vpss ] CAPTURE::HEAPID:4    USED:9916416
     [m3vpss ]  16736: CAPTURE: Create Done !!!
     [m3vpss ] DeiLink_tskMain SYSTEM_CMD_CREATE called here
     [m3vpss ]  16736: DEI    : Create in progress !!!
     [m3vpss ]  16768: DEI     : Loading Up-scaling Co-effs
     [m3vpss ]  16769: DEI     : Co-effs Loading ... DONE !!!
     [m3vpss ] DEI:HEAPID:0 USED:64
     [m3vpss ] DEI:HEAPID:1 USED:6656
     [m3vpss ] DEI:HEAPID:4 USED:5750784
     [m3vpss ]  16769: DEI    : Create Done !!!
     [m3vpss ]  16769: IPC_OUT_M3   : Create in progress !!!
     [m3vpss ] pPrm->(numChPerOutQue[0])=0
     [m3vpss ] IpcOutM3Link_create prevLinkId1=0x20000028
     [m3vpss ] IpcOutM3Link_create numCh1=0
     [m3vpss ] System_LinkGetInfo in _local, procId=2, linkId=0x20000028, SYSTEM_VIDEO_LINK_ID_IPC_IN_M3_0=0x10000002 ...
     [m3vpss ] SYSTEM_LINK_ID_VENC_0=0x10000021 ...
     [m3vpss ] DeiLink_getInfo inTskInfo numCh=2
     [m3vpss ] DeiLink_getInfo info numQue=5
     [m3vpss ] DeiLink_getInfo info numCh0=0
     [m3vpss ] DeiLink_getInfo info numCh1=2
     [m3vpss ] DeiLink_getInfo info numCh2=0
     [m3vpss ] DeiLink_getInfo info numCh3=0
     [m3vpss ] DeiLink_getInfo info numCh4=0
     [m3vpss ] IpcOutM3Link_create prevLinkId2=0x20000028
     [m3vpss ] IpcOutM3Link_create numCh2=0
     [m3vpss ]  16771: IPC_OUT_M3   : Create Done !!!
     [m3vpss ]  17149: CAPTURE: Start in progress !!!
     [m3vpss ]  17149: CAPTURE: Start Done !!!
     [m3vpss ]  17274: SYSTEM: Opening MsgQ [HOST_MSGQ] ...
     [m3vpss ]  
     [m3vpss ]  *** Capture Driver Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  VIP Parser Reset Count : 0
     [m3vpss ]  
     [m3vpss ]      |   Total    Even     Odd  Total  Even   Odd  Min /  Max  Min /  Max Dropped Fid Repeat Frame Error Y/C
     [m3vpss ]  CH  |  Fields  Fields  Fields    FPS   FPS   FPS       Width      Height  Fields      Count (Desc Error Y/C)
     [m3vpss ]  ------------------------------------------------------------------------------------------------------------
     [m3vpss ]  000 |       1       1       0      0     0     0 65535 /    0 65535 /    0       1          0 0/0 (0/0)
     [m3vpss ]  200 |       1       1       0      0     0     0 65535 /    0 65535 /    0       1          0 0/0 (0/0)
     [m3vpss ]  
     [m3vpss ]  VIP Capture Port 0 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  VIP Capture Port 2 | DescMissMatch1 = 0, DescMissMatch2 = 0 , DescMissMatch3 = 0 
     [m3vpss ]  
     [m3vpss ]  *** Capture List Manager Advanced Statistics *** 
     [m3vpss ]  
     [m3vpss ]  List Post Count        : 2503 
     [m3vpss ]  List Stall Count       : 0 
     [m3vpss ]  List Post Time (ms)    : Max = 0, Min = 0, Avg = 0, Total = 0 
     [m3vpss ]  INTC Timeout Count     : (0, 0) (Min timeout value = 990, 1000) 
     [m3vpss ]  Descriptor miss found count : 0 
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  VIP and VPDMA registers, 
     [m3vpss ]  VIP0 : FIQ_STATUS  : 0x4810551c = 0x00000000
     [m3vpss ]  VIP1 : FIQ_STATUS  : 0x48105a1c = 0x00000000
     [m3vpss ]  VPDMA: LIST_BUSY   : 0x4810d00c = 0x00000000
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  27267: CAPTURE: Fields = 0 (fps = 0, CPU Load = 0)
     [m3vpss ]  27267: CAPTURE: Num Resets = 0 (Avg 0 ms per reset)
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : System Heap      = 6104 B, Mbx = 10240 msgs) 
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : SR0 Heap         = 11003648 B (10 MB) 
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : Frame Buffer     = 223079296 B (212 MB) 
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : Bitstream Buffer = 349942656 B (333 MB) 
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : Tiler 8-bit      = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  27268: SYSTEM  : FREE SPACE : Tiler 16-bit     = 134217728 B (128 MB)  - TILER ON 
     [m3vpss ]  
     [m3vpss ]  *** [DEI2    ] DEI Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 12 secs
     [m3vpss ]  Total Fields Processed : 0 
     [m3vpss ]  Total Fields FPS       : 0 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User  
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS    FPS    FPS       FPS         FPS         FPS         FPS         FPS       Skip 
     [m3vpss ]  ----------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]    1 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [DEI2    ] DEI Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 0 secs
     [m3vpss ]  Total Fields Processed : 0 
     [m3vpss ]  Total Fields FPS       : 0 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User  
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS    FPS    FPS       FPS         FPS         FPS         FPS         FPS       Skip 
     [m3vpss ]  ----------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]    1 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  *** [DEI2    ] DEI Statistics *** 
     [m3vpss ]  
     [m3vpss ]  Elasped Time           : 0 secs
     [m3vpss ]  Total Fields Processed : 0 
     [m3vpss ]  Total Fields FPS       : 0 FPS
     [m3vpss ]  
     [m3vpss ]  
     [m3vpss ]  CH  | In Recv In Reject In Process Out[0] Out[1] Out[2] Out[3] Out[4] Skip Out[0] Skip Out[1] Skip Out[2] Skip Out[3] Skip Out[4] User  
     [m3vpss ]  Num | FPS     FPS       FPS        FPS    FPS    FPS    FPS    FPS       FPS         FPS         FPS         FPS         FPS       Skip 
     [m3vpss ]  ----------------------------------------------------------------------------------------------------------------------------------------
     [m3vpss ]    0 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]    1 |       0         0          0      0      0      0      0      0           0           0           0           0           0      0
     [m3vpss ]  
     [m3video]      33274: HDVICP-ID:0
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      33275: HDVICP-ID:1
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]      33275: HDVICP-ID:2
     [m3video] All percentage figures are based off totalElapsedTime
     [m3video]               totalAcquire2wait :0 %
     [m3video]               totalWait2Isr :0 %
     [m3video]               totalIsr2Done :0 %
     [m3video]               totalWait2Done :0 %
     [m3video]               totalDone2Release :0 %
     [m3video]               totalAcquire2Release :0 %
     [m3video]               totalAcq2acqDelay :0 %
     [m3video]               totalElapsedTime in msec :       0
     [m3video]               numAccessCnt:       0
     [m3video]              IVA-FPS :       0
     [m3video]              Average time spent per frame in microsec:       0
     [m3video]  
     [m3video]  *** ENCODE Statistics *** 
     [m3video]  
     [m3video]  Elasped Time           : 33 secs
     [m3video]  
     [m3video]  
     [m3video]  CH  | In Recv In Skip In User  Out Latency  
     [m3video]  Num | FPS     FPS     Skip FPS FPS Min / Max
     [m3video]  --------------------------------------------
     [m3video]    0 |       0       0        0   0   0 /   0
     [m3video]    1 |       0       0        0   0   0 /   0
     [m3video]  
     [m3video] Multi Channel Encode Average Submit Batch Size 
     [m3video] Max Submit Batch Size : 24
     [m3video] IVAHD_0 Average Batch Size : 0
     [m3video] IVAHD_0 Max achieved Batch Size : 0
     [m3video] IVAHD_1 Average Batch Size : 0
     [m3video] IVAHD_1 Max achieved Batch Size : 0
     [m3video] IVAHD_2 Average Batch Size : 0
     [m3video] IVAHD_2 Max achieved Batch Size : 0
     [m3video]  
     [m3video] Multi Channel Encode Batch break Stats 
     [m3video] Total Number of Batches created: 0 
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0 
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3video] Total Number of Batches created: 0 
     [m3video] All numbers are based off total number of Batches created
     [m3video]       Batch breaks due to batch sizeexceeding limit: 0 %
     [m3video]       Batch breaks due to ReqObj Que being empty: 0 %
     [m3video]       Batch breaks due to changed resolution class: 0 %
     [m3video]       Batch breaks due to interlace and progressivecontent mix: 0 %
     [m3video]       Batch breaks due to channel repeat: 0 %
     [m3video]       Batch breaks due to different codec: 0 %
     [m3vpss ]  
     [m3vpss ]  35280: LOAD: CPU: 2.8% HWI: 0.3%, SWI:0.7% 
     [m3vpss ]  
     [m3vpss ]  35280: LOAD: TSK: CAPTURE             : 0.5% 
     [m3vpss ]  35280: LOAD: TSK: DEI2                : 0.2% 
     [m3vpss ]  35280: LOAD: TSK: MISC                : 1.1% 
     [m3vpss ]  
     [m3video]  
     [m3video]  35781: LOAD: CPU: 1.2% HWI: 0.2%, SWI:0.3% 
     [m3video]  
     [m3video]  35781: LOAD: TSK: ENC0                : 0.4% 
     [m3video]  35781: LOAD: TSK: MISC                : 0.3% 
     [m3video]  
    

  • The log indicates capture is not receiving any frames.This could be because external video decoder is wrongly configured or because VIP configuration is not correct for the external video decoder output format.

    Check you are configuring 8bit/16bit , embedded synch/discrete synch, single ch/ multich mux mode in captureLink params correctly.

    Also I see  Vps_sii9233bCreate function invoked in the logs. Did you add this code for external video decoder configuration ? You should set external video decoder id to 0 and then configure the external video decoder from A8

  • Narayanan, Thanks for reply.

    I configure the decoder to output 16 bit YUV422 with emedded sync code. As you can see

    from the log, I set the dsp capture port to be the same configuration. We initialize the decoder

    by an external 51 MPU, so I don't think the Vps_sii9233bCreate function is relevant.

    By the way,  I configure the decoder to output the AV coder (SAV, EAV) on both the Y and 

    UV, is it right? I am not sure about the decoder's configuration.

  • Set videoDecoderId to 0 and set configureExternalVideoDecoder to FALSE. Share  your captureLink create params

    The embedded synch code should be sent on bit 15:8 .Do you have the capture source to VIP 0 or VIP 1 ?

  • hi, 

    I set videoDecoderId to 0, it makes no difference. I can't find configureExternalVideoDecoder,

    pls tell me where to find it.  The following is the capture's parameter:

     

    capturePrm.numVipInst = 2;
    capturePrm.tilerEnable = FALSE;
    capturePrm.numBufsPerCh = 16;
    capturePrm.numExtraBufs = 0;
    capturePrm.maxBlindAreasPerCh = 0;
    capturePrm.isPalMode = TRUE;
    capturePrm.enableSdCrop = FALSE;
    capturePrm.doCropInCapture = FALSE;

    for(i=0; i<capturePrm.numVipInst; i++)
    {
      vipInstId = SYSTEM_CAPTURE_INST_VIP0_PORTA + 2*i;
      pCaptureInstPrm = &capturePrm.vipInst[i];
      pCaptureInstPrm->vipInstId = vipInstId%SYSTEM_CAPTURE_INST_MAX;
      pCaptureInstPrm->videoDecoderId = 0;
      pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;
      pCaptureInstPrm->standard = chainsCfg->displayRes[i];
      pCaptureInstPrm->numOutput = 1;
      pCaptureInstPrm->numChPerOutput = 1;
      pCaptureInstPrm->frameCaptureMode = FALSE;
      pCaptureInstPrm->fieldsMerged = FALSE;

      pCaptureOutPrm = &pCaptureInstPrm->outParams[0];
      pCaptureOutPrm->dataFormat = SYSTEM_DF_YUV420SP_UV;
      pCaptureOutPrm->scEnable = FALSE;
      pCaptureOutPrm->scOutWidth = gChains_ctrl.channelConf[i].width;
      pCaptureOutPrm->scOutHeight = (gChains_ctrl.channelConf[i].height)/2;
      pCaptureOutPrm->outQueId = 0;
    }

    capturePrm.outQueParams[0].nextLink = deiId;
    capturePrm.outQueParams[1].nextLink = deiId;

    I seemed to have tried putting the AV code only on bit 15:8, it doesn't work. In addition,

    our working VGA configuration put AV code on both 15:8 and 7:0, it works fine. Can you

    confirm it? I'll verify my VGA configuration.

    Now I just try to capture PAL only on VIP0.

  • You are using unsupported release. Migrate to DVRRDK 4.01.

    What is pCaptureInstPrm->standard set to ?

    You are not setting the following:

    videoCaptureMode = SYSTEM_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_EMBEDDED_SYNC

    standard = SYSTEM_STD_D1

    videoIfMode = SYSTEM_CAPT_VIDEO_IF_MODE_16BIT

    dataFormat  = SYSTEM_DF_YUV422I_YUYV

    inScanFormat = SYSTEM_SF_INTERLACED

    videoDecoderId = 0

     

    Putting embedded code in  both 0:7 and 15:8 is fine

    Check if your external video decoder is detecting synch lock and reporting correct width and height.

  • hi, Badri:

    Sorry for late reply. 

    At moment I can't get DVRRDK 4.01, I have to work on 3.0.

    According you previous reply, I set

    dataFormat  = SYSTEM_DF_YUV422I_YUYV

    When the code run, it prints:

    in links_m3vpss/capture/captureLink_drv.c: pInst->captureVipHandle != NULL : failed !!!

    If set it back to SYSTEM_DF_YUV422P, the above error disappears.

    The other parameters are the same as my previous post.

  • Looks like you are wrongly changing inDataFormat instead of capture driver output dataFormat.Anyhow there are numerous changes since DVRRDK 3.0 and I don't know if you will be able to get a different external video decoder other than TVP5158 working on DVRRDK 3.0

  • Hi, Badri:

      Yes, I have set the wrong parameter. 

      When I set the output dataFormat to the one you recommended ( SYSTEM_DF_YUV422I_YUYV), it doesn't report

    the error, but it still can't capture any data, the statistics is like the previous one, any suggestion?

  • I don't have any other suggestion on DVRRDK 3.0. You can check first if the external video decoder is detecting synch and reporting correct width and height.

    Next print all the parameters passed to FVID2_create in CaptureLink_drv.c to create the capture driver and confirm it matches your video decoder configuration.

  • hi, Badri:

    Now I can capture the PAL and encode it. I tuned the decoder's configuration and then

    the dsp can capture data. Thanks!

    Another issue arises. When I playback the encoded video on PC, the playbak time is about

    2 times the original recording time. For example, if I record the PAL video for 5 minutes,

    then the playback will take 10 minutes. The playback rate is obviously slower than normal one.

    The capture statistic output from 8168 shows it has captured about 15000 fileds, while the player

    software on PC shows the produced file has 15000 frames. 

    I think the DEI link causes the twice issue. The DEI link deinterlaces every field (even/odd) and

    turns every filed into one frame, so the frame count is doubled, is it true?

    Would you tell me how to solve this? The configuration of every link is about the same with the

    posts I sent before.

    Thanks! 

  • You should set deiLink framerate as input 50 output 25.As you mentioned dei is coverting 50 fields to 50 frames.You should drop 25 frames at dei.

  • hi, badri:

    I'll try your suggestion. 

    But I doubt about one thing: In the traditional system (something like in CRT TV), an even filed is combined

    with an odd filed, then produce a frame. Does the DVR RDK do the same procedure? As you say, If half of 

    the fields is dropped, will the quality of the video be degraded? Can the DEI link combine the odd and even

    field? How to implement this?

    Thanks!