testOnDemandRTSPServer app takes 100% cpu when disconnecting and connecting external client (e.g. VLC)
2012-06-13 14:36:04 GMT
I have tested "testOnDemandRTSPServer" as follows (using source code
1- Stream MPEG2-TS stream over raw UDP locally (let's say to
udp://127.0.0.1:1234). I am using FFmpeg for this task.
2- Changed some lines in the application to take the UDP stream in raw mode;
$ char const* inputAddressStr = "127.0.0.1";
$ Boolean const inputStreamIsRawUDP = True;
3- Launched "testOnDemandRTSPServer" application; to serve correspondent RTSP
4- Connect to RTSP source using another client; VLC in my case.
- Connect VLC to rtsp source: opens and perfectly plays the UDP source without
problems. CPU consumption keeps nearly to zero.
- Disconnect the client (stop VLC).
- Connect again the client (just press play button of VLC). The second time CPU
consumptions raises 100%, and the video does not play well.
Method "void BasicTaskScheduler0::doEventLoop(char* watchVariable)" seems to be related
not properly used/released. If you schedule "BasicTaskScheduler0::doEventLoop", adding for example a "usleep(0)" within the loop, CPU consumption decreases, but this does not solve the problem: in a second connection the video does not play well.
Thanks in advance.
_______________________________________________ live-devel mailing list live-devel@... http://lists.live555.com/mailman/listinfo/live-devel