<html><head><base href="x-msg://34/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div bgcolor="#ffffff"><div><font size="2" face="Arial">    Some Samsung cameras (SNB-5000, SND-5080, SNO-5080) choose the RTP destination port; kindly, the Live555 RTSPClient respect this request.</font></div><div><font size="2" face="Arial">    Instead Samsung, unkindly, doens't let us disable this feature or set the desired port up via the camera's configuration web page; so sometimes two or more cameras (and all after power on) choose the same port: so some streams starve and other ones receive frames coming from two or more cameras.</font></div><div><font size="2" face="Arial"></font> </div><div><font size="2" face="Arial"><strong>    Could you please tell me if and where subclassing in order to make Live555 refuse the port chosen by the camera and answer with a port chosen by the OS (hoping the camera will accept the change</strong></font></div></div></span></blockquote><div><br></div>That's the big question - i.e., if, for these cameras, the client were to choose its ports itself, would the server (the camera) accept this?</div><div><br></div><div>Therefore, I suggest that you first run the following test:</div><div>- First, upgrade to the latest version of the "LIVE555 Streaming Media" code.  (The version (2005.10.05) that you are using now is *extremely* out of date!)</div><div>- Change line 596 of "liveMedia/MediaSession.cpp" from</div><div><span class="Apple-tab-span" style="white-space:pre">  if (fClientPortNum != 0) {</span></div><div>to</div><div><div><span class="Apple-tab-span" style="white-space: pre; ">    if (</span><span class="Apple-tab-span" style="white-space: pre; ">fClientPortNum != 0</span> && IsMulticastAddress(tempAddr.s_addr)<span class="Apple-tab-span" style="white-space: pre; ">) {</span></div><div><br></div><div>This will force your client code to choose its own port numbers, even if the server specified a port number in the SDP description.</div><div><br></div><div>The problem here is that your camera is specifying - in the SDP description - a port number for unicast streaming.  This is unusual.  It is more common for the server to specify its port number later, when it handles the RTSP "SETUP" command.  (Specifying a port number in the SDP description is usually done only for multicast streams (because, for multicast streams, the port number will be the same for both clients and the server.)</div></div><br><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">Ross Finlayson<br>Live Networks, Inc.<br><a href="http://www.live555.com/">http://www.live555.com/</a></span></span>
</div>
<br></body></html>