Welcome to IMX 415 Camera Module repository
2.1.DeepStream environment
DeepStream Environment Setup
- DeepStream Environment Setup
This tutorial applies to the Jetson Orin NX with JetPack 7.2.1 / Ubuntu 24.04 / L4T R39.2 / CUDA 13.2. The relevant environment is already set up on the factory system, so this tutorial can be skipped.
1. Pre-installation Check
First confirm that the system is on the JetPack 7.2.1 baseline, and check the TensorRT dependencies. DeepStream 9.1 requires CUDA 13.2 and TensorRT 10.16; if 10.16.2 is not present, you need to install TensorRT version 10.16.2.
cat /etc/os-release
dpkg-query -W -f='${Package} ${Version}\n' \
nvidia-l4t-core libnvinfer10 libnvonnxparsers10 libnvinfer-plugin10
df -h /
The target machine version actually verified in this course:
Ubuntu 24.04.4 LTS
L4T R39.2.1
CUDA 13.2
TensorRT 10.16.2
Reserve at least 5 GB of root partition space before installation; more space is needed later when downloading advanced models and building TensorRT engines.
2. Download the DeepStream 9.1 Package
The DeepStream 9.1 Jetson arm64 package is published on the NVIDIA official GitHub Release. Downloading with multiple connections via aria2c is recommended.
cd /tmp
aria2c -x 16 -s 16 -k 1M \
https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.deb
If aria2c is not available:
wget https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.deb
Verify the download:
ls -lh /tmp/deepstream-9.1_9.1.0-1_arm64.deb
3. Install the TensorRT 10.x Dependencies
DeepStream 9.1 requires TensorRT 10.x, while JetPack 7.2.1 defaults to 11.x
sudo apt update
sudo apt install -y \
libnvinfer10=10.16.2.10-1+cuda13.2 \
libnvonnxparsers10=10.16.2.10-1+cuda13.2 \
libnvinfer-plugin10=10.16.2.10-1+cuda13.2
Verify the installation:
dpkg -l | grep libnvinfer10
# Expected output: ii libnvinfer10 10.16.2.10-1+cuda13.2
4. Install DeepStream 9.1
sudo dpkg -i /tmp/deepstream-9.1_9.1.0-1_arm64.deb
sudo apt install -f -y
Verify the installation:
dpkg -l | grep deepstream
# Expected output: ii deepstream-9.1 9.1.0-1 arm64
Configure DeepStream:
sudo dpkg --configure deepstream-9.1
5. Verify the Installation
Check the DeepStream, CUDA, and TensorRT versions:
deepstream-app --version-all
Expected to include:
deepstream-app version 9.1.0
DeepStreamSDK 9.1.0
CUDA Driver Version: 13.2
CUDA Runtime Version: 13.2
TensorRT Version: 10.16
cuDNN Version: 9.27
libNVWarp360 Version: 2.0.1d3

In general, if cuDNN is shown as unavailable this is a display bug and it actually works. If you want the cuDNN version to be displayed as in the figure, you need to
sudo apt install libcudnn9-dev-cuda-13
Check the package status and the core GStreamer plugins:
dpkg-query -W -f='${Status} ${Version}\n' deepstream-9.1
gst-inspect-1.0 nvinfer >/dev/null && echo "nvinfer OK"
gst-inspect-1.0 nvstreammux >/dev/null && echo "nvstreammux OK"
gst-inspect-1.0 nvv4l2decoder >/dev/null && echo "hardware decoder plugin OK"
5. Run the Basic Video Detection Case
This case uses the traffic video and TrafficCamNet included with DeepStream; the terminal continuously outputs the number of vehicles and people in each frame.
cd /opt/nvidia/deepstream/deepstream-9.1/sources/apps/sample_apps/deepstream-test1
sudo deepstream-test1-app dstest1_config.yml
The full path of the test video is:
/opt/nvidia/deepstream/deepstream-9.1/samples/streams/sample_720p.h264
Success indicators:
Frame Number = 0 Number of objects = ... Vehicle Count = ... Person Count = ...
...
End of stream
Returned, stopping playback
Deleting pipeline

The following information appearing on the first run is normal:
Deserialize engine failed
Trying to create engine from model files
This means that there is no corresponding TensorRT engine on the device yet, and DeepStream is building an engine from the ONNX model. The first build will be slower.
If failed to serialize cuda engine to file appears, it is usually because the ordinary user does not have write permission for /opt/nvidia/deepstream/.../samples/models; the current inference can still proceed normally, but the engine may be rebuilt on subsequent startups.
6. USB and CSI Camera Detection
Run in a graphical desktop, VNC, or RDP session. Pure SSH has no display environment and cannot verify the nv3d-sink graphical output.
6.1 USB Camera
You can first confirm the camera node:
ls -l /dev/video*
Orin NX: enter the following commands to preview
cd ~/deepstream_tao_demo
./run_camera_preview.sh usb
./run_case.sh peoplenet usb
Orin NANO: enter the following commands to preview
cd /opt/nvidia/deepstream/deepstream-9.1/samples/configs/deepstream-app
sudo deepstream-app -c source1_usb_dec_infer_resnet.txt
The preview script selects the resolution and frame rate according to the formats actually supported by the camera. If not-negotiated appears, do not manually modify multiple templates again; using this entry point avoids inconsistency in nodes, resolution, or frame rate.
6.2 CSI Camera
Orin NX: enter the following commands to preview
cd ~/deepstream_tao_demo
./run_camera_preview.sh csi
./run_case.sh peoplenet csi
Orin NANO: enter the following commands to preview
cd /opt/nvidia/deepstream/deepstream-9.1/samples/configs/deepstream-app
sudo deepstream-app -c source1_csi_dec_infer_resnet.txt
When CSI succeeds, the terminal lists the sensor modes supported by Argus and continuously outputs FPS. If Argus can recognize the sensor but the window goes black and then exits, check the CSI camera module, cable, and connector first; in this test, replacing the CSI camera made it run normally.
The CSI preview requests sensor-mode=3, wbmode=1, and exposure compensation 0 by default. If the current
nvarguscamerasrc has no sensor-mode property, then the 1920x1080@30 caps are used
to select the sensor mode. wbmode=3 is fluorescent white balance, not an exposure mode, and may cause a reddish or magenta tint under normal lighting.
7. Clean Up the Installation Package
After installation and verification are complete, you can delete the temporary installation package and download log in /tmp to avoid taking up space:
rm -f /tmp/deepstream-9.1_9.1.0-1_arm64.deb \
/tmp/deepstream-9.1_9.1.0-1_arm64.deb.aria2 \
/tmp/deepstream-9.1-download.log
Do not run sudo apt autoremove unless you have confirmed that the listed auto-installed packages are no longer used by other courses or projects.
8. FAQ
Problem 1: aria2c not found
Solution:
sudo apt install -y aria2
Problem 2: Dependency error
Solution:
sudo apt install -f -y
Problem 3: TensorRT version conflict
Ensure the correct version is installed:
dpkg -l | grep libnvinfer
# Expected output: libnvinfer10, not libnvinfer11