How to incorporate nvarguscamerasrc sensor_id argument in DeepStream pipeline

• Hardware Platform -Jetson
• DeepStream 5.1
**• JetPack Version 4.5.1 **
**• Question **


Me and my team recently developed a custom sensor driver for our own image sensor and it is working using gst-launch-1.0 and v4l2-src.
Now, we would like to use one of our own custom DeepStream pipelines to work with our sensor. This pipeline works with the Raspberry Pi Cam v2 using CSI also.

However, our pipeline does not work with our sensor and fails to capture video.

One thing we have noticed is that, when using gst-launch-1.0, we can only capture video from this sensor using “nvarguscamerasrc sensor_id=1”. If we do not specify sensor_id, the capture fails. So, is there a way I can add this to my python DeepStream pipeline?

Thanks for your help!

There is no python code for reference. Please refer to C code in


And check create_camera_source_bin(), set_camera_csi_params()

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