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