Unable to figure gst-launch-1.0 with rtsp

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to figure gst-launch-1.0 with rtsp

NarutoKun
Hello All,

I have just starting learning GStreamer. I am trying to launch feeds from an IP Camera using the following pipeline.

gst-launch-1.0 rtspsrc location=rtsp://165.26.69.51/MediaInput/h264 ! decodebin ! videoscale ! ximagesink

and I see the following error message
Setting pipeline to PAUSED ...
Pileline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://165.26.79.51/MediaInput/h264
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing
Additional debug info:
gstrtspsrc.c(6183): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
Setting pipeline to PAUSED ..
setting pipeline to READY ..
Setting pipeline to NULL ...
Freeing pepeline ...

Would be great if you all could point out where I am making mistake
- is it a GStreamer package that I am missing
- wrong pipeline
- any material / link which could help me learn more about gst-launch-1.0 and rtsp

Thank you for your time
Reply | Threaded
Open this post in threaded view
|

Re: Unable to figure gst-launch-1.0 with rtsp

Arjen Veenhuizen
NarutoKun wrote
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://165.26.79.51/MediaInput/h264
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not open resource for reading and writing
Additional debug info:
gstrtspsrc.c(6183): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Failed to connect. (Generic error)
This indicates that your camera feed could actually not be opened at all.

First step in debugging would be to try the following pipeline and see if that works:
gst-launch-1.0 -v playbin uri=rtsp://165.26.79.51/MediaInput/h264
Reply | Threaded
Open this post in threaded view
|

Re: Unable to figure gst-launch-1.0 with rtsp

NarutoKun
======================
Thank you Arjen

Your direction was helpful. Seems like the my network proxy settings were hindering the camera feeds from opening up !!!

Have removed PC Proxy settings and now I see the feeds.
Though the feeds are coming with almost 2 seconds delay, am glad to see some output :) Need to figureout on the latency front now.

Thanks again !

=======================

Have made the latency = 0 too and it works fine.

Thank you for your support
Good Day