[Live-devel] Slow devices

Ross Finlayson finlayson at live.com
Tue May 3 20:12:39 PDT 2005


>I've been experiencing a few problems lately and I was wondering if
>you could hint me in on a solution. Whenever I stream data from a slow
>device, I get weird frames on the client side. On some version of
>Quicktime the stream will display GREEN frames and others it will
>display old (previously received) frames.

You could also try receiving/recording the stream using the "openRTSP" 
client, and then playing the recorded stream locally.  That will tell you 
whether or not proper MPEG data got sent

>Does it matter to the
>library if the delay to get a new frame from a device varies (i.e.
>sometime getting a new frame will take 30ms, other times it will take
>150ms)?

Probably not, as long as "fPresentationTime" gets set to the exact ('wall 
clock') time at which the capture occurred (completed).

The symptoms you describe seem consistent with "fPresentationTime" not 
being set correctly.

>  Does it matter if the call to fill fTo is blocking
>(encoder->encodeFrame(fTo) in doGetNextFrame)?

That's not ideal, because it will stop other events.from being handled at 
the same time.  However, if your application doesn't do anything else, then 
you can probably get away with this.


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



More information about the live-devel mailing list