@oviano: If you checkout the 8.2.15.5 tag, you will see that inside nvEncodeAPI.h the version is still 8.1 . So the issue still exists, and probably is in the driver that still reports 8.1
#define NVENCAPI_MAJOR_VERSION 8
#define NVENCAPI_MINOR_VERSION 1
#define NVENCAPI_VERSION (NVENCAPI_MAJOR_VERSION | (NVENCAPI_MINOR_VERSION << 24))
Commit from 11/11/2018 https://github.com/FFmpeg/nv-codec-headers/commit/fd0669486c35d1c62be3442f73025ebac28df928 changes the version for cuvid and nvenc to 8.2 but it seems driver still replies at call NvEncodeAPIGetMaxSupportedVersion with 8.1
err = dl_fn->nvenc_dl->NvEncodeAPIGetMaxSupportedVersion(&nvenc_max_ver);
if (err != NV_ENC_SUCCESS)
return nvenc_print_error(avctx, err, "Failed to query nvenc max version");
av_log(avctx, AV_LOG_VERBOSE, "Loaded Nvenc version %d.%d\n", nvenc_max_ver >> 4, nvenc_max_ver & 0xf);
if ((NVENCAPI_MAJOR_VERSION << 4 | NVENCAPI_MINOR_VERSION) > nvenc_max_ver) {
av_log(avctx, AV_LOG_ERROR, "Driver does not support the required nvenc API version. "
"Required: %d.%d Found: %d.%d\n",
NVENCAPI_MAJOR_VERSION, NVENCAPI_MINOR_VERSION,
nvenc_max_ver >> 4, nvenc_max_ver & 0xf);
nvenc_print_driver_requirement(avctx, AV_LOG_ERROR);
return AVERROR(ENOSYS);
}
or there is an error in the handling of the replied value in ffmpeg source, which for my understanding of the code, I don’t find one.