<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1495028440711_113342"><span id="yui_3_16_0_ym19_1_1495028440711_113543">You need to split the stream in two with the tee and queue elements.</span></div><div id="yui_3_16_0_ym19_1_1495028440711_113342"><span><br></span></div><div id="yui_3_16_0_ym19_1_1495028440711_113342"><span id="yui_3_16_0_ym19_1_1495028440711_113486">Here's an example of a working video pipeline that displays and records simultaneously:</span></div><div id="yui_3_16_0_ym19_1_1495028440711_113342"><span><br></span></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1495028440711_113343" dir="ltr">gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/front latency=0 ! tee name=t t. ! queue ! rtph264depay ! avdec_h264 ! fpsdisplaysink sync=false t. ! queue ! rtph264depay ! h264parse ! mpegtsmux ! filesink location="ts.mpg"</div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1495028440711_113343" dir="ltr"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_ym19_1_1495028440711_113343" dir="ltr">You will need to modify it to work with RTP, but that is straightforward. Note that you don't have to re-encode with x264enc unless you want to, but you do need to parse it and wrap it in a muxer.<br><br></div><div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1495028440711_113347" style="display: block;"> <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;" id="yui_3_16_0_ym19_1_1495028440711_113346"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;" id="yui_3_16_0_ym19_1_1495028440711_113345"> <div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113344"> <font size="2" face="Arial" id="yui_3_16_0_ym19_1_1495028440711_113348"> <hr size="1" id="yui_3_16_0_ym19_1_1495028440711_113485"> <b><span style="font-weight:bold;">From:</span></b> Mattekr <matteozoni@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> gstreamer-devel@lists.freedesktop.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, May 19, 2017 9:04 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Record UDP stream<br> </font> </div> <div class="y_msg_container" id="yui_3_16_0_ym19_1_1495028440711_113349"><br><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113366">Hi, I'm a gstreamer newbie.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113350"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113365">I would like to see and record a UDP stream from my camera.<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113351"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113352">I use for see<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113353"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113354">C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -e -v udpsrc port=5000 !<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113355">application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113356">! fpsdisplaysink sync=false text-overlay=false<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113357"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113358">and this for record<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113359"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113360">C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -e -v udpsrc port=5000 !<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113361">application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113362">! decodebin ! x264enc ! mp4mux ! filesink<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113363">location=C:\\Users\\Progettazione\\Desktop\\file.mp4<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113364"><br></div><div dir="ltr">All the attempts I made to record and see in one command did not work<br></div><div dir="ltr"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113669">For example, I get the error:<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113670"><br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113671">WARNING: erroneous pipeline: could not link fpsdisplaysink0 to filesink0<br></div><div dir="ltr" id="yui_3_16_0_ym19_1_1495028440711_113672"><br></div><div dir="ltr">How can I do? Thanks in advance.<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">--<br></div><div dir="ltr">View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Record-UDP-stream-tp4683050.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/Record-UDP-stream-tp4683050.html</a><br></div><div dir="ltr">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br></div><div dir="ltr">_______________________________________________<br></div><div dir="ltr">gstreamer-devel mailing list<br></div><div dir="ltr"><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br></div><div dir="ltr"><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br></div><br><br></div> </div> </div> </div></div></body></html>