Error occurred while saving object to jpg file in Deepstream 6.2 SDK

Please provide complete information as applicable to your setup.

**• Hardware Platform (Jetson / GPU): Orin NX
**• DeepStream 6.2
**• JetPack Version 5.1
**• TensorRT Version 8.5.2.2
**• NVIDIA GPU Driver Version: Orin NX
**• Issue Type: Question

We develop application using Deepstream 6.2 SDK on Orin NX.
For saving images, we use object encode API - nvds_obj_enc_process().
Once we run this app, error message is out, the app is stopped.
Error log as below:
nvll_batch_jpeg_enc: Failed to set gpu-id with error: cudaErrorInvalidDevice

What does this meesage mean? How can I fix it?

By the way, this method works when we develop app on previous Deepstream 6.1.1/Orin AGX.

There is some change in DS6.2. The interface nvds_obj_enc_create_context() is changed to nvds_obj_enc_create_context(int gpu_id).

https://docs.nvidia.com/metropolis/deepstream/dev-guide/sdk-api/group__ee__object__encoder.html#gaf407b6afb535e8a671c5c9ffd7400124

Please refer to /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps/deepstream-image-meta-test for more details.

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