Hi,

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.


void LiveSourceWithx264::doGetNextFrame() {
    deliverFrame();
}


Thanks & Regards,
Renish Tala
Engineer | PES | e-infochips

________________________________
From: live-devel <live-devel-boun...@ns.live555.com> on behalf of Weber, 
Patrick <patrick.we...@iecinfrared.com>
Sent: Wednesday, May 16, 2018 7:59:47 PM
To: live-de...@ns.live555.com
Subject: [External] Re: [Live-devel] Latency increased for low fps source when 
multiple session created in same server for different source (Renish Tala)

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.


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?):

//====================================================================
// Deliver a frame from the RTSPSource object.
//====================================================================
void CameraFrameSource::DeliverFrame ()
{
        byte *frameData;
        unsigned frameSize;

        if (isCurrentlyAwaitingData ())
        {
                if (_encodedSource->GetFrame (&frameData, &frameSize, 
&_ulLastFrameSent))
                {
                        if (frameSize > 0 && frameData != nullptr)
                        {
                                if (frameSize > fMaxSize)
                                {
                                        fFrameSize = fMaxSize;
                                        fNumTruncatedBytes = frameSize - 
fMaxSize;
                                }
                                else
                                {
                                        fFrameSize = frameSize;
                                        fNumTruncatedBytes = 0;
                                }
                                SetPresentationTime (_ulLastFrameSent);
                                if (SafeMemCopy (fTo, frameData, frameSize))
                                        FramedSource::afterGetting (this);
                        }
                        _encodedSource->ReleaseFrame ();
                        ++_ulFramesDelivered;
                }
        }
}


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel
*************************************************************************************************************************************************************
 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. 
*************************************************************************************************************************************************************
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to