Part Number:TDA2EVM5777
Tool/software: Linux
Hi,
H264 how to configure the encoding all IDR frames, each DIR frame contains sps and pps .
With the above configuration the stream is as follows: SPS | PPS | IDR | SPS | PPS | IDR | SPS | PPS | IDR | ...
My configuration code is as follows, but the bit stream of the encoded output is not SPS | PPS | IDR | SPS | PPS | IDR | SPS | PPS | IDR | ...
how should I modify the configuration?
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_MED_SPEED_HIGH_QUALITY; /* Set encodingPreset to SYSTEM_XDM_USER_DEFINED if SEI/meta data needs to be enabled */ /* pLinkChPrm->encodingPreset = SYSTEM_XDM_USER_DEFINED; */ pLinkChPrm->rateControlPreset = SYSTEM_IVIDEO_LOW_DELAY; pLinkChPrm->enableHighSpeed = FALSE; pLinkChPrm->enableSVCExtensionFlag = FALSE; pLinkChPrm->numTemporalLayer = 0; pLinkChPrm->overrideInputScanFormat= 0; pLinkChPrm->fieldPicEncode = 0; pLinkChPrm->IDRFrameInterval = 1; pLinkDynPrm->intraFrameInterval = 1; 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; /* Set maxPicSizeRatioI to 1 for IDR or I-Frame only mode */ pLinkDynPrm->maxPicSizeRatioI = 1;