[Live-devel] [External] Re: Latency increased for low fps source when multiple session created in same server for different source (Renish Tala)

Renish Tala renish.tala at einfochips.com
Wed May 16 20:59:25 PDT 2018


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-bounces at ns.live555.com> on behalf of Weber, Patrick <Patrick.Weber at iecinfrared.com>
Sent: Wednesday, May 16, 2018 7:59:47 PM
To: live-devel at 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 at 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. *************************************************************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20180517/9b0aded4/attachment-0001.html>


More information about the live-devel mailing list