<div dir="ltr">if you are using TCP as transport, this should already be the case AFAIK.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 16 Dec 2021 at 11:15, Bruce Liang via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div lang="ZH-TW">
<div class="gmail-m_8424684972454477787WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        I'm using gst-rtsp-server to test multicast rtp stream with indicated address and port.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        Threre are 2 streams in gst-rtsp-server and I'm using 2 rtcp clients to setup and play stream 0 and then stream 1 with same transport header.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        The transport header is:</span></p>
<p class="MsoNormal"><span lang="EN-US">        RTP/AVP;multicast;destination=224.3.0.2;ttl=64;port=5702-5703</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        The SETUP request to setup stream 0 is success but the SETUP request to stream1 is failed and the following response is returned:</span></p>
<p class="MsoNormal"><span lang="EN-US">        RTSP/1.0 461 Unsupported transport</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        And I got the following debug log:</span></p>
<p class="MsoNormal"><span lang="EN-US">        0:00:05.501051300   974 0x7fffefbb7d80 DEBUG             rtspstream rtsp-stream.c:1548:alloc_ports_one_family:<GstRTSPStream@0x7f5f4804ade0> rtp bind() failed, will try again</span></p>
<p class="MsoNormal"><span lang="EN-US">        0:00:05.501133200   974 0x7fffefbb7d80 ERROR             rtspstream rtsp-stream.c:1682:alloc_ports_one_family:<GstRTSPStream@0x7f5f4804ade0> failed to allocate UDP ports with requested transport settings</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        In alloc_ports_one_family(..), the rtp and rtcp socket are binded to multicast address and port by g_socket_bind(..) with [allow_reuse] = FALSE.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">        I'm wondering why it have to bind socket to multicast address and port which is used for sending.</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Best regards,</span></p>
<p class="MsoNormal"><span lang="EN-US">Bruce<span style="color:rgb(31,73,125)"></span></span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
*** Confidentiality Note *** This e-mail message and any accompanying documents are for sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If
 you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
</div>

</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature">g. Marc</div>