nvencodeapi64.dll Error in Windows 10 and 11: NVIDIA NVENC startup errors

A recording or export app opens but cannot initialize its NVIDIA encoder.
What this DLL does
64-bit NVIDIA hardware video encoding
Start with this check
Check the exact output codec and compare the app’s minimum driver and the GPU’s encoding capability.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Update to the NVIDIA driver supported by the recording app. Repair the app through its publisher if it still fails on a supported encoder profile.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Record or export a short clip with the original settings and play the output file through once.
For a related check, see avcodec-62.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: NVIDIA Video Codec SDK.