[Live-devel] IncreaseSendBufferTo / RTSP_PARAM_STRING_MAX / dynamic rtp payload types

Rawling, Stuart SRawling at pelco.com
Thu Sep 17 16:56:16 PDT 2009


I was investigating an issue where I was capturing an outgoing stream from
my RtspServer, and I noticed there were missing packets when I captured
using tcpdump.   I increased the send buffer size using
increaseSendBufferTo, and this helped the issue.

However, I was curious as to what is the difference between
increaseSendBufferTo and setSendBufferSize? (And the appropriate
ReceiveBuffer calls)
(setSendBufferTo does not seem to be called).

On a separate point. can we set the RTSP_PARAM_STRING_MAX to something
larger than 100?  I use 256, but  is there any reason it cannot be PATH_MAX
(which is OS indepenedent ­ tho I am not sure if this is defined on all
systems).  I use a larger size to allow more url parameters on the streams
on my server.

Another thing I have noticed is that there are certain non conforming
devices that can change their RTP payload midstream.  To handle this on my
client end I added the abilility to ignore the rtp payload type being
dynamic.  I did this by not checking the payload type if the expected type
was set to zero:
--- vendor/liveMedia/MultiFramedRTPSource.cpp
+++ custom/liveMedia/MultiFramedRTPSource.cpp
@@ -263,7 +263,10 @@
       bPacket->removePadding(numPaddingBytes);
     }
     // Check the Payload Type.
-    if ((unsigned char)((rtpHdr&0x007F0000)>>16)
+    //  Handle a payload type of 0
+    // Which means do not worry about the payload type
+    if (0 != source->rtpPayloadFormat() &&
+        (unsigned char)((rtpHdr&0x007F0000)>>16)
     != source->rtpPayloadFormat()) {
       break;
     }


Regards,
Stuart


- ------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this transmission is legally privileged and confidential, intended only for the use of the individual(s) or entities named above. This email and any files transmitted with it are the property of Pelco. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you receive this communication in error, please notify us immediately by telephone call to +1-559-292-1981 or forward the e-mail to administrator at pelco.com and then permanently delete the e-mail and destroy all soft and hard copies of the message and any attachments. Thank you for your cooperation. 
- ------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20090917/a5bdcd32/attachment.html>


More information about the live-devel mailing list