Example Graph for Jetson Nano Orin CSI camera?

• Hardware Platform (Jetson / GPU)
Jetson Orin Nano 8GB Dev Kit

• DeepStream Version
7.0

• JetPack Version (valid for Jetson only)
6.0

• TensorRT Version
8.6.2

• Issue Type( questions, new requirements, bugs)
I want a Graph Composer graph example that uses the Jetson’s onboard CSI camera as input. The reference test graphs tend to crash after a few frames (deepstream-test1 and test2). There does not appear to be any references for CSI inputs. Thanks!

• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
Run the test graphs with a stock install of JP6, DS7 and Graph Composer 4.0 on the Jetson. Jetson is the gxf_server, Windows 10 or Ubuntu 22 is the client.

What kind of CSI camera? The Argus API supported CSI camera( Accelerated GStreamer — NVIDIA Jetson Linux Developer Guide 1 documentation)or the ordinary CSI camera which only support V4L2 APIs?

The NvDsCameraSrcInput extension can be used as the source input.

Thanks. I am using standard Pi HQ camera (tested and working with JP6 after resistor removal). It is on /dev/video0.

Whenever I attempt to run with Camera Source Input with the device, I get an error. I get it if I run remotely or locally.

Thoughts?

xxxx@jetson-orin-nano:~/graphs$ /opt/nvidia/graph-composer/execute_graph.sh test_csi.yaml  -d target_aarch64.yaml
Graphs: test_csi.yaml
Target: target_aarch64.yaml
===================================================================
Running test_csi.yaml
===================================================================
[INFO] Writing manifest to /tmp/ds.test_csi/manifest.yaml
2024-06-25 10:28:28,755 - Registry - INFO - Installing graph ...
2024-06-25 10:28:28,785 - Registry - INFO -
Requested target configuration:
  arch: aarch64 os: linux distribution: ubuntu_22.04 cuda: 12.2 cudnn: 8.9.4 tensorrt: 8.6.2 deepstream: 7.0 vpi: 3.1.5

Selected extension variants:
NvDsInterfaceExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0
StandardExtension
  Version: 2.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 cuda: 12.2
MultimediaExtension
  Version: 2.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04
NvDsBaseExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0
NvDsMuxDemuxExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0
NvDsOutputSinkExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0
NvDsVisualizationExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0
HttpExtension
  Version: 0.4.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04
NvDsSourceExt
  Version: 1.5.0 Variant: arch: aarch64 os: linux distribution: ubuntu_22.04 deepstream: 7.0

Graph installed to output directory
2024-06-25 10:28:34.484 INFO  gxf/gxe/gxe.cpp@183: Creating context
2024-06-25 10:28:34.630 INFO  gxf/gxe/gxe.cpp@108: Loading app: '/home/user/graphs/test_csi.yaml'
2024-06-25 10:28:34.631 INFO  gxf/std/yaml_file_loader.cpp@174: Loading GXF entities from YAML file '/home/user/graphs/test_csi.yaml'...
2024-06-25 10:28:34.634 INFO  gxf/gxe/gxe.cpp@272: Initializing...
2024-06-25 10:28:34.656 INFO  extensions/nvdsbase/nvds_scheduler.cpp@272: This program is linked against GStreamer 1.20.3

2024-06-25 10:28:34.657 INFO  extensions/nvdsmuxdemux/nvstreammux.hpp@27: initialize: nvstreammux Stream Muxer10

2024-06-25 10:28:34.658 INFO  extensions/nvdsvisualization/nvosdbin.hpp@24: initialize: nvosdbin On Screen Display21

2024-06-25 10:28:34.658 INFO  extensions/nvdsoutputsink/nvvideorenderersinkbin.hpp@24: initialize: nvvideorenderersinkbin NVidia Video Renderer27

2024-06-25 10:28:34.659 INFO  extensions/nvdssource/nvcamerasrcbin.hpp@23: initialize: nvcamerasrcbin Camera Source Input34

2024-06-25 10:28:34.659 INFO  gxf/gxe/gxe.cpp@279: Running...
2024-06-25 10:28:34.659 INFO  extensions/nvdsbase/nvds_scheduler.cpp@120: Scheduling 4 elements and 0 components
2024-06-25 10:28:34.659 INFO  extensions/nvdsmuxdemux/nvstreammux.hpp@37: create_element: nvstreammux Stream Muxer10

2024-06-25 10:28:34.680 INFO  extensions/nvdsmuxdemux/nvstreammux.hpp@61: bin_add: nvstreammux Stream Muxer10

2024-06-25 10:28:34.680 INFO  extensions/nvdsvisualization/nvosdbin.hpp@32: create_element: nvosdbin On Screen Display21

2024-06-25 10:28:34.777 INFO  extensions/nvdsvisualization/nvosdbin.hpp@56: bin_add: nvosdbin On Screen Display21

2024-06-25 10:28:34.777 INFO  extensions/nvdsoutputsink/nvvideorenderersinkbin.hpp@32: create_element: nvvideorenderersinkbin NVidia Video Renderer27

2024-06-25 10:28:34.777 INFO  extensions/nvdsoutputsink/nvvideorenderersinkbin.hpp@54: bin_add: nvvideorenderersinkbin NVidia Video Renderer27

2024-06-25 10:28:34.777 INFO  extensions/nvdssource/nvcamerasrcbin.hpp@31: create_element: nvcamerasrcbin Camera Source Input34

2024-06-25 10:28:34.778 INFO  extensions/nvdssource/nvcamerasrcbin.hpp@49: bin_add: nvcamerasrcbin Camera Source Input34

Running...
****** NvDsScheduler Runtime Keyboard controls:
p: Pause pipeline
r: Resume pipeline
q: Quit pipeline
2024-06-25 10:28:34.880 INFO  extensions/nvdsbase/nvds_scheduler.cpp@400: NvDsScheduler Pipeline ready

2024-06-25 10:28:34.881 ERROR extensions/nvdsbase/nvds_scheduler.cpp@314: Error from /GstPipeline:NvDsScheduler-Pipeline/GstDsNvCameraSrcBin:Camera Source Input/Camera Source Input34/GstV4l2Src:src_elem: Internal data stream error.
2024-06-25 10:28:34.881 INFO  extensions/nvdsbase/nvds_scheduler.cpp@385: NvDsScheduler Pipeline running
2024-06-25 10:28:34.881 ERROR extensions/nvdsbase/nvds_scheduler.cpp@316: Debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:NvDsScheduler-Pipeline/GstDsNvCameraSrcBin:Camera Source Input/Camera Source Input34/GstV4l2Src:src_elem:
streaming stopped, reason not-negotiated (-4)

nvstreammux: Successfully handled EOS for source_id=0
Returned, stopping playback
Deleting pipeline
2024-06-25 10:28:34.891 INFO  gxf/gxe/gxe.cpp@301: Deinitializing...
2024-06-25 10:28:34.891 INFO  gxf/gxe/gxe.cpp@309: Destroying context
2024-06-25 10:28:34.892 INFO  gxf/gxe/gxe.cpp@315: Context destroyed.
*******************************************************************
End test_csi.yaml
*******************************************************************
[INFO] Graph installation directory /tmp/ds.test_csi and manifest /tmp/ds.test_csi/manifest.yaml retained

Can you answer the question?

Sorry. I am still learning things. I switched from V4L2 to the nvargus setting and it appears to work.

Glad to hear that!

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