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.

DMAI and MPEG4 encoding

Other Parts Discussed in Thread: DM3730

Hi,

I'm using DVSDK 4.01.00.09 with DMAI 2.20.00.14 on a DM3730. My Linux distro is Angstrom with Kernel 2.6.32.

I'm encoding a stream of frames through DMAI's VIDENC1, using "mpeg4enc" encoder. My encoding params are the following:

    // MPEG4 Encoder
    VIDENC1_Params         imParams = Venc1_Params_DEFAULT;
    VIDENC1_DynamicParams  imDynParams = Venc1_DynamicParams_DEFAULT;
    imParams.maxWidth          = 640;
    imParams.maxHeight         = 480;
    imParams.rateControlPreset = IVIDEO_STORAGE;
    imParams.maxBitRate        = 5000000;
    imParams.inputChromaFormat = XDM_YUV_422ILE;
    imParams.maxInterFrameInterval = 1;
    imParams.maxFrameRate = 25000;
    imDynParams.targetBitRate = imParams.maxBitRate;
    imDynParams.inputWidth    = imParams.maxWidth;
    imDynParams.inputHeight   = imParams.maxHeight;
    imDynParams.refFrameRate = 25000;
    imDynParams.targetFrameRate = 25000;
    imDynParams.intraFrameInterval = 25;

Everything works fine, but when I open my recorded MPEG4 files with VLC, I always get a reported framerate of 30000. As you can see from the aforementioned parameters, actually I'm setting 25000 (25fps), and not 30000! Even using different values, VLC always detects a framerate of 30000.

Do you know how I can set a desired framerate? Am I missing something in my settings?

Thanks

Gabriele