Running sample deepstream-rtsp-in-rtsp-out but cannot acess RTSP stream

Please provide complete information as applicable to your setup.

• Hardware Platform : dGPU
• DeepStream Version: 7.0
• TensorRT Version: 8.6.1.6
**• NVIDIA GPU Driver Version: 555.58.02 **
• Issue Type: bugs

I tried running deepstream-rtsp-in-rtsp-out example from deepstream but unable to acess RTSP stream. I have tried changing port to 8555 but it doesnt work.

Below is my command:

gst-launch-1.0 uridecodebin uri=rtsp://127.0.0.1:8555/ds-test ! nvvideoconvert ! autovideosink

Output:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://127.0.0.1:8555/ds-test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Unhandled error
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6795): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Service Unavailable (503)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...

When i tried to connect using VLC, my pipeline show:

sys:1: Warning: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt

Other sample app still work

  1. from the error, it is because “Service Unavailable”. are you testing in docker or host? can you play on the same docker container or host? wondering if it is network issue.
  2. can VLC play well?

i dont use docker, im playing from the same host and VLC doesnt work.

  1. could you share the DeepStream log? wondering if there is any error information.
  2. if using nvelgglessink instead of rtsp out sink, is the output video fine?

Yes using nvelgglessink instead works. Here is my Deepstream log.
log.txt (31.5 KB)
There is a warning from deeepstream when i open vlc to connect to my RTSP stream
sys:1: Warning: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'

I also tried this pipeline from AV Sync in Deepstream but still play my stream with both VLC and Gstreamer

gst-launch-1.0 uridecodebin3 uri=$input1 name=demux1 ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_0 nvstreammux batch-size=2 batched-push-timeout=33333 width=   1920 height=1080 sync-inputs=1 name=mux1 ! queue ! nvmultistreamtiler width=480 height=360 ! nvrtspoutsinkbin name=r uridecodebin3 uri=$input2 name=demux2  ! queue ! nvvideoconvert ! "video/x-raw(memory:NVMM)" ! mux1.sink_1 demux1. ! queue ! audioconvert ! mixer.sink_0 audiomixer name=mixer ! queue ! r.  demux2. ! queue ! audioconvert ! mixer. fakesrc num-buffers=0 is-live=1 ! mixer. -e

 *** r: Launched RTSP Streaming at rtsp://localhost:8554/ds-test ***

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Redistribute latency...
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
Redistribute latency...
Redistribute latency...0,0 %)
INFO:00.1 / 0:20:42.7 (0,0 %)
gstnvtiler.cpp(182): gst_nvmultistreamtiler_sink_event (): /GstPipeline:pipeline0/GstNvMultiStreamTiler:nvmultistreamtiler0:
Configuration 1x2

Redistribute latency...
0:00:43.1 / 0:20:42.7 (3,5 %)
(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:48:54.386: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'

(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:48:54.386: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'

(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:48:54.386: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'
0:02:41.7 / 0:20:42.7 (13,0 %)
(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:50:52.886: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'

(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:50:52.886: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'

(gst-launch-1.0:77974): GLib-GObject-WARNING **: 09:50:52.886: g_object_get_is_valid_property: object class 'GstUDPSrc' has no property named 'pt'
0:03:02.7 / 0:20:42.7 (14,7 %)

This is my gstreamer pipeline to play the stream:

gst-launch-1.0 rtspsrc location=rtsp://localhost:8554/ds-test ! decodebin ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Pipeline is PREROLLED ...
Prerolled, waiting for progress to finish...
Progress: (connect) Connecting to rtsp://localhost:8554/ds-test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:20.159905691 79516 0x561fedbcdb00 WARN                 rtspsrc gstrtspsrc.c:6795:gst_rtspsrc_send:<rtspsrc0> error: Unhandled error
0:00:20.159926573 79516 0x561fedbcdb00 WARN                 rtspsrc gstrtspsrc.c:6795:gst_rtspsrc_send:<rtspsrc0> error: Service Unavailable (503)
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Unhandled error
Additional debug info:
../gst/rtsp/gstrtspsrc.c(6795): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Service Unavailable (503)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:20.160003825 79516 0x561fedbcdb00 WARN                 rtspsrc gstrtspsrc.c:8216:gst_rtspsrc_open:<rtspsrc0> can't get sdp
0:00:20.160012941 79516 0x561fedbcdb00 WARN                 rtspsrc gstrtspsrc.c:6227:gst_rtspsrc_loop:<rtspsrc0> we are not connected
Freeing pipeline ...

from your test, using uridecodebin3 succeeded, but using uridecodebin and rtspsrc faied.

  1. please refer to this faq. you can dump the pipeline graph to compare.
  2. please make sure 8555 port is not taken by other applications. please play the rtsp when the deepstream did not exit.

I made a mistake. I tried to say that it still not play with both VLC and Gstreamer. But i saw a error by enabling GST_DEBUG = 3

0:00:35.156063853 234203 0x7fbb9c0111e0 WARN               rtspmedia rtsp-media.c:3594:wait_preroll: failed to preroll pipeline
0:00:35.156097153 234203 0x7fbb9c0111e0 WARN               rtspmedia rtsp-media.c:3964:gst_rtsp_media_prepare: failed to preroll pipeline
0:00:35.156514207 234203 0x7fbb9c0111e0 ERROR             rtspclient rtsp-client.c:1087:find_media: client 0x5d872cba2110: can't prepare media
0:00:35.156603923 234203 0x7fbb9c0111e0 ERROR             rtspclient rtsp-client.c:3093:handle_setup_request: client 0x5d872cba2110: media '/ds-test' not found

I wrote a custom pipeline base on the code from deepstream-rtsp-in-rtsp-out and it also have the same error here is my custom pipeline graph:

output_dot.txt (50.7 KB)

It seems that from the source of deepstream-rtsp-in-rtsp-out, ip is not set to 127.0.0.1. I change the IP and i can read the stream with ffmpeg and opencv. Some how VLC still cannot read stream.

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