Rtsp stream not accessed jetson xavier

Not able to acess the rtsp feed from the IP camera using gstreamer

gst-launch-1.0 rtspsrc location=rtsp://admin:Admin@123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast ! fakesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:Admin@123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(7469): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Hello @maahe_sf,

I am going to tag this topic and move it to the Jetson Xavier category for you. There are Jetson support folks there to assist.

Cheers,
Tom K

“Admin@123” seems to be your password? Maybe that conflicts with the subsequent IP-Adress?

Hi,
Please try to put URI in ' ' like:

location='rtsp://admin:Admin@123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast'

gst-launch-1.0 rtspsrc location=‘rtsp://admin:Admin@123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast’ ! fakesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:Admin@123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(7469): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

gst-launch-1.0 rtspsrc location=‘rtsp://admin:Admin123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast’ ! fakesink
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:Admin123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(7469): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

same error even after removing @ from password
any help

sheel@sheel:~$ vlc
VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
[0000564474954570] main libvlc: Running vlc with the default interface. Use ‘cvlc’ to use vlc without interface.
[00005644749584e0] main playlist: playlist is empty
Created new TCP socket 34 for connection
Created new TCP socket 34 for connection
[00007f7c38001120] live555 demux error: Failed to connect with rtsp://192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast
[00007f7c38004b50] main stream error: connection failed: No route to host
[00007f7c38004b50] satip stream error: Failed to connect to RTSP server 192.168.1.65:554
[00007f7c38004b50] main stream error: connection failed: No route to host
[00007f7c38004b50] access_realrtsp stream error: cannot connect to 192.168.1.65:554

cant even stream using vlc

Looks like you are using a Hikvision camera? Does one of the following work?

location=‘rtsp://admin:Admin123@192.168.1.65:554/Streaming/Channels/101/

location=‘rtsp://admin:Admin123@192.168.1.65:554/Streaming/Channels/101/?transportmode=unicast&profile=Profile_1

1 Like

gst-launch-1.0 rtspsrc location=‘rtsp://admin:Admin123@192.168.1.65:554/Streaming/Channels/101/
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.
Additional debug info:
gstrtspsrc.c(7460): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
No valid RTSP URL was provided
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL
Freeing pipeline …

still notworking

$ gst-launch-1.0 rtspsrc location=‘rtsp://admin:Admin123@192.168.1.65:554/Streaming/1?tcp’
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://admin:Admin123@192.168.1.65:554/Streaming/1?tcp
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing.
Additional debug info:
gstrtspsrc.c(7469): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
ERROR: pipeline doesn’t want to preroll.
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

Looks like your RTSP-server/camera is not reachable from your Xavier - are your network settings correct?

Hi,
Please check with camera vendor to get valid URI in gstreamer. Since DeepStream SDK is based on gstreamer, have to let rtspsrc work with the source first.

pl check the debug logDebugLog.txt (6.5 MB)

A simple search for keyword “error” reveals what already has been mentioned:

0:00:00.094718670 e[334m 7767e[00m 0x560bffd0d2d0 e[33;01mWARN e[00m e[00m rtspsrc gstrtspsrc.c:7460:gst_rtspsrc_retrieve_sdp:e[00m error: No valid RTSP URL was provided

0:00:00.094793418 e[334m 7767e[00m 0x560bffd0d2d0 e[36mINFO e[00m e[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2145:gst_element_message_full_with_details:e[00m posting message: Resource not found.

0:00:00.095006866 e[334m 7767e[00m 0x560bffd0d2d0 e[36mINFO e[00m e[00;01;31;47m GST_ERROR_SYSTEM gstelement.c:2172:gst_element_message_full_with_details:e[00m posted error message: Resource not found.

ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Resource not found.

There is something wrong in your setup, most likely the camera is not reachable by Xavier through network or your RTSP-URL is wrong.

I am able to use the same rtsp url on window OS, it works fine but the same url gives error on ubuntu

Good to know that camera is working with Windows.
Now see my previous comment and check your (network) setup.

can you help in setting up the network?
As i dont know what difference is there in setup of Windows and Ubuntu 18.04

Sorry, but I can’t help you with that.

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