Is api NvMediaIEPBitsAvailable thread safe?

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.9.1.10844
other

Host Machine Version
native Ubuntu 18.04
other

We want to encode multi-stream camera videos at the same time.
Can we use the api NvMediaIEPBitsAvailable at different threads at the same time to do this?
https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/DRIVE_OS_Linux_SDK_Development_Guide/baggage/group__image__encode__api.html#ga78850cc1e678830c76dde74ae28cd3c9

Dear @liuq1,
NvMedia APIs are not thread safe. Please see
https://docs.nvidia.com/drive/drive-os-5.2.0.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_Development_Guide/archi_nvmedia.html#wwpID0EFHA

1 Like

Thanks @SivaRamaKrishnaNV
But we can use a single encoder to encode multiple video streams simultaneously, right?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.