Hi all,<div><br></div><div>I&#39;m answering my own question here. </div><div><br></div><div>I have managed to use RTP to control the framing on Windows XP and stream from an XP box to a Vista box. However, I cannot yet do the same on Vista. </div>

<div><br></div><div>What I notice is that when I stream using RTP with &quot;udpsink port=5000 host=localhost&quot; with debug level set to 5, I can indeed see the packet sent to the loopback device.</div><div><br></div>
<div>
<div>0:05:09.228000000  3428   02D2EB78 LOG           multiudpsink gstmultiudpsink.c:</div><div>385:gst_multiudpsink_render:&lt;udpsink0&gt; about to send 1000 bytes</div><div>0:05:09.231000000  3428   02D2EB78 LOG           multiudpsink gstmultiudpsink.c:</div>

<div>392:gst_multiudpsink_render:&lt;udpsink0&gt; sending 1000 bytes to client 00A9D980</div><div>0:05:09.234000000  3428   02D2EB78 LOG           multiudpsink gstmultiudpsink.c:</div><div>425:gst_multiudpsink_render:&lt;udpsink0&gt; sent 1000 bytes to 1 (of 1) clients</div>

<div><br></div><div>However, if I try to send to another host &quot;udpsink port=5000 host=192.168.0.2&quot;, the following error can be observed:</div><div><br></div><div><div>385:gst_multiudpsink_render:&lt;udpsink0&gt; about to send 1000 bytes</div>

<div>0:05:48.531000000   456   01EFE2F0 LOG           multiudpsink gstmultiudpsink.c:</div><div>392:gst_multiudpsink_render:&lt;udpsink0&gt; sending 1000 bytes to client 00A9D9C0</div><div><span class="Apple-style-span" style="background-color: rgb(255, 204, 102);">0:05:48.534000000   456   01EFE2F0 WARN          multiudpsink gstmultiudpsink.c:</span></div>

<div><span class="Apple-style-span" style="background-color: rgb(255, 204, 102);">410:gst_multiudpsink_render:&lt;udpsink0&gt; client 00A9D9C0 gave error 0 (No error)</span></div><div>0:05:48.537000000   456   01EFE2F0 LOG           multiudpsink gstmultiudpsink.c:</div>

<div>425:gst_multiudpsink_render:&lt;udpsink0&gt; sent 1000 bytes to 0 (of 1) clients</div></div><div><br></div><div>I&#39;m not sure what&#39;s causing the sendto() error. I&#39;m pretty sure the size of the buffer is below the max size allowed for the socket. Is it anything to do with IPv4 / IPv6 and multiple network interfaces? Anyone any idea?</div>

<div><br></div><div>William</div><div><br></div><br><div class="gmail_quote">2009/7/30 <a href="mailto:william@breezecapsule.com">william@breezecapsule.com</a> <span dir="ltr">&lt;<a href="mailto:william@breezecapsule.com">william@breezecapsule.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks for the advice. I would really appreciate if someone has an example pipeline I can try. I tried using ffenc_h263p followed by rtph263ppay with mtu value set to various values, however I still can&#39;t get the the packet sent through udpsink.<br>


<br>
Many thanks.<br>
<font color="#888888"><br>
William Lee @ Breeze Capsule<br>
</font><div><div></div><div class="h5"><br>
<br>
-original message-<br>
Subject: Re: [gst-devel] udpsink/udpsrc on win32 (Vista)<br>
From: &quot;Wim Taymans&quot; &lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;<br>
Date: 30/07/2009 11:02<br>
<br>
On Thu, 2009-07-30 at 10:41 +0100, William Lee wrote:<br>
&gt; Hi all,<br>
&gt;<br>
&gt;<br>
&gt; Has anyone successfully used udpsink and udpsrc on win32 (Vista) using<br>
&gt; the GStreamer Winbuild?<br>
&gt;<br>
&gt;<br>
&gt; I&#39;m testing a simple pipeline<br>
&gt;<br>
&gt;<br>
&gt; &gt; gst-inspect-0.10.exe --gst-debug-level=3 videotestsrc ! udpsink<br>
&gt; port=5000<br>
<br>
You can only send 65536 bytes with udp, the output of videotestsrc is<br>
likely bigger. You might want to reduce the framerate or do application<br>
level framing by using RTP or so.<br>
<br>
Wim<br>
<br>
&gt;<br>
&gt; I&#39;m see the following messages continuously being printed in the log<br>
&gt;<br>
&gt;<br>
&gt; 0:00:00.966000000 ←[335m 4240←[00m   01BA7008 ←[33;01mWARN ←[00m<br>
&gt; ←[00m        mu<br>
&gt; ltiudpsink<br>
&gt; gstmultiudpsink.c:416:gst_multiudpsink_render:&lt;udpsink0&gt;←[00m client<br>
&gt; 01B616F8 gave error 0 (No error)<br>
&gt;<br>
&gt;<br>
&gt; I have looked at the multiudpsink_render source code and printed the<br>
&gt; following out:<br>
&gt;<br>
&gt;<br>
&gt; 0:00:00.965000000 ←[335m 4240←[00m   01BA7008 ←[33;01mWARN ←[00m<br>
&gt; ←[00m        mu<br>
&gt; ltiudpsink<br>
&gt; gstmultiudpsink.c:402:gst_multiudpsink_render:&lt;udpsink0&gt;←[00m SO_MAX_<br>
&gt; MSG_SIZE = 65527 and BUFFER SIZE = 153600<br>
&gt;<br>
&gt;<br>
&gt; It seems that the SO_MAX_MSG_SIZE of the datagram socket is set to<br>
&gt; 65527 bytes but the buffer being sent is 153600 bytes, so the sendto()<br>
&gt; call failed because the buffer exceeds the socket message size.<br>
&gt;<br>
&gt;<br>
&gt; Does anyone have a workaround? Is there any way to control the buffer<br>
&gt; size upstream?<br>
&gt;<br>
&gt;<br>
&gt; Thanks.<br>
&gt;<br>
&gt;<br>
&gt; William<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; William Lee @ Breeze Capsule<br>
&gt; Email: william at <a href="http://breezecapsule.com" target="_blank">breezecapsule.com</a><br>
&gt; Mobile: +44 7984 368 182<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
&gt; trial. Simplify your report design, integration and deployment - and focus on<br>
&gt; what you do best, core application coding. Discover what&#39;s new with<br>
&gt; Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
&gt; _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>


<br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>William Lee @ Breeze Capsule<br>Email: william at <a href="http://breezecapsule.com">breezecapsule.com</a><br>Mobile: +44 7984 368 182<br>
</div>