Gstreamer RTSP server: connection not established

Mariem mariem.mhiri.ext at valeo.com
Tue Jun 20 13:15:36 UTC 2017


Hello, 

I am trying to stream a video between my target (which has Yocto installed)
and my PC (which has ubuntu) using a Logitech c920 HD Pro webcam. The usb
camera is plugged into the board.

In the server side (the board)  I have this:  
$gst-launch-1.0 -v v4l2src device=/dev/video8  !
video/x-raw,format=YUY2,width=1280,height=720 ! videoconvert ! queue !
x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps =
"video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1280\,\
height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(st"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps =
"video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1280\,\
height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
"video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressiv"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = "video/x-raw\,\
width\=\(int\)1280\,\ height\=\(int\)720\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ framerat"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = "video/x-raw\,\
width\=\(int\)1280\,\ height\=\(int\)720\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ framerat"
Redistribute latency...
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:sink: caps =
"video/x-raw\,\ width\=\(int\)1280\,\ height\=\(int\)720\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ fram"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
"video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1280\,\
height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps =
"video/x-raw\,\ format\=\(string\)YUY2\,\ width\=\(int\)1280\,\
height\=\(int\)720\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mod"
/GstPipeline:pipeline0/GstX264Enc:x264enc0.GstPad:src: caps =
"video/x-h264\,\
codec_data\=\(buffer\)017a001fffe1001a677a001fbcd9405005bb011000000300100000030148f183196001000568ebecb22c\,\
stream-format\=\(s"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:src: caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)"
/GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)H264\,\ packetization-mode\=\(string\)1\,\ "
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0.GstPad:sink: caps =
"video/x-h264\,\
codec_data\=\(buffer\)017a001fffe1001a677a001fbcd9405005bb011000000300100000030148f183196001000568ebecb22c\,\
stream-form"
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: timestamp = 2344025827
/GstPipeline:pipeline0/GstRtpH264Pay:rtph264pay0: seqnum = 28142
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:38.480464040
Setting pipeline to PAUSED ...
Setting pipeline to READY ...


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

The client side (PC):
$ 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 ! avdec_h264 ! autovideosink

Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps =
"application/x-rtp\,\ media\=\(string\)video\,\ clock-rate\=\(int\)90000\,\
encoding-name\=\(string\)H264"
/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps =
"video/x-h264\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\
codec_data\=\(buffer\)017a001fffe1001a677a001fbcd9405005bb011000000300100000030148f183196001000568ebecb22c\,\
level\=\(string\)3.1\,\ profile\=\(string\)high-4:2:2"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps =
"video/x-h264\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\
codec_data\=\(buffer\)017a001fffe1001a677a001fbcd9405005bb011000000300100000030148f183196001000568ebecb22c\,\
level\=\(string\)3.1\,\ profile\=\(string\)high-4:2:2"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:src: caps =
"video/x-raw\,\ format\=\(string\)Y42B\,\ width\=\(int\)1280\,\
height\=\(int\)720\,\ interlace-mode\=\(string\)progressive\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\ chroma-site\=\(string\)mpeg2\,\
colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)10/1"
0:00:08.058623570 25598       0xe4c8a0 WARN                GST_PADS
gstpad.c:4092:gst_pad_peer_query:<avdec_h264-0:src> could not send sticky
events
Redistribute latency...
0:00:08.060586027 25598       0xe4c8a0 WARN                 basesrc
gstbasesrc.c:2948:gst_base_src_loop:<udpsrc0> error: Internal data flow
error.
0:00:08.060625143 25598       0xe4c8a0 WARN                 basesrc
gstbasesrc.c:2948:gst_base_src_loop:<udpsrc0> error: streaming task paused,
reason not-negotiated (-4)
ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data
flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop ():
/GstPipeline:pipeline0/GstUDPSrc:udpsrc0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:08.016536859
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
 
How can I fix this issue?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-RTSP-server-connection-not-established-tp4683464.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list