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.

dm365 mpeg4 encoder P frames problem when put in mp4 container

I have an unusual problem putting dm365 generated p frames in mp4 container when encoding, using dvsdk_4_02_00_06

when I set dynParams.intraFrameInterval to 10, I get correctly IFrame every 10 frames, and P frames otherwise, but in mpeg4 container they are not being decoded correctly...

Using only I frames works fine.. BTW, this worked just fine on DM355 evaluation board

my cfg file encoder path:

var MPEG4ENC = xdc.useModule('ti.sdo.codecs.mpeg4enc.ce.MPEG4ENC');

Here's my encoder params

    enc->params    = Venc1_Params_DEFAULT;
    enc->dynParams = Venc1_DynamicParams_DEFAULT;
    enc->gfxAttrs  = BufferGfx_Attrs_DEFAULT;
    enc->bAttrs    = Buffer_Attrs_DEFAULT;
    enc->tAttrs    = Time_Attrs_DEFAULT;

    enc->params.rateControlPreset = IVIDEO_LOW_DELAY;
    enc->params.maxBitRate        = enc->video_codec_context->bit_rate;
     enc->params.inputChromaFormat = XDM_YUV_422ILE;
    enc->params.reconChromaFormat = XDM_YUV_420SP;
    enc->params.inputContentType  = IVIDEO_PROGRESSIVE;
    enc->params.maxFrameRate      = enc->video_codec_context->time_base.den*1000;
    enc->params.maxWidth          = enc->video_codec_context->width;
    enc->params.maxHeight         = enc->video_codec_context->height;
    enc->params.dataEndianness    = XDM_BYTE;
    enc->params.maxInterFrameInterval = 1;
    enc->params.encodingPreset  = XDM_DEFAULT;

    enc->dynParams.refFrameRate      = enc->params.maxFrameRate;    
    enc->dynParams.targetFrameRate    = enc->params.maxFrameRate;
    enc->dynParams.targetBitRate      = enc->params.maxBitRate;
    enc->dynParams.inputWidth         = enc->params.maxWidth;
    enc->dynParams.inputHeight        = enc->params.maxHeight;
    enc->dynParams.intraFrameInterval = enc->video_codec_context->gop_size;
    enc->dynParams.interFrameInterval = 0;
    enc->dynParams.captureWidth = enc->params.maxWidth * 2;
    enc->dynParams.generateHeader = XDM_ENCODE_AU;
    enc->dynParams.forceFrame = -1;