Hi everyone, I have a problem using nvEncInvalidateRefFrames
Win11+ NVSDK 12.2
NVIDIA GeForce RTX 4060 Laptop GPU
Driver version: 32.0.15.5599
Driver date: 2024/6/1
DirectX version: 12 (FL 12.1)
Code usage:
initializeParams.encodeConfig->encodeCodecConfig.hevcConfig.maxNumRefFramesInDPB = 7;
initializeParams.encodeConfig->encodeCodecConfig.hevcConfig.numRefL0 = NV_ENC_NUM_REF_FRAMES_7;|
NV_ENC_PIC_PARAMS pPicParams = { 0 };
pPicParams.inputTimeStamp = getTime();
enc.EncodeFrame(vPacket, &pPicParams);
For testing, after each encoding, I call
m_nvenc.nvEncInvalidateRefFrames(&m_hEncoder, pPicParams.inputTimeStamp)
But each call returns 5, which has no effect from the output code stream.
How should I solve it!