I have a Quadro P2000 graphics card,
I have using the example code to encode video with H265, https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_video.c
But it generates an error code of 542398533 in API of avcodec_open2(),
[hevc_nvenc @ 000001D866A68B80] No NVENC capable devices found
Find line number here : https://github.com/FFmpeg/FFmpeg/blob/master/doc/examples/encode_video.c#L127
To ensure P2000 supports H265, I have discussed this with Nvidia support and also try to run FFmpeg command line tool and encode video with H265, and it works like charm.
So after analysis, if everything works fine then there may be the problem with libraries/API’s of av (avcodec, avdevice, avfilter, avutil…). I have also tried with the latest library version of it from https://ffmpeg.zeranoe.com/builds/.
If anyone has any clue what’s going on, please suggest me.