nvEncInitializeEncoder now failing with error 8 when sliceMode is used

Hi,

All of of sudden, nvEncInitializeEncoder() calls throw an exception and fails with error 8 on my development PC. Same on my colleague’s PC.

We have not changed the source code (I’ve even tried to use a version compiled some month ago, which works flawlessly on all system).

We were using SDK 11.1.5, but updating our code to use the latest 12.2.72 doesn’t fix the issue.

I wonder whether there have been some changes at the OS (Windows) or NV drivers level ? Any idea ?

Thanks a lot !

[edit]: further investigation (read: trial/errors) has shown the issue comes from the “sliceMode” parameter (we use HEVC code).
When set to 0, the problem doesn’t occur, but when set to 1, with a max NALU size specified, the exception is raised:

encConfig.encodeCodecConfig.hevcConfig.sliceMode = 1;
encConfig.encodeCodecConfig.hevcConfig.sliceModeData = 65536;

Did I miss anything ?

I have the same issue and it works with drivers 556.12-desktop-win10-win11-64bit-international-dch-whql or older, new drivers from that do break that slice max size, also on Linux it seems to not happen.
Did you manage to solve the issue?