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.

MPEG-2 Encoder running on the TMS320DM368ZCE Controller



Dear Ladies and Gentlemen,

we are running the MPEG-2 Encoder on the DM368 CPU with the following Parameters:

imp2DefaulDynParams.videncDynamicParams.intraFrameInterval = 15;

params->rateControlPreset = IVIDEO_STORAGE;

imp2DynParams->RcAlgo = IMP2VENC_RC_DEFAULT;

imp2Params->QscaleType = 0;

imp2DynParams->QPMax = 31;

imp2DynParams->QPMin = 1;

imp2DynParams->qpIntra = 8;

imp2DynParams->qpInter = 8;

But, the resulting elementary stream shows no Sequence Headers, Sequence Header Extensions and no GOP headers in front of each GOP.

Also the closed GOP field ist FALSE for the first GOP.

Can you please tell me what we need to change to get the missing information in the ES?

Best Regards,

Rudi Golser

  • Hi Rudi,

    Can you attach a sample stream which you have encoded ? This should not be the case.

    Which application are you using ?

    regards

    Yashwant

  • Hello Yashwant,

    here you will find our ES (elementary stream) with GOP = 15:

    Rudi

  • Hi Rudolf,

    You will get GOP headers by making a control call with IVIDENC1_DynamicParams --> forceFrame set to IVIDEO_I_FRAME. Encoder library will not do it by itself. Applicaiton library has to track the number of frames encoded and at 15 frame interval make a control call to get the sequence, sequence_extension and GOP headers.

    Only sequence, sequence_extension can be got by making a control with IVIDENC1_DynamicParams --> generateHeader set to XDM_GENERATE_HEADER. 

    closed_gop field is set to FALSE (0). closed_gop is used in B frames to indicate if the prediction is allowed across GOP. Since this encoder does not support B frames, this field does not affect the ES, even if it's edited later.

    Regards,

    Neelakanth