<div dir="ltr">Hello,<br>I'm trying to send video data from Raspberry Pi 2 to PC. This method works ok:<br><br>PC: <br><br>gst-launch-1.0 udpsrc port=7000 ! application/x-rtp,payload=96 ! rtph264depay ! decodebin ! xvimagesink<br><br>Raspberry Pi:<br><br>gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay ! udpsink host=192.168.0.5 port=7000<br><br>A window appears on PC with a test stream. <br><br>Then I am trying to send video from the camera connected to RPi (this should work, because it works with raspivid tool and I loaded the module bcm2835-v4l2):<br><br>gst-launch-1.0 -e -v v4l2src device=/dev/video0 ! 'video/x-h264,width=320,height=200,framerate=30/1' ! h264parse ! rtph264pay ! udpsink host=192.168.0.5 port=7000<br><br>The thing is that something seems to be stuck. I can see that the camera turns on, this is printed on RPi's console:<br><br>Setting pipeline to PAUSED ...<br>Pipeline is live and does not need PREROLL ...<br>Setting pipeline to PLAYING ...<br>New clock: GstSystemClock<br>/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br>/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = "video/x-h264\,\ stream-format\=\(string\)byte-stream\,\ alignment\=\(string\)au\,\ width\=\(int\)320\,\ height\=\(int\)200\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"<br><br>But there is no video on the PC side, nothing seems to be received. However when I close the pipeline by ctrl-c on RPi's side, then new caps are negotiated, some data is sent to PC and a single image from the camera is displayed.<br><br>How to make the pipeline on RPi to stream video right after it is created, not just send some data right before it is being closed?<br></div>