<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">My code is working fine with single source but if I add another source then latency is increasing for another source and first source is working fine. we have overridden doGetNextFrame as below.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>void LiveSourceWithx264::doGetNextFrame() {<br>
deliverFrame();<br>
}</div>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<font color="#004B76" size="2"><span style="font-size:10.5pt">Thanks & Regards<b>,<br>
</b></span></font><b style="font-size:10.5pt; color:rgb(0,75,118)">Renish Tala </b><font color="#004B76" size="2"><span style="font-size:10.5pt">
<div>Engineer | PES | e-infochips</div>
</span></font><br>
</div>
</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> live-devel <live-devel-bounces@ns.live555.com> on behalf of Weber, Patrick <Patrick.Weber@iecinfrared.com><br>
<b>Sent:</b> Wednesday, May 16, 2018 7:59:47 PM<br>
<b>To:</b> live-devel@ns.live555.com<br>
<b>Subject:</b> [External] Re: [Live-devel] Latency increased for low fps source when multiple session created in same server for different source (Renish Tala)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.<br>
<br>
<br>
I'm using the Live555 API for my RTSP server, and have not experienced this issue. I have several sources with varying frame rates between 8 and 30fps running on the same server. I'm triggering Live555 whenever a packet is available from the encoder, and have
yet to experience the "not ready for the data yet" error. Here's my DeliverFrame method (CameraFrameSource is a FramedSource), which is called by both the trigger event and the overridden doGetNextFrame method (you DO have an overridden doGetNextFrame method,
right?):<br>
<br>
//====================================================================<br>
// Deliver a frame from the RTSPSource object.<br>
//====================================================================<br>
void CameraFrameSource::DeliverFrame ()<br>
{<br>
byte *frameData;<br>
unsigned frameSize;<br>
<br>
if (isCurrentlyAwaitingData ())<br>
{<br>
if (_encodedSource->GetFrame (&frameData, &frameSize, &_ulLastFrameSent))<br>
{<br>
if (frameSize > 0 && frameData != nullptr)<br>
{<br>
if (frameSize > fMaxSize)<br>
{<br>
fFrameSize = fMaxSize;<br>
fNumTruncatedBytes = frameSize - fMaxSize;<br>
}<br>
else<br>
{<br>
fFrameSize = frameSize;<br>
fNumTruncatedBytes = 0;<br>
}<br>
SetPresentationTime (_ulLastFrameSent);<br>
if (SafeMemCopy (fTo, frameData, frameSize))<br>
FramedSource::afterGetting (this);<br>
}<br>
_encodedSource->ReleaseFrame ();<br>
++_ulFramesDelivered;<br>
}<br>
}<br>
}<br>
<br>
<br>
_______________________________________________<br>
live-devel mailing list<br>
live-devel@lists.live555.com<br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</div>
</span></font></div>
************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended
solely for the use of the addressee and may contain legally privileged and confidential information. 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 dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please
delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused
by any virus transmitted by this email. *************************************************************************************************************************************************************
</body>
</html>