[Live-devel] Streamer eats up Cpu.

Ross Finlayson finlayson at live.com
Mon Mar 14 18:28:54 PST 2005


>I have implemented a RTP/RTCP streamer with C++ Builder 5.0 on Win2000.

Without more details it's hard to figure out what might be going 
wrong.  But you should check that your data source sets 
"fDurationInMicroseconds" correctly when it delivers each frame of 
data.  If you don't set it (or just set it to 0, which has the same 
effect), the the RTPSink won't delay at all before requesting a new frame 
of data.

If your data source is naturally rate limited (e.g., it comes from a live 
camera or microphone), then it's OK to not set 
"fDurationInMicroseconds".  But it your source is *not* naturally rate 
limited (e.g., if data comes from a file), then you *must* set 
"fDurationInMicroseconds".  (If your data source is a 
"ByteStreamFileSource", then note the "playTimePerFrame" parameter to 
"ByteStreamFileSource::createNew()".)


	Ross Finlayson
	LIVE.COM
	<http://www.live.com/>



More information about the live-devel mailing list