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.

Decode MPEG2: interleaving problem

Other Parts Discussed in Thread: DM8107

Hello,

I use a custom board with a DM8107.

I am trying to decode a MPEG2 stream.  I set this picture to the McFw:

I get this picture after my processing chain:

My processing chain is: Decode -> DEI->Display.

My problem with this picture is: it lacks one frame

All of my chain is interleaving:

Pt_chInfo->scanFormat =  SYSTEM_SF_INTERLACED;

Pt_decLinkChPrm->processCallLevel     =  VDEC_FIELDLEVELPROCESSCALL;

deiPrm->enableDeiForceBypass    = TRUE;

The formats I use:

prm.deviceParams[VDIS_VENC_DVO2].outputInfo.dataFormat = SYSTEM_DF_YUV422SP_UV ;

Pt_decLinkChPrm->format             = IVIDEO_MPEG2HP;

Pt_chInfo->dataFormat     = SYSTEM_DF_YUV420SP_UV;

I use the output: HD Venc DVO2 ( prm.deviceParams[VDIS_VENC_DVO2].outputInfo.dvoFmt = VDIS_DVOFMT_SINGLECHAN;)

Can you tell me if this parameters are correct ? And can you tell me why my picture is different?
Regards

  • Hello,

    WHat is the software release that you are using here?

    BR
    Margarita
  • Hello Margarita,
    I am doing a DVR project and my platform is DM8107 (DVRRDK_04.01.00.02).
    BR
    Antoine
  • Hi,

    At the output of decode, I have this good picture:

    Now, at the output of DEI, I have this picture:

    The color isn't e problem. But the Dei takes just a TOP picture of the decode and never takes a BOTTOM picture.

    Here the DEI setting:

        uint32_t  outId, chId;
        deiPrm->comprEnable                          = FALSE;
        deiPrm->setVipScYuv422Format        = FALSE;
        deiPrm->outputDeiFrameRate             = Pt_S_Application->Conf.framerateOut; //50
        deiPrm->enableDeiForceBypass        = TRUE;
        deiPrm->interlacedBypassMode         =  TRUE;   
        deiPrm->enableForceInterlacedInput  = FALSE;
        deiPrm->enableLineSkipSc                 = FALSE;
        deiPrm->enableDualVipOut                 = FALSE;
        deiPrm->enableInputFrameRateUpscale = FALSE;
        outId = 0;
        deiPrm->enableOut[outId] = TRUE;
        deiPrm->tilerEnable[outId] = FALSE;
        for(chId=0; chId< 1; chId++)
        {
            deiPrm->outScaleFactor[outId][chId].scaleMode = DEI_SCALE_MODE_ABSOLUTE;
            deiPrm->outScaleFactor[outId][chId].absoluteResolution.outWidth = 720;
            deiPrm->outScaleFactor[outId][chId].absoluteResolution.outHeight = 576;
        }
        deiPrm->outputFrameRate[outId]  = Pt_S_Application->Conf.framerateOut;  //50
        deiPrm->numBufsPerCh[outId]     = NUM_BUF_PER_CH; //5
        deiPrm->generateBlankOut[outId] = FALSE;

    BR

    Antoine

  • Hi everybody,
    I found the issue about my problem of interlaced video.
    I added a new patch about iva_dec, HDVPSS, dei and I set this parameter (forceFieldSeparatedInputMode) on true .

    but I have a new problem:

    Now, I have this good picture:


    and this bad picture:


    The problem is: I have a good picture (Top and Bottom are interleaved) but sometimes I have a picture with a good Bottom intreleaved with the next Top.
    Do you have any idea?

    BR
    Antoine

  • Hello,

    e2e.ti.com/.../224844
    or you could try to search in the e2e for similar issue.

    BR
    Margarita
  • Hi,
    Thank to your reply Margarita.
    So I search similar issue in the e2e and I don't found this soluce.
    BR
    Antoine