[Live-devel] presentation time jumps
Ross Finlayson
finlayson at live555.com
Fri Feb 16 15:26:43 PST 2007
>Dear all,
>
>I am streaming H.264 video from my server to my own client-player.
>
>On the server side, My H264VideoStreamFramer sets the presentation time
>to gettimeofday() for the first frame and then increments by
>fDurationInMicroseconds for the other frames.
>
>However, the presentation time received by the client is not
>monotonically increasing. For my test video of 194 frames, it first
>starts with some value about 7500secs and jumps to about 2500 around
>80-90th frames. I think this might be caused by RTCP synchronizations.
>Is that normal?
Yes.
> If it is, what would be the proper way to handle this
>behavior in my client?
Use "RTPSource:: hasBeenSynchronizedUsingRTCP()" to test whether an
incoming frame's presentation time has been computed using RTCP
synchronization. (Those are the only presentation times that can be
considered accurate.)
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list