<div dir="ltr">Hi,<div><br></div><div style>I'm building an application to support RTSP over HTTP using live555, and I ran into a situation that the CPU usage (1 core is completely used) is high (25% or above).</div><div style>

<br></div><div style>Here are the information:</div><div style>1. windows 7 x64, network 1Gbps, CPU i5 4 cores 2.8GHz, 8G RAM</div><div style>2. building application with VS2010, application is x64, and I assign the live555 thread to a specific core via windows API. Therefore I can observe which thread is eating up the cpu usage.</div>

<div style>3. Concurrent session: 64. (all different sources)</div><div style>4. H264 video source received from my own camera.</div><div style>5. I subclassed FramedSource to implement method doGetNextFrame and method afterGetting, and  let the delay be 100us when try to call scheduleDelayedTask. When there is a frame available, I copy the bitstream into fTo, assign the fFrameSize according to fMaxSize, and then calculate the fNumTruncatedBytes. If there are remaining bitstream of a frame, I would store it for next doGetNextFrame call, so that all frames are not truncated. Is this correct or related to my current situation?</div>

<div style>6. I also subclassed OnDemandServerMediaSubsession to implement my own method checkForAuxSDPLine.</div><div style>7. If I reduce the concurrent session count to 32, the cpu usage is the same as 64, but the thread of live555 can not handle more than 64 sessions.</div>

<div style><br></div><div style>If more information is needed, please let me know, thank you.</div><div style>I'm kinda new to live555 and the mailing list, forgive my poor presentation skill in Engilish.</div><div style>

<br></div></div>