<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<tt><span style="color: rgb(34, 34, 34); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; background-color: rgb(255, 255, 255);
display: inline ! important; float: none;">Hi<span
class="Apple-converted-space"> </span></span></tt><tt><br
style="color: rgb(34, 34, 34); font-size: 13px; font-style:
normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; background-color: rgb(255, 255, 255);">
</tt><tt><br style="color: rgb(34, 34, 34); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; background-color: rgb(255, 255, 255);">
</tt><tt><span style="color: rgb(34, 34, 34); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; background-color: rgb(255, 255, 255);
display: inline ! important; float: none;">I am trying to stream
rtp over tcp and i am facing the issue like stream is stopping
after 3-4 mins(I am using VLC as a client), i applied following
patch but didn't work for me.</span></tt><tt><br style="color:
rgb(34, 34, 34); font-size: 13px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: normal; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; word-spacing:
0px; background-color: rgb(255, 255, 255);">
</tt><tt><br style="color: rgb(34, 34, 34); font-size: 13px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: normal; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
word-spacing: 0px; background-color: rgb(255, 255, 255);">
</tt>
<pre style="white-space: pre-wrap; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: courier, 'courier new', monospace; font-size: 14px; word-wrap: break-word; margin: 0px; color: rgb(160, 30, 30); line-height: 19.600000381469727px; background-color: rgb(255, 255, 255);"><tt><font color="#000000">>>
>>- sendResult = send(socketNum, (char const*)(&data[<wbr>numBytesSentSoFar]),
>>numBytesRemainingToSend, 0/*flags*/);
>>+
>>+ do {
>>+ sendResult = send(socketNum, (char
>>const*)(&data[<wbr>numBytesSentSoFar]), numBytesRemainingToSend, 0/*flags*/);
>>+ } while(sendResult == -1 && envir().getErrno() == EAGAIN);
>>
</font></tt>
<font color="#000000"><tt>I tried to incerease send buffer size to 100*1024 that is also not working for me, I am using 512000 bitrate.
</tt></font>
<font color="#000000"><tt><small style="font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255);">--- <i>Begin Message</i> ---</small></tt><tt><span style="font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.6px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; background-color: rgb(255, 255, 255); float: none; display: inline !important;"></span></tt><tt>Thank you very much for detailed explanation.
Probably increasing of the send buffer (SO_SNDBUF) can help, it's value depends
on estimatedBitrate from RTPSink:if (rtpSink != NULL && rtpSink->estimatedBitrate() > 0) streamBitrate =
rtpSink->estimatedBitrate();
if (rtpGroupsock != NULL) {
// Try to use a big send buffer for RTP - at least 0.1 second of
// specified bandwidth and at least 50 KB
unsigned rtpBufSize = streamBitrate * 25 / 2; // 1 kbps * 0.1 s = 12.5 bytes
if (rtpBufSize < 50 * 1024) rtpBufSize = 50 * 1024;
increaseSendBufferTo(envir(), rtpGroupsock->socketNum(), rtpBufSize);
}
I was looking for this bunch of code, but i couldn't fine it, can you please help me? where i should change..
I am running the latest Live555 code 1-3-2015.
Thank you,
Regards,
-Hardik </tt></font></pre>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
</body>
</html>