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.

mosaic occur on mpeg4 video when dm365 runs for a period of time.

main mpeg4 encode's parameters  are set below, bit rate is 2Mbps and IVIDEO_RateControlPreset is CBR. when the system of DM365 starts up the mpeg4 video is normal for one hour or more long time. but mosaic occurs ater a period of time even if the capturing object is still. but the mpeg4 encoder's parameters aren't be changed at all. what happened ?

  • Hi Zech yu,

    Can you pls tell us the following

    -- Version no of Mpeg4 encoder

    -- Detailed API parameter used for the codec

    regards

    Yashwant

  • Hi , Yashwant Dutt

    mpeg4enc version:210_V_MPEG4_E_01_10

    parameters are below,

    IMP4VENC_Params->VIDENC1_Params->size:84
    IMP4VENC_Params->VIDENC1_Params->dataEndianness:1
    IMP4VENC_Params->VIDENC1_Params->encodingPreset:3
    IMP4VENC_Params->VIDENC1_Params->inputChromaFormat:9
    IMP4VENC_Params->VIDENC1_Params->inputContentType:0
    IMP4VENC_Params->VIDENC1_Params->maxBitRate:4000000
    IMP4VENC_Params->VIDENC1_Params->maxFrameRate:30000
    IMP4VENC_Params->VIDENC1_Params->maxHeight:480
    IMP4VENC_Params->VIDENC1_Params->maxWidth:640
    IMP4VENC_Params->VIDENC1_Params->maxInterFrameInterval:0
    IMP4VENC_Params->VIDENC1_Params->rateControlPreset:1
    IMP4VENC_Params->VIDENC1_Params->reconChromaFormat:9
    ----------------
    IMP4VENC_Params->IFrameBitRateBiasFactor:0
    IMP4VENC_Params->PFrameBitRateBiasFactor:0
    IMP4VENC_Params->minBitRate:0
    IMP4VENC_Params->peakBufWindow:0
    IMP4VENC_Params->rotation:0
    IMP4VENC_Params->subWindowHeight:480
    IMP4VENC_Params->subWindowWidth:640
    IMP4VENC_Params->svhMode:0
    IMP4VENC_Params->vbvSize:0
    ----------------
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->size:100
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->captureWidth:0
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->forceFrame:-1
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->generateHeader:0
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->inputHeight:480
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->inputWidth:640
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->interFrameInterval:0
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->intraFrameInterval:30
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->mbDataFlag:0
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->refFrameRate:30000
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->targetBitRate:2000000
    IMP4VENC_DynamicParams->IVIDENC1_DynamicParams->targetFrameRate:30000
    ----------------
    IMP4VENC_DynamicParams->initQ:4
    IMP4VENC_DynamicParams->interFrameQP:0
    IMP4VENC_DynamicParams->intraAlgo:0
    IMP4VENC_DynamicParams->intraFrameQP:0
    IMP4VENC_DynamicParams->meAlgo:0
    IMP4VENC_DynamicParams->mvDataEnable:0
    IMP4VENC_DynamicParams->numMBRows:30
    IMP4VENC_DynamicParams->rateFix:0
    IMP4VENC_DynamicParams->rateFixRange:2
    IMP4VENC_DynamicParams->rcQMax:31
    IMP4VENC_DynamicParams->rcQMin:2
    IMP4VENC_DynamicParams->skipMBAlgo:0
    IMP4VENC_DynamicParams->unrestrictedMV:0

    more infomation, when mosaic occurs, both the QP of I frame and P frame are 31

    regards

    Zech

     

     

     

     

  • Hi , Yashwant Dut

    I have another question. IVIDEO_RateControlPreset is set to IVIDEO_LOW_DELAY. it means that the CBR is select. but bitrate of mpeg4 video isn't constant when the capture object changes while bitrate of this work mode on DM355 is constant. 

    regards

    Zech Yu

  • Hi Zech,

    Thanks for the data. I have a few more questions.

    Does the issue happen during every run or is it intermittent?

    Can you attach a screen grab or if possible, a short clip when the mosaic occurs?

    Does the encoder recover or does it stay corrupt?

     

    Regards,

    Akshay

     

  • Hi Akshay,

    Mosaic issue can be reproduced on every camera.  the DM365 is started up and work normaly about 2 or 3 hours. then the mosaic occurs. and it stay about half an hour and the encoder recover automatically.

    I have further findings. only set the dynamic parameters can recover encoder white reset encoder by Vedeo1_control can recover it. so I have no choice but to introduce a workaround to avoid this issue.

    I try to enclose a m4v file but failed. I will send to you if you could provied your email address.

  • Hi zech,

    I've tried to reproduce the issue you are seeing but was unable to generate it. I tried for a continuous run of almost 4.5 hours. 

    Can you send me the m4v sample? My email address is listed on my profile information.

     

    Thank You,

     

    Akshay