[Live-devel] problem by changing the framerate

Ross Finlayson finlayson at live555.com
Tue Oct 27 19:15:07 PDT 2009


>>However, you should - as always - make sure that each of your H.264 
>>NAL units (coming from your "H264VideoStreamFramer" subclass)
>>1/ Have an accurate "fPresentationTime" (which is aligned with the 
>>'wall clock' time that you'd get by calling "gettimeofday()", and
>>2/ Have accurate "fDurationInMicroseconds" values
>>
>>Since the only thing you've changed is the frame rate, perhaps one 
>>or both of these things didn't get changed correctly?
>
>is it normal that fDurationInMicroseconds is set to 0 each time 
>deliverFrame is called?

You must set "fDurationInMicroseconds" *yourself*, in your 
"H264VideoStreamFramer" subclass.  You set its value when you copy 
the new frame data to the downstream object's buffer - i.e., before 
you call "FramedSource::afterGetting".  You set "fPresentationTime" 
and "fFrameSize" at the same time.  (See "liveMedia/DeviceSource.cpp")
-- 

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


More information about the live-devel mailing list