B frame support in HEVC

Hello,

I am working on Windows 7 and using NVIDIA Quadro M4000 device for HEVC Encoding.

I am using ffmpeg 4.2 sdk for NVIDIA HEVC encoding.

I used pix_fmt = AV_PIX_FMT_0RGB32 for encoding the HEVC. It is working fine on my pc.

My problem is when I try add b frame video encoder crashed.

Note:I did not set profile,level,tier.

Should you help me please how can we add b frame in encoder?

Thank You,
Dhrumil Sheth

Hi Dhrumil,

As per “NVENC_Application_Note.pdf” from Video Codec SDK 9.0, HEVC B frame is supported in Turing GPUs (except TU117). B frame HEVC encoding is not expected to work on Quadro M4000. You can query for the B frame support using “NV_ENC_CAPS_NUM_MAX_BFRAMES” and enable the B frame if this value is non zero. This will help you build generic application that runs across GPU generations.

My problem is when I try add b frame video encoder crashed.
Can you elaborate more on what this crash is? Application should exit gracefully and not crash.
It is a bug if that is not happening.

Thanks.