<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
I am having some issues with the following gstreamer command</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Sender (on embeeded system)</p>
<pre style="margin-top:0px;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);padding:12px;line-height:1.30769;font-family:var(--ff-mono);font-size:13px;width:auto;max-height:600px;overflow:auto;background-color:var(--highlight-bg);border-radius:5px;color:var(--highlight-color);text-align:left"><code style="margin:0px;color:var(--black-800);border-radius:0px">gst-launch-1.0 videotestsrc ! video/x-raw, width=6400, height=480 ! queue ! vpuenc_h264 ! rtph264pay ! udpsink host=192.168.60.5 port=5555
</code></pre>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Receiver(on windows)</p>
<pre style="margin-top:0px;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);padding:12px;line-height:1.30769;font-family:var(--ff-mono);font-size:13px;width:auto;max-height:600px;overflow:auto;background-color:var(--highlight-bg);border-radius:5px;color:var(--highlight-color);text-align:left"><code style="margin:0px;color:var(--black-800);border-radius:0px">gst-launch-1.0 udpsrc port=5555 ! queue ! rtph264depay  ! decodebin  ! autovideosink
</code></pre>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
But I have got the following response</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
   <span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">Setting pipeline to PAUSED ...</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Pipeline is live and does not need PREROLL ...</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Got context from element 'autovideosink0': gst.d3d11.device.handle=context, device=(GstD3D11Device)"\(GstD3D11Device\)\ d3d11device4", adapter=(uint)0, device-id=(uint)6429,
 vendor-id=(uint)32902, hardware=(boolean)true, description=(string)"Intel\(R\)\ HD\ Graphics\ P530";</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Pipeline is PREROLLED ...</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Setting pipeline to PLAYING ...</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    New clock: GstSystemClock</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">     ERROR: from element /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0: No RTP format was negotiated.</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Additional debug info:</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">      ../gst-libs/gst/rtp/gstrtpbasedepayload.c(538): gst_rtp_base_depayload_handle_buffer (): /GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0:</span></p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">     Input buffers need to have RTP caps set on them. This is usually achieved by setting the 'caps' property of the upstream source element (often udpsrc or
 appsrc), or by putting a capsfilter element before the depayloader and setting the 'caps' property on that. Also see
<a href="http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README" id="LPNoLPOWALinkPreview">
http://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/gst/rtp/README</a></span></p>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
     <span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">Execution ended after 0:00:00.019641000</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Setting pipeline to NULL ...</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data stream error.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Additional debug info:</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    streaming stopped, reason not-negotiated (-4)</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span style="background-color: var(--highlight-bg); font-family: var(--ff-mono); font-size: 13px;">    Freeing pipeline ..</span>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
The complaint seem to be about the incoming stream is not in rtp format and the rtpdepayh264 should not be placed in the pipeline. This assumption is proven to be correct when i replaced the whole pipeline with a fakesink</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Receiver</p>
<pre style="margin-top:0px;margin-bottom:calc(var(--s-prose-spacing) + 0.4em);padding:12px;line-height:1.30769;font-family:var(--ff-mono);font-size:13px;width:auto;max-height:600px;overflow:auto;background-color:var(--highlight-bg);border-radius:5px;color:var(--highlight-color);text-align:left"><code style="margin:0px;color:var(--black-800);border-radius:0px">gst-launch-1.0 udpsrc port=5555 ! queue ! fakesink
</code></pre>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
The pipeline work. However when i observed the packets exchange in wireshark, it show the communication exchange but the protocol is in udp. Though I know that RTP could be based upon UDP protocol but have thought that Wireshark is entirely capable of showing
 protocol in RTP format</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
<br>
</p>
<p style="margin-top:0px;margin-bottom:var(--s-prose-spacing);font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
I have thought that the sender has already wrapped the video in rtp format before sending the package out. Like to have some ideas on what is wrong here and how to proceed</p>
<p style="margin:0px;font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;clear:both;color:rgb(35, 38, 41);text-align:left;background-color:rgb(255, 255, 255)">
Regards</p>
<br>
</div>
</body>
</html>