[Live-devel] Regarding the h264 video stream's rtp packet timestamp

Ross Finlayson finlayson at live555.com
Sun Oct 20 01:29:31 PDT 2013


>    In the videoframesource’s getnextframe, if the buffer is nalu, not completely frame. So the fPresentationTime and fDurationInMicroseconds should only be set when the buffer is the last nalu in current frame.
>          Is it right?

Not quite.  "fPresentationTime" should be set for every NAL unit that you deliver.  However, for NAL units that make up the same access unit, the "fPresentationTime" value will be the same.

Also, if you are streaming from a live source (i.e., from an encoder), rather than from a file, then you don't need to set "fDurationInMicroseconds" at all.  If, however, you are streaming pre-recorded video (e.g., from a file), then you will need to set "fDurationInMicroseconds" for the last NAL unit of the access unit (and leave "fDurationInMicroseconds" for the other NAL units at the default value of 0).


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131020/ef77e040/attachment.html>


More information about the live-devel mailing list