gstvaapi and refused connection error rtspclientsink

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

gstvaapi and refused connection error rtspclientsink

larry_b_84
Hi

I am trying to do something relatively simple - I hope.

I am running on a raspberry pi and using the latest version of gstreamer.

My initial task I was trying to do was to create an RTSP 'repeater' using
gst-launch-1.0 rtspsrc rtspsrc location=rtsp://192.168.0.102:5540/ch0 !
rtspclientsink location=rtsp://127.0.0.1: 8554/test .

However I keep getting the error message:

ERROR: from element
/GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not open
resource for reading and writing.

(Any comments on the above pipeline would be appreciated.)

So I have tried to change the pipeline to something that I know should work.
However I appear to have two issues gstvaapi wont work for obvious reasons
(arm processor) and secondly I'm getting a connection refused error. I have
pasted the error below.

Many thanks

Laurence

GST_DEBUG=2 gst-launch-1.0 videotestsrc ! queue ! x264enc ! rtspclientsink
location=rtsp://127.0.0.1:
8554/test
0:00:00.023146709  1982  0x1d87e00 ERROR                default
gstvaapi.c:254:plugin_init: Cannot create a VA display
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
Redistribute latency...
0:00:00.407364806  1981   0xad20f0 ERROR                default
gstrtspconnection.c:1006:gst_rtsp_connection_connect_with_response: failed
to connect: Could not connect to 127.0.0.1: Connection refused
0:00:00.407785998  1981   0xad20f0 ERROR         rtspclientsink
gstrtspclientsink.c:1992:gst_rtsp_conninfo_connect:<rtspclientsink0> Could
not connect to server. (Generic error)
0:00:00.407964753  1981   0xad20f0 WARN          rtspclientsink
gstrtspclientsink.c:3207:gst_rtsp_client_sink_connect_to_server:<rtspclientsink0>
error: Failed to connect. (Generic error)
0:00:00.409356012  1981   0xad20f0 WARN          rtspclientsink
gstrtspclientsink.c:3272:gst_rtsp_client_sink_open:<rtspclientsink0> Failed
to connect to server
ERROR: from element
/GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not open
resource for reading and writing.
Additional debug info:
gstrtspclientsink.c(3207): gst_rtsp_client_sink_connect_to_server ():
/GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0:
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 ...



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstvaapi and refused connection error rtspclientsink

Nicolas Dufresne-5
Le jeudi 18 juin 2020 à 17:55 -0500, larry_b_84 a écrit :
> Hi
>
> I am trying to do something relatively simple - I hope.
>
> I am running on a raspberry pi and using the latest version of gstreamer.
>
> My initial task I was trying to do was to create an RTSP 'repeater' using
> gst-launch-1.0 rtspsrc rtspsrc location=rtsp://192.168.0.102:5540/ch0 !
> rtspclientsink location=rtsp://127.0.0.1: 8554/test .

Be aware that rtspclientsink is means to connect to a remote server that
implements the RECORD function. Just saying, as if you want an RTSP proxy,
you'll need to use rtsp-server library and create a server.

As rtspsrc is multi-pads (in some cases you may need to redo the payload), this
is quite more work and you will need to program this. For each pads, you will
have to create an equivalent pad on rtspclientsink and connect it.

>
> However I keep getting the error message:
>
> ERROR: from element
> /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not open
> resource for reading and writing.
>
> (Any comments on the above pipeline would be appreciated.)
>
> So I have tried to change the pipeline to something that I know should work.
> However I appear to have two issues gstvaapi wont work for obvious reasons
> (arm processor) and secondly I'm getting a connection refused error. I have
> pasted the error below.
>
> Many thanks
>
> Laurence
>
> GST_DEBUG=2 gst-launch-1.0 videotestsrc ! queue ! x264enc ! rtspclientsink
> location=rtsp://127.0.0.1:
> 8554/test
> 0:00:00.023146709  1982  0x1d87e00 ERROR                default
> gstvaapi.c:254:plugin_init: Cannot create a VA display
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLED ...
> Progress: (open) Opening Stream
> Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
> Redistribute latency...
> 0:00:00.407364806  1981   0xad20f0 ERROR                default
> gstrtspconnection.c:1006:gst_rtsp_connection_connect_with_response: failed
> to connect: Could not connect to 127.0.0.1: Connection refused
> 0:00:00.407785998  1981   0xad20f0 ERROR         rtspclientsink
> gstrtspclientsink.c:1992:gst_rtsp_conninfo_connect:<rtspclientsink0> Could
> not connect to server. (Generic error)
> 0:00:00.407964753  1981   0xad20f0 WARN          rtspclientsink
> gstrtspclientsink.c:3207:gst_rtsp_client_sink_connect_to_server:<rtspclientsin
> k0>
> error: Failed to connect. (Generic error)
> 0:00:00.409356012  1981   0xad20f0 WARN          rtspclientsink
> gstrtspclientsink.c:3272:gst_rtsp_client_sink_open:<rtspclientsink0> Failed
> to connect to server

You don't seem to have any server running that would implement RECORD, so I
suppose that you miss-interpreted what rtspclientsink is.

As you have a very specific task, have you consider using a generic RTSP proxy
server, like Live555 proxy server or other RTSP proxy application ?

> ERROR: from element
> /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not open
> resource for reading and writing.
> Additional debug info:
> gstrtspclientsink.c(3207): gst_rtsp_client_sink_connect_to_server ():
> /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0:
> 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 ...
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel