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.
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
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.
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 ...
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.