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

**URL:** <https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718>\
**Category:** DeepStream SDK\
**Tags:** jetson-nano\
**Created:** [November 14, 2022, 7:59am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718 "2022-11-14T07:59:02Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 14, 2022, 7:59am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/1 "2022-11-14T07:59:02Z")

</div>

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](https://forums.developer.nvidia.com/uploads/short-url/7jb0bfA5PyccZA7UG2l5midDIVw.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

```

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [November 14, 2022, 8:35am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/2 "2022-11-14T08:35:22Z")

</div>

Seems the decoder reaches its limit, please refer to table [Jetson Modules, Support, Ecosystem, and Lineup | NVIDIA Developer](https://developer.nvidia.com/embedded/jetson-modules).  
You may use gst-launch-1.0 to check how many streams your nano can handle.

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 14, 2022, 9:37am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/4 "2022-11-14T09:37:55Z")

</div>

but in Jetson AGX Orin 64GB also same problem occurs

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 14, 2022, 9:42am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/5 "2022-11-14T09:42:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 14, 2022, 9:46am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/6 "2022-11-14T09:46:10Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 14, 2022, 9:55am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/7 "2022-11-14T09:55:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 14, 2022, 10:04am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/8 "2022-11-14T10:04:40Z")

</div>

it doesn’t crash, simply exit

[log.txt](https://forums.developer.nvidia.com/uploads/short-url/rZtAEmXj0euOuUbsXP1axe4ITFJ.txt) (151.0 KB)

---

<div class="post-metadata">

**Author:** ![yingliu](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/yingliu/32/136703_2.png) [@yingliu](https://forums.developer.nvidia.com/u/yingliu)\
**Post date:** [November 14, 2022, 2:07pm UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/9 "2022-11-14T14:07:54Z")

</div>

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

```auto
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?

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 15, 2022, 5:24am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/10 "2022-11-15T05:24:16Z")

</div>

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](https://forums.developer.nvidia.com/uploads/short-url/rCgq515JgHEnF21o0HsOo6HWxSk.txt) (2.9 KB)

[log.txt](https://forums.developer.nvidia.com/uploads/short-url/3AqlL6AYajyF06LIFg8wlIPWwPr.txt) (118.9 KB)

same error occurs, how to resolve this?

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 15, 2022, 5:54am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/12 "2022-11-15T05:54:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 15, 2022, 6:04am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/13 "2022-11-15T06:04:45Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 15, 2022, 6:21am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/14 "2022-11-15T06:21:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 15, 2022, 1:30pm UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/15 "2022-11-15T13:30:00Z")

</div>

1. resolution - 960×1080, fps -25

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

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 15, 2022, 1:50pm UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/16 "2022-11-15T13:50:30Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 16, 2022, 5:53am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/17 "2022-11-16T05:53:34Z")

</div>

ok  
thank you sir,  
I got it

---

<div class="post-metadata">

**Author:** ![fanzh](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/fanzh/32/115955_2.png) [@fanzh](https://forums.developer.nvidia.com/u/fanzh)\
**Post date:** [November 18, 2022, 9:40am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/18 "2022-11-18T09:40:18Z")

</div>

Is this still an issue to support? Thanks

---

<div class="post-metadata">

**Author:** ![gowtham2](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@gowtham2](https://forums.developer.nvidia.com/u/gowtham2)\
**Post date:** [November 18, 2022, 10:09am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/19 "2022-11-18T10:09:32Z")

</div>

No issues

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [December 2, 2022, 10:09am UTC](https://forums.developer.nvidia.com/t/cant-able-able-run-more-than-12-stream-in-deepstream/233718/20 "2022-12-02T10:09:36Z")

</div>

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