[Live-devel] Tracked down the problem with latency

Ross Finlayson finlayson at live555.com
Tue Mar 5 16:08:17 PST 2013


> What kind of problems can crop up if I set preferredFrameSize to something on the order of 200 bytes?

This might not work, because you are reading/parsing a byte stream source.  Our stream parsing code might not be able to handle reads that small.

But a much better solution would be to have your input source class deliver *discrete* MPEG-4 video frames - one at a time - directly to the server, instead of delivering an arbitrary-sized byte stream (via a pipe).  If you do this, your "OnDemandServerMediaSubsession" subclass will need to use a "MPEG4VideoStreamDiscreteFramer" (instead of a "MPEG4VideoStreamFramer").  But your latency should be lowered considerably (and your code will be much more efficient).

Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20130306/22b81e6e/attachment.html>


More information about the live-devel mailing list