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.

Linux/TMS320DM8148: 8148 mcfw capture 1080P30 video has black side

Part Number: TMS320DM8148

Tool/software: Linux

Hi,

TI,

I am using the mcfw to capture video.The input video is 1080P30.The capture mode is DEVICE_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VSYNC.

prm_cap_inst->videoCaptureMode  = DEVICE_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_HSYNC_VSYNC;

There is a black edge on the left and right.

here the time sequence diagram of the input video.

How can I configurate the shift of hsync and vsync to solve the problem? maybe I can solve it by change the parameter on the mcfw.

BR,

vefone?

  • Hi,

    It might be coming because of horizontal blanking data. If you know exact size of the hfp and hbp, we can trim it off in the VIP, capture port.

    Rgds,

    Brijesh

  • Hi,

    Brijesh,

    I use the crop  like that:

    /* setting vcap input resolution: THIS MUST late of caplink create */

       CaptureLink_SetVipCrop vipCrop;

       vipCrop.queId  = 0;

       vipCrop.chId   = 0;

       vipCrop.vipCropEnable = TRUE;

       vipCrop.cropStartX = 128;

       vipCrop.cropStartY = 41;

       vipCrop.cropWidth = 1920;

       vipCrop.cropHeight = 1080;

       System_linkControl(gVcapModuleContext.captureId, CAPTURE_LINK_CMD_SET_VIP_CROP_CFG, &vipCrop, sizeof(vipCrop), TRUE);

    Now the vertical blanking is not non-existent,and the horizontal blanking is smaller than before.

    But if I continue to increase vipCrop.cropStartX,the video is not ok,just like that:

    Do you have any suggestions?

    BR,

    vefone

  • Hi,

    Change the crop parameter like:

    /* setting vcap input resolution: THIS MUST late of caplink create */
        CaptureLink_SetVipCrop vipCrop;
        vipCrop.queId  = 0;
        vipCrop.chId   = 0;
        vipCrop.vipCropEnable = TRUE;
        vipCrop.cropStartX = 236;
        vipCrop.cropStartY = 41;
        vipCrop.cropWidth = 1812;
        vipCrop.cropHeight = 1080;
        System_linkControl(gVcapModuleContext.captureId, CAPTURE_LINK_CMD_SET_VIP_CROP_CFG, &vipCrop, sizeof(vipCrop), TRUE);
    The video is below:
    The blank side on the left is no exist,but there are white side on the right(no video data).
    If I increase the vipCrop.cropWidth to 1813,the video is not ok.

    It seems that the cropStartX add cropWidth must less then 2049.
    any suggestion?
    BR,
    vefone
  • Hi vefone,


    From the above diagram, you should be setting cropstartx as 236 and cropWidth as 1920. But if VIP is receiving shorter line size, it could cause the problem.

    Can you please check first the line size? You could check the line that VIP is receiving by checking VIP status register at the offset 0x30, by disabling cropping.

    Rgds,
    Brijesh