NVDEC decode failure for large H.264 frame sizes

Hello,

I am working on a C++ video application, and encounter a decode failure for H.264 frame sizes that exceed ~2 MB. I suspect the issue relates to a bitstream buffer overload within the NVDEC API. I am using an A16 GPU.

Any suggestions on how to solve this issue would be very appreciated.

Is it an I frame you are decoding that is 2 Megabytes?

Most commonly yes, but if there is a significant change in the video content it can occur otherwise

Can you extract one I frame with ffmpeg and attach here?
ffmpeg -i file.mp4 -frames:v 1 -c copy annexb.h264

Please also attach another example where it is not I frame. That would require -frames:v 10 at least I imagine.

Apologies for the delay. I’ve attached an mp4 file of a short input stream that involves decode fails (h264 does not appear to be an authorised file type on the forum). The first frame is a key frame that fails to decode, and the 3rd frame is a key frame that successfully decodes. Frames 4:10 are then standard frames that are successfully decoded. I noticed I incorrectly wrote that the decode fail occurs for frames that exceed ~2MB. I actually meant ~2Mb.

Thanks