Rtsp input to deepstream_test_3.py not working

The rtsp stream can be viewed using VLC, but when used as the input to deepstream_test_3.py (included in deepstream apps), the following error occured:

Error: gst-resource-error-quark: Unhandled error (9): gstrtspsrc.c(6563): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstBin:source-bin-00/GstURIDecodeBin:uri-decode-bin/GstRTSPSrc:source:
Bad Request (400)
Exiting app

Also tried this: (rtsp address hidden)
!gst-launch-1.0 uridecodebin uri=rtsp://address ! nveglglessink
Got the following error:

ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Unhandled error
Additional debug info:
gstrtspsrc.c(6563): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Bad Request (400)

Information about the machine:
ā€¢ Hardware Platform (Jetson / GPU): Tesla V100
ā€¢ DeepStream Version: deepstream SDK 6.1
ā€¢ TensorRT Version: 8.4.1-1+cuda11.6
ā€¢ NVIDIA GPU Driver Version (valid for GPU only): 510.47.03

Could you provide us the rtsp source uri?

I am afraid I cannot share the rtsp uri as itā€™s confidential. I am wondering if there is a way to stop the deepstream (or gstreamer) to request response from the camera server. It seems that gst stop running when trying to retrieve info from the server.

The code actually works for one of my rtsp uri, and I compared the output for running

!gst-launch-1.0 uridecodebin uri=rtsp:address ! nveglglessink

The one works showing:

Setting pipeline to PAUSED ā€¦
Pipeline is live and does not need PREROLL ā€¦
Got context from element ā€˜eglglessink0ā€™: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp:address
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (open) Opened Stream
Setting pipeline to PLAYING ā€¦
New clock: GstSystemClock
Progress: (request) Sending PLAY request
Progress: (request) Sending PLAY request
Progress: (request) Sent PLAY request

But the one didnā€™t work, stopped after ā€œProgress: (open) Retrieving server optionsā€:

Setting pipeline to PAUSED ā€¦
Pipeline is live and does not need PREROLL ā€¦
Got context from element ā€˜eglglessink0ā€™: gst.egl.EGLDisplay=context, display=(GstEGLDisplay)NULL;
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp:address
Progress: (open) Retrieving server options
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source: Unhandled error
Additional debug info:
gstrtspsrc.c(6563): gst_rtspsrc_send (): /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Bad Request (400)
ERROR: pipeline doesnā€™t want to preroll.
Setting pipeline to PAUSED ā€¦
Setting pipeline to READY ā€¦
Setting pipeline to NULL ā€¦
Freeing pipeline ā€¦

Cause we cannot get the source, it may mainly depend on you to solve it. Also it seems that It is related to your RTSP stream configuration and GStreamer processing from the log Progress: (open) Retrieving server options. You can also check this problem from the gstreamer forums. Thanks

My problem is solved with the command: sudo apt remove gstreamer1.0-plugins-ugly

I saw this solution several times in other posts like this one and this one, but I didnā€™t try it because some people posted it didnā€™t work for them. I finally gave it a try, and it fixed my problem.

1 Like

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