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.

MPEG4 encoder not giving proper output.

Hi,
We are using our custom made board based on DM6446 platform. we are using dvsdk 2. My problem is that
MPEG4 encoder is not giving proper output while for same set of parameter values it is working properly
with H264 encoder & giving proper encoded frame which I am able to decode.
I am using following settings for the parameter.

    params.size                  = sizeof(VIDENC1_Params);
    params.encodingPreset        = XDM_DEFAULT;
    params.rateControlPreset     = IVIDEO_LOW_DELAY;
    params.maxBitRate            = 6000000;
    params.dataEndianness        = XDM_BYTE;
    params.maxInterFrameInterval = 1;
    params.inputChromaFormat     = XDM_YUV_422ILE;
    params.inputContentType      = IVIDEO_PROGRESSIVE;
    params.maxHeight             = D1_MAX_HEIGHT;
    params.maxWidth              = D1_MAX_WIDTH;
    params.reconChromaFormat     = XDM_CHROMA_NA;
    params.maxFrameRate          = 30000;

    dynamicParams.size               = sizeof(VIDENC1_DynamicParams);
    dynamicParams.inputHeight        = videnc->vsize.height;
    dynamicParams.inputWidth         = videnc->vsize.width;
    dynamicParams.targetBitRate      = videnc->maxbr;
    dynamicParams.intraFrameInterval = 30;
    dynamicParams.generateHeader     = header;
    dynamicParams.captureWidth       = 0;
    dynamicParams.forceFrame         = IVIDEO_NA_FRAME;
    dynamicParams.interFrameInterval = 1;
    dynamicParams.mbDataFlag         = 0;
    dynamicParams.targetFrameRate    = videnc->fps*1000;
    dynamicParams.refFrameRate       = videnc->fps*1000;

Also when I check the outArgs it show the value of outArgs.inputFrameSkip = 1.

What am I missing here??


--
Thanks & regards
yuvraj pasi

  • Hi Yuvraj,

    outArgs.inputFrameSkip = 1 means the inputFrame given to encoder is skipped.

    To start to see where the problem exits and why encoder skipping frames, Can you play around with dynamicParams.targetBitRate    and params.rateControlPreset  giving different values?


    Regards,

    Venu

  •  Hi Venu,

    Sorry for replying late but its not working . i have played around a bit with unsuccessful result.

    You can see my thread in mailing list

    http://www.mail-archive.com/davinci-linux-open-source@linux.davincidsp.com/msg18543.html

     

    regards

    yuvraj pasi