[Live-devel] Streaming Speed Limited for HD files?

Ross Finlayson finlayson at live555.com
Tue May 22 11:09:58 PDT 2007


The noteworthy part of the QOS stats (from "openRTSP -Q") is the 
packet loss information - you are experiencing 50% packet loss on 
average.

Because you don't see packet loss when you play the stream using VLC, 
then the problem is that your OS's internal receive buffers are not 
large enough.

***It's important for everyone to understand that packet loss is 
*never* the fault of the LIVE555 library code - it is always either 
(i) true network packet loss, or (ii) overflow in the OS's internal 
receive buffers.***

The VLC code (see "live555.cpp") sets the OS's internal receive 
buffer to 2,000,000 bytes for the video stream, and 100,000 bytes for 
the audio stream.

The easiest way for you to get the same buffering for "openRTSP" is 
to change the parameter of the call to "increaseReceiveBufferTo()" 
(in "liveMedia/MultiFramedRTPSink.cpp", line 73) from
	50*1024
to
	2000000
and then recompile.

Of course, if you are developing your own player client application, 
then you should call "increaseReceiveBufferTo()" there - as VLC does 
- rather than modifying the "LIVE555 Streaming Media" library code.
-- 

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


More information about the live-devel mailing list