Gstreamer RTSP server error while using test-launch.c

Mariem mariem.mhiri.ext at valeo.com
Mon Jun 26 08:27:43 UTC 2017


Hello,

I am running an RTSP server with the following pipeline (using Logitech
c270).
At the server side: 

$./test-launch "( v4l2src device=/dev/video8 ! videoconvert !
video/x-raw,width=640,height=480,framerate=30/1 ! \
			  omxh264enc control-rate=2 target-bitrate=1024000
interval_intraframes=14 periodicty-idr=2 scantype=0 ! 
                          h264parse ! rtph264pay name=pay0 pt=96 )");

At the client side:
gst-launch-1.0 -v --gst-debug=2 rtspsrc location=rtsp://ip_address:8554/test
! decodebin ! autovideosink                                                                                  
──(\o_ 1 _o/)─┘
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://ip_address:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
0:00:04.747243433  4893       0xad6450 WARN                 rtspsrc
gstrtspsrc.c:5670:gst_rtspsrc_send:<rtspsrc0> error: Got error response: 503
(Service Unavailable).
0:00:04.747337611  4893       0xad6450 WARN                 rtspsrc
gstrtspsrc.c:6898:gst_rtspsrc_open:<rtspsrc0> can't get sdp
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not
read from resource.
0:00:04.747354237  4893       0xad6450 WARN                 rtspsrc
gstrtspsrc.c:5075:gst_rtspsrc_loop:<rtspsrc0> we are not connected
Additional debug info:
gstrtspsrc.c(5670): gst_rtspsrc_send ():
/GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0:
Got error response: 503 (Service Unavailable).
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

P.S: I added gst_rtsp_server_set_address(server, "server_ip_address"); to
the test-launch.c

I also tested the same pipeline using gst-launch as it is showing below and
they worked perfectly.
$gst-launch-1.0 -v --gst-debug=2 v4l2src device=/dev/video8 ! videoconvert !
video/x-raw,width=640,height=480,framerate=30/1 ! \
omxh264enc control-rate=2 target-bitrate=1024000 interval_intraframes=14
periodicty-idr=2 scan-type=0 ! \
h264parse ! rtph264pay ! udpsink host=host_ip_address port=5000

$gst-launch-1.0 -v --gst-debug=2 udpsrc port=5000 caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)H264" ! rtph264depay ! h264parse ! avdec_h264 !
autovideosink

I appreciate any help.

Best regards,
Mariem



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-server-error-while-using-test-launch-c-tp4683540.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list