NvVideoEncoder hang with B-Frames

I have problem with NvVideoEncoder class. When i enable b-frames (with h264) encoding encoder is making 1-2 frames and hang.

I use setNumBFrames method while configure encoder.

SDK Ver. 32.1

I have not problem with b-frames on 28.2. My app code is same.

Please share a command to reproduce the issue.


if i’m setting number of b-frames 0-2, encoder work. Why this resrtiction?

B-frame number <=2 is limitation in the release. We suggest you set B-frame=1 and B-frame=2 and see which meets your requirement in video quality and bitrate.