Welcome to Jetson Orin NX Developer Kit repository
当製品の日本語版マニュアル資料は、こちらからご取得ください。
01.DeepStream environment
DeepStream environment setup
DeepStream environment setup1. Checks before the installation2. Download the DeepStream 9.1 installation package3. Install the TensorRT 10.x dependencies4. Install DeepStream 9.15. Verify the installation6. Run the basic video detection case7. USB and CSI camera detection7.1. USB camera7.2. CSI camera8. Clean up the installation package9. Common problemsProblem 1: aria2c cannot be foundProblem 2: dependency errorProblem 3: TensorRT version conflict
This tutorial applies to the Jetson Orin NX with JetPack 7.2.1 / Ubuntu 24.04 / L4T R39.2 / CUDA 13.2. The factory system already has the relevant environment set up, so this tutorial can be skipped.
1. Checks before the installation
First confirm that the system is already 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, the 10.16.2 version of TensorRT has to be installed.
cat /etc/os-releasedpkg-query -W -f='${Package} ${Version}\n' \ nvidia-l4t-core libnvinfer10 libnvonnxparsers10 libnvinfer-plugin10df -h /The version of the target machine actually verified in this course:
xxxxxxxxxxUbuntu 24.04.4 LTSL4T R39.2.1CUDA 13.2TensorRT 10.16.2Before the installation, reserve at least 5 GB of root partition space; more space is needed later when downloading the advanced models and building the TensorRT engines.
2. Download the DeepStream 9.1 installation package
The DeepStream 9.1 Jetson arm64 installation package is published in the official NVIDIA GitHub Release. Using aria2c for the multi-connection download is recommended.
xxxxxxxxxxcd /tmparia2c -x 16 -s 16 -k 1M \ https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.debIf you do not have aria2c:
xxxxxxxxxxwget https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.debVerify the download:
xxxxxxxxxxls -lh /tmp/deepstream-9.1_9.1.0-1_arm64.deb3. Install the TensorRT 10.x dependencies
DeepStream 9.1 requires TensorRT 10.x, while JetPack 7.2.1 defaults to 11.x
xxxxxxxxxxsudo apt updatesudo 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:
xxxxxxxxxxdpkg -l | grep libnvinfer10# It should show: ii libnvinfer10 10.16.2.10-1+cuda13.24. Install DeepStream 9.1
xxxxxxxxxxsudo dpkg -i /tmp/deepstream-9.1_9.1.0-1_arm64.debsudo apt install -f -yVerify the installation:
xxxxxxxxxxdpkg -l | grep deepstream# It should show: ii deepstream-9.1 9.1.0-1 arm64Configure DeepStream:
xxxxxxxxxxsudo dpkg --configure deepstream-9.15. Verify the installation
Check the versions of DeepStream, CUDA and TensorRT:
xxxxxxxxxxdeepstream-app --version-allIt is expected to contain:
xxxxxxxxxxdeepstream-app version 9.1.0DeepStreamSDK 9.1.0CUDA Driver Version: 13.2CUDA Runtime Version: 13.2TensorRT Version: 10.16cuDNN Version: 9.27libNVWarp360 Version: 2.0.1d3
In general, if cuDNN is shown as unavailable, that is a display bug and it actually works; if you want the cuDNN version to be displayed as in the image, you need
xxxxxxxxxxsudo apt install libcudnn9-dev-cuda-13 Confirm the status of the packages and of the core GStreamer plugins:
xdpkg-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"6. Run the basic video detection case
This case uses the traffic video and TrafficCamNet that come with DeepStream; the terminal continuously outputs the number of vehicles and people in each frame.
xxxxxxxxxxcd /opt/nvidia/deepstream/deepstream-9.1/sources/apps/sample_apps/deepstream-test1deepstream-test1-app dstest1_config.ymlThe full path of the test video is:
xxxxxxxxxx/opt/nvidia/deepstream/deepstream-9.1/samples/streams/sample_720p.h264Signs of success:
xxxxxxxxxxFrame Number = 0 Number of objects = ... Vehicle Count = ... Person Count = ......End of streamReturned, stopping playbackDeleting pipeline
The following message appearing on the first run is normal:
xxxxxxxxxxDeserialize engine failedTrying to create engine from model filesThis means that the corresponding TensorRT engine does not exist on the device yet, and DeepStream is building the engine from the ONNX model. The first build takes a while.
If failed to serialize cuda engine to file appears, it is usually because the normal user does not have the write permission for /opt/nvidia/deepstream/.../samples/models; this inference can still run normally, only the later startups may rebuild the engine.
7. USB and CSI camera detection
Run it in a graphical desktop, a VNC or an RDP session. A pure SSH session has no display environment, so the nv3d-sink graphical output cannot be verified.
7.1. USB camera
You can confirm the camera nodes first:
xxxxxxxxxxls -l /dev/video*Enter the following commands to preview
xxxxxxxxxxcd ~/deepstream_tao_demo./run_camera_preview.sh usb./run_case.sh peoplenet usb
The preview script selects the resolution and the frame rate according to the formats actually supported by the camera. If not-negotiated appears, do not manually modify several templates; using this entry point avoids an inconsistency of the node, the resolution or the frame rate.
7.2. CSI camera
xxxxxxxxxxcd ~/deepstream_tao_demo./run_camera_preview.sh csi./run_case.sh peoplenet csiWhen the CSI works, the terminal lists the sensor modes supported by Argus and continuously outputs the FPS. If Argus can recognize the sensor but the pop-up window is black and then exits, check the CSI camera module, the ribbon cable and the interface first; in the test of this time it ran normally after the CSI camera was replaced.
The CSI preview requests sensor-mode=3, wbmode=1 and an exposure compensation of 0 by default. If the current
nvarguscamerasrc has no sensor-mode property, then the 1920x1080@30 caps
is used to select the sensor mode. wbmode=3 is the white balance of the fluorescent lamp and not the exposure mode, and under the normal lighting it may cause a red or a magenta cast.
8. Clean up the installation package
After the installation and the verification are complete, you can delete the temporary installation package and the download log in /tmp so that they do not take up space:
xxxxxxxxxxrm -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.logDo not run sudo apt autoremove unless you have already confirmed that the automatically installed packages that are listed are no longer used by other courses or projects.
9. Common problems
Problem 1: aria2c cannot be found
Solution:
xxxxxxxxxxsudo apt install -y aria2Problem 2: dependency error
Solution:
xxxxxxxxxxsudo apt install -f -yProblem 3: TensorRT version conflict
Make sure the correct version is installed:
xxxxxxxxxxdpkg -l | grep libnvinfer# It should show libnvinfer10, not libnvinfer11