Hello,
I am trying to record video (640x480) to a memory card using an encoder in h.264 format. But when I run the recorded video using the decoder, I notice that some of the frames are dropped. What could be the problem?
My encoder settings:
pLinkChPrm->format = SYSTEM_IVIDEO_H264HP;
pLinkChPrm->profile = 100;
pLinkChPrm->dataLayout = VENC_FIELD_SEPARATED;
pLinkChPrm->fieldMergeEncodeEnable = FALSE;
pLinkChPrm->enableAnalyticinfo = 0;
pLinkChPrm->enableWaterMarking = 0;
pLinkChPrm->maxBitRate = -1;
pLinkChPrm->encodingPreset = SYSTEM_XDM_HIGH_SPEED_MED_QUALITY;
//pLinkChPrm->encodingPreset = SYSTEM_XDM_USER_DEFINED;
pLinkChPrm->rateControlPreset = SYSTEM_IVIDEO_STORAGE;
pLinkChPrm->enableHighSpeed = FALSE;
pLinkChPrm->enableSVCExtensionFlag = FALSE;
pLinkChPrm->numTemporalLayer = 0;
pLinkChPrm->overrideInputScanFormat = 0;
pLinkChPrm->fieldPicEncode = 0;
pLinkChPrm->IDRFrameInterval = 30;
pLinkDynPrm->intraFrameInterval = 30;
pLinkDynPrm->targetBitRate = 10 * 1000 * 1000;
pLinkDynPrm->interFrameInterval = 1;
pLinkDynPrm->mvAccuracy = SYSTEM_IVIDENC2_MOTIONVECTOR_QUARTERPEL;
pLinkDynPrm->inputFrameRate = 30;
pLinkDynPrm->rcAlg = 0;
pLinkDynPrm->qpMin = 0;
pLinkDynPrm->qpMax = 51;
pLinkDynPrm->qpInit = 25;
pLinkDynPrm->vbrDuration = 8;
pLinkDynPrm->vbrSensitivity = 0;
pLinkDynPrm->maxPicSizeRatioI = 640;
Regards,
Filipp