Hi I’m trying to run the examples from the library on an Xavier AGX.
- Ubuntu 18.04 LTS
- Video Codec SDK 11
- Cuda compilation tools, release 10.2, V10.2.89
However I encounter an exception on the call:
NvEncoder::LoadNvEncApi()
{
uint32_t version = 0;
uint32_t currentVersion = (NVENCAPI_MAJOR_VERSION << 4) | NVENCAPI_MINOR_VERSION;
NVENC_API_CALL(NvEncodeAPIGetMaxSupportedVersion(&version));
if (currentVersion > version)
{
NVENC_THROW_ERROR("Current Driver Version does not support this NvEncodeAPI version, please upgrade driver", NV_ENC_ERR_INVALID_VERSION);
}
m_nvenc = { NV_ENCODE_API_FUNCTION_LIST_VER };
NVENC_API_CALL(NvEncodeAPICreateInstance(&m_nvenc));
}
I get the error:
GPU in use: Xavier
terminate called after throwing an instance of 'NVENCException'
what(): LoadNvEncApi : NvEncodeAPIGetMaxSupportedVersion(&version) returned error -678108180 at /home/agx/talos/src/talos_video/include/nvenc/NvEncoder.cpp:61
Aborted (core dumped)
The returned error is always a random negativ int.
Do you have any idea what might cause this behaviour?
Best regards
Michael