Hi Ross,

Refer to DeviceSource.cpp, I implement LiveVideoFramedSource class that 
extended from FramedSource and get video frame by PUSH mode. It means it will 
trigger event to deliverFrame when frame is available and call 
FramedSource::afterGetting(this) when frame size is > 0.  I don’t handle 
doGetNextFrame() and ignore it.

Rtsp video streaming can work when live camera frame fps is 25fps, but I found 
it has big delay for client. I check the log, and find it costs about 10ms for 
socket select frequently in BasicTaskScheduler.cpp.
Seems that it impact to deliver video frames for live555 is running in single 
thread.

BasicTaskScheduler.cpp
int selectResult = select(fMaxNumSockets, &readSet, &writeSet, &exceptionSet, 
&tv_timeToDelay);   //cost about 10ms frequently


I would appreciate some guidance on the issue. :)

Thanks.
/Qian
_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to