Can't able able run more than 12 stream in deepstream

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) - Jetson Nano
• DeepStream Version - 6.0
• JetPack Version (valid for Jetson only) - 4.6.1-b110
• TensorRT Version - 8.2.1.8
• NVIDIA GPU Driver Version (valid for GPU only) - 10.2
• Issue Type( questions, new requirements, bugs)
running deepstream python code with more than 12 streams I got following errors,
Error: gst-resource-error-quark: Unhandled error (9): gstrtspsrc.c(6161): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstBin:source-bin-12/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Service Unavailable (503)
• 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)
below code will help to reproduce the issue
deepstream_tiler.py (14.0 KB)

• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I need to run 36 streams in deepstream python

Seems the decoder reaches its limit, please refer to table Jetson Modules, Support, Ecosystem, and Lineup | NVIDIA Developer.
You may use gst-launch-1.0 to check how many streams your nano can handle.

but in Jetson AGX Orin 64GB also same problem occurs

could you share the whole logs? can you run four streams in deepstream?

able to run 12 stream in both jetson nano and Jetson AGX Orin 64GB. but can’t able to run more than 12 stream(ip cameras)

does it crash at the beginning or after a while? can you share the whole logs? please do “export GST_DEBUG=4”, then run again you can redirect the logs to a file.

it doesn’t crash, simply exit

log.txt (151.0 KB)

As checked via message, the Orin module you are using is 32GB module. The number of video decoder as:

Nano:
1x 4K60 | 2x 4K30 | 4x 1080p60 | 8x 1080p30 | 9x 720p60 (H.265 & H.264)

Orin:
1x 8K30 | 2x 4K60 | 4x 4K30 | 9x 1080p60| 18x 1080p30 (H.265)
1x 4K60 | 2x 4K30 | 5x 1080p60 | 11x 1080p30 (H.264)

Can you run multiple pipelines (“gst-lauch-1.0 uridecodebin uri=xx …”) to check whether the issue is caused by limit of decoder?

input:
gst-launch-1.0 uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0” uridecodebin uri=“rtsp://admin:Sieora123@192.168.1.108:554/cam/realmonitor?channel=1&subtype=0”

output:
output.txt (2.9 KB)

log.txt (118.9 KB)

same error occurs, how to resolve this?

gstrtspsrc.c(6563): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Service Unavailable (503)
ERROR: pipeline doesn’t want to preroll.

  1. As the log shown, the rtsp source can’t support 12 connecting.
  2. what is your rtsp source info? can you try gst-launch-1.0 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 uridecodebin uri=file:///opt/nvidia/deepstream/deepstream/samples/streams/sample_720p.mp4 … ?
    it should not be decoding issue if gst-launch-1.0 can decode 12 h264 files.

what is your rtsp source info?
I am using Dahua DVR for connecting ip cams, get rtsp urls

  1. I try it runs, gst-launch-1.0 can decode more than 12 h264 files, I tried up to 24 h264 files, it run without any error
  1. what is your rtsp source info? like resolution, fps.
  2. can your rtsp source support 12 rtsp connecting? from “Service Unavailable”, rtsp connecting failed.
  1. resolution - 960×1080, fps -25

  2. it support 12 rtsp stream, more than 12 I got following error “Service Unavailable”

it should be a limitation of the camera. you can use different RTSP source, or use gstreamer plugin tee to duplicate one stream to many streams.

ok
thank you sir,
I got it

Is this still an issue to support? Thanks

No issues

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