I am trying to encode all frames as I-frame, but first two frames are getting dropped and the remaining all frames are IDR-frames.
NVIDIA Video Codec SDK v11.4
GPU Quadro P2000
Following are the parameter settings.
- codecGuid = NV_ENC_CODEC_H264_GUID
- presetGuid = NV_ENC_PRESET_DEFAULT_GUID
- profileGuid = NV_ENC_H264_PROFILE_MAIN_GUID
- enablePTD = 0
- gopLength = 1;
- idrPeriod = NVENC_INFINITE_GOPLENGTH
- frameIntervalP = 0
- rateControlMode = NV_ENC_PARAMS_RC_CONSTQP;
- constQP.qpIntra = 0;
- constQP.qpInterB = 0;
- constQP.qpInterP = 0;
- pictureType = NV_ENC_PIC_TYPE_I
- encodePicFlags = NV_ENC_PIC_FLAG_FORCEINTRA
- refPicFlag = 1
- displayPOCSyntax = framCnt (Incremental)