[Live-devel] problem by changing the framerate

Ross Finlayson finlayson at live555.com
Tue Oct 27 13:25:37 PDT 2009


>I have a program that I use to stream PAL video encoded with H.264. 
>Everything works fine, but if I try to halve the framerate the 
>player VLC crashes, while mplayer works (but I think it does some 
>form of concealment).

I can't help you with VLC; this is not a VLC mailing list.

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?

You shouldn't have to know or care about RTP timestamps; these will 
get set automatically by the code, provided that the 
"fPresentationTime"s are correct.  (H.264-over-RTP always uses a 
90000 Hz RTP timestamp frequency.)  (Therefore any future questions 
about RTP timestamps will be ignored.)
-- 

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


More information about the live-devel mailing list