[Live-devel] CPU 100% usage while using live555 2021

Vinothkumar Thiyagarajan vinothkumar_t at hcl.com
Tue May 30 03:47:08 PDT 2023


Thanks for the response Ross.

Please find the below mentioned list of function calls:

    NetAddressList destinationAddresses(streamDest.address().to_string().c_str());
    struct sockaddr_storage destinationAddress;

    copyAddress(destinationAddress, destinationAddresses.firstAddress());

    const Port rtpPort(streamDest.port());
    streamInfoPtr->rtpGroupsock.reset(new Groupsock(*live555Env, destinationAddress, rtpPort, TTL));


        streamInfoPtr->sourceFile.reset(MP3FileSource::createNew(*live555Env, streamInfoPtr->filename.c_str()));

        streamInfoPtr->framerSourceSet = false;
        streamInfoPtr->rtpSink.reset(MPEG1or2AudioRTPSink::createNew(*live555Env,
                                                                    streamInfoPtr->rtpGroupsock.get()));

        streamInfoPtr->afterCallStreamData = CallbackStreamInfo(streamDest, &afterPlayingCallback);
        if (!streamInfo->rtpSink->startPlaying(*streamInfoPtr->sourceFile, InvokeCallback,
                                                 &streamInfoPtr->afterCallStreamData))
        {
            return false;
        }

I was using 2011 earlier, but after changing to 2021 version, I am getting 100% CPU usage, function calls were same for both the versions, except copyAddress(htonl used in 2011 version).


Regards,

Vinoth Kumar.T

________________________________
From: live-devel <live-devel-bounces at us.live555.com> on behalf of Ross Finlayson <finlayson at live555.com>
Sent: Tuesday, May 30, 2023 3:51 PM
To: LIVE555 Streaming Media - development & use <live-devel at us.live555.com>
Subject: Re: [Live-devel] CPU 100% usage while using live555 2021

[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]

> On May 30, 2023, at 3:11 AM, Vinothkumar Thiyagarajan via live-devel <live-devel at us.live555.com> wrote:
>
>
> From: Vinothkumar Thiyagarajan <vinothkumar_t at hcl.com>
> Subject: CPU 100% usage while using live555 2021
> Date: May 30, 2023 at 3:11:23 AM PDT
> To: "live-devel at lists.live555.com" <live-devel at us.live555.com>
>
>
> Hello,
>     I am using live555's live.2021.08.04.tar.gz

Sorry, but we support only the latest version of the code.  See
        https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flive555.com%2FliveMedia%2Ffaq.html%23old-versions&data=05%7C01%7Cvinothkumar_t%40hcl.com%7C10731b2d50f1438e9eb008db60f84013%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C638210391620391425%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=fQLYVsWvQSmSnEaLqieR6QiUVj9khgTqOrqmrmQUZ0s%3D&reserved=0<http://live555.com/liveMedia/faq.html#old-versions>
and
        https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flive555.com%2FliveMedia%2Ffaq.html%23latest-version&data=05%7C01%7Cvinothkumar_t%40hcl.com%7C10731b2d50f1438e9eb008db60f84013%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C638210391620391425%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=md12U0f0tdr9lr9ty4ZhhFBxIwQUc%2BouZJVnnStVi90%3D&reserved=0<http://live555.com/liveMedia/faq.html#latest-version>


> , and am getting CPU usage as 100% when I play an audio.

You would need to better explain exactly how you are using the “LIVE555 Streaming Media” code (note that the code includes RTSP servers, RTSP clients, and proxy servers), and, specifically, what you mean by “play an audio”.


Ross Finlayson
Live Networks, Inc.
https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.live555.com%2F&data=05%7C01%7Cvinothkumar_t%40hcl.com%7C10731b2d50f1438e9eb008db60f84013%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C638210391620391425%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=6%2F4zsuDij3RWqHdmzM1uTn6AhwUtk6SYx9sxATOO2Go%3D&reserved=0<http://www.live555.com/>



_______________________________________________
live-devel mailing list
live-devel at lists.live555.com
https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.live555.com%2Fmailman%2Flistinfo%2Flive-devel&data=05%7C01%7Cvinothkumar_t%40hcl.com%7C10731b2d50f1438e9eb008db60f84013%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C638210391620391425%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=lh1cLFg4t1h0kpojRbfU%2BwNbVNJWLuc2kwlgPu2vXN8%3D&reserved=0<http://lists.live555.com/mailman/listinfo/live-devel>
::DISCLAIMER::
________________________________
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20230530/e5153921/attachment-0001.htm>


More information about the live-devel mailing list