Hello,
Fairly new to deepstream app and running apps on the Jetson Orin Nano. I got the following error while attempting to run the Deepstream_imagedata-multistream.py with the below app commands. It seems to create the pipelines but fails at the end. I‘m not sure what’s causing the failure considering, I was able to run “python3 deepstream_test_1_usb.py” without any issue including changing to a Yolo model instead.
Thank you for your help and time.
SA
Commands:
python3 deepstream_imagedata-multistream.py v4l2:///dev/video0 v4l2:///dev/video0 Frame1
python3 deepstream_imagedata-multistream.py rtsp://127.0.0.1/video1 rtsp://127.0.0.1/video2 frames1
setup:
Jetpack 6.2.1
TensorRT 10.7.0.23
CUDA 12.6.85
Deepstream 7.1
python3 deepstream_imagedata-multistream.py rtsp://127.0.0.1/video1 frames1
Frames will be saved in frames1
Creating Pipeline
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-00
Creating source_bin 1
Creating source bin
source-bin-01
Creating Pgie
Creating nvvidconv1
Creating filter1
Creating tiler
Creating nvvidconv
Creating nvosd
Is it Integrated GPU? : 1
Creating nv3dsink
Atleast one of the sources is live
WARNING: Overriding infer-config batch-size 1 with number of sources 2
Adding elements to Pipeline
Linking elements in the Pipeline
Now playing…
1 : rtsp://127.0.0.1/video1
2 : rtsp://127.0.0.1/video2
Starting pipeline
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine open error
0:00:00.514783982 15231 0xaaaada688720 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2080> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine failed
0:00:00.514828046 15231 0xaaaada688720 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2185> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine failed, try rebuild
0:00:00.514843662 15231 0xaaaada688720 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2106> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: DLA requests all profiles have same min, max, and opt value. All dla layers are falling back to GPU
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b2_gpu0_int8.engine opened error
0:02:31.320766415 15231 0xaaaada688720 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2133> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b2_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 3
0 INPUT kFLOAT input_1:0 3x544x960 min: 1x3x544x960 opt: 2x3x544x960 Max: 2x3x544x960
1 OUTPUT kFLOAT output_cov/Sigmoid:0 4x34x60 min: 0 opt: 0 Max: 0
2 OUTPUT kFLOAT output_bbox/BiasAdd:0 16x34x60 min: 0 opt: 0 Max: 0
0:02:31.701904451 15231 0xaaaada688720 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus: [UID 1]: Load new model:dstest_imagedata_config.txt sucessfully
Decodebin child added: source
Decodebin child added: source
**PERF: {‘stream0’: 0.0, ‘stream1’: 0.0}
Error: gst-resource-error-quark: Could not open resource for reading and writing. (7): ../gst/rtsp/gstrtspsrc.c(8130): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstBin:source-bin-01/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Failed to connect. (Generic error)
Exiting app
python3 deepstream_imagedata-multistream.py v4l2:///dev/video0 v4l2:///dev/video0 Frame1
Frames will be saved in Frame1
Creating Pipeline
Creating streamux
Creating source_bin 0
Creating source bin
source-bin-00
Creating source_bin 1
Creating source bin
source-bin-01
Creating Pgie
Creating nvvidconv1
Creating filter1
Creating tiler
Creating nvvidconv
Creating nvosd
Is it Integrated GPU? : 1
Creating nv3dsink
WARNING: Overriding infer-config batch-size 1 with number of sources 2
Adding elements to Pipeline
Linking elements in the Pipeline
Now playing…
1 : v4l2:///dev/video0
2 : v4l2:///dev/video0
Starting pipeline
Setting min object dimensions as 16x16 instead of 1x1 to support VIC compute mode.
WARNING: Deserialize engine failed because file path: /opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine open error
0:00:00.162317886 17415 0xaaab27fcc330 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::deserializeEngineAndBackend() <nvdsinfer_context_impl.cpp:2080> [UID = 1]: deserialize engine from file :/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine failed
0:00:00.162362783 17415 0xaaab27fcc330 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::generateBackendContext() <nvdsinfer_context_impl.cpp:2185> [UID = 1]: deserialize backend context from engine from file :/opt/nvidia/deepstream/deepstream-7.1/sources/deepstream_python_apps-1.2.0/apps/deepstream-imagedata-multistream/../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine failed, try rebuild
0:00:00.162376799 17415 0xaaab27fcc330 INFO nvinfer gstnvinfer.cpp:684:gst_nvinfer_logger: NvDsInferContext[UID 1]: Info from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2106> [UID = 1]: Trying to create engine from model files
WARNING: [TRT]: DLA requests all profiles have same min, max, and opt value. All dla layers are falling back to GPU
WARNING: Serialize engine failed because of file path: /opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b2_gpu0_int8.engine opened error
0:02:31.342004764 17415 0xaaab27fcc330 WARN nvinfer gstnvinfer.cpp:681:gst_nvinfer_logger: NvDsInferContext[UID 1]: Warning from NvDsInferContextImpl::buildModel() <nvdsinfer_context_impl.cpp:2133> [UID = 1]: failed to serialize cude engine to file: /opt/nvidia/deepstream/deepstream-7.1/samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b2_gpu0_int8.engine
INFO: [FullDims Engine Info]: layers num: 3
0 INPUT kFLOAT input_1:0 3x544x960 min: 1x3x544x960 opt: 2x3x544x960 Max: 2x3x544x960
1 OUTPUT kFLOAT output_cov/Sigmoid:0 4x34x60 min: 0 opt: 0 Max: 0
2 OUTPUT kFLOAT output_bbox/BiasAdd:0 16x34x60 min: 0 opt: 0 Max: 0
0:02:31.722399542 17415 0xaaab27fcc330 INFO nvinfer gstnvinfer_impl.cpp:343:notifyLoadModelStatus: [UID 1]: Load new model:dstest_imagedata_config.txt sucessfully
Decodebin child added: source
Decodebin child added: decodebin0
Decodebin child added: source
Decodebin child added: decodebin1
**PERF: {‘stream0’: 0.0, ‘stream1’: 0.0}
In cb_newpad
Error: Decodebin did not pick nvidia decoder plugin.
In cb_newpad
Error: Decodebin did not pick nvidia decoder plugin.
Error: gst-resource-error-quark: Device ‘/dev/video0’ is busy (4): ../sys/v4l2/gstv4l2object.c(4033): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstBin:source-bin-01/GstURIDecodeBin:uri-decode-bin/GstV4l2Src:source:
Call to S_FMT failed for YUYV @ 2560x1472: Device or resource busy
Exiting app****strong text