How change resolution dynamically

Dear experts

I am working with Tesla M60 (the driver 398.75) and use NVENC. Every time my code changes the frame resolution GPU is crashed.
Is there a way to change resolution dynamically (“on-the-fly”)?


Yes, we do have a way to reconfigure NVENCODEAPI on fly. You need to use NvEncReconfigureEncoder for this. Please refer to section 8.3 in the NVENC programming guide inside the Video Codec SDK 8.2 package. The API is supported for H264 and HEVC, though there are certain limitations to this API which is also documented.

This API is illustrated in the sample application as well, in case you want to reuse the code for your product. Let us know if you need further assitance.

Ryan Park