[Live-devel] Develop H.264 Support
Jerry Johns
jerry.johns at gmail.com
Wed Dec 27 19:10:58 PST 2006
yup, SEI contains the timing info - if you have a stream like mine which
doesn't have SEI in it, then all is not lost
you have to compute presentation time yourself, which sorta sucks, but's
doable
if your encoder is simple enough, if you come across a NAL unit which is a
slice unit (type a, b, idr, etc..there's like 4 types listed in the table of
NAL types)
then first you have to figure out how many slices compose the current frame;
there is a variable in the slice (or in the PPS, i'm not sure) that tells
how many slices make up the current frame
if your framerate is constant (it should be), e.g 30fps, then your
fPresentationTime should += 33ms for each frame (so for e.g 3 slices in one
frame, all should get same timestamp)
this worked for me, but i got problems with drift since i wasn't synced with
my video source...if your playing from a file, all's good and dandy, but if
your streaming from a live source,
then get your 'current frame time' for the dequeued frame you got from the
source..that way you never lose sync.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.live555.com/pipermail/live-devel/attachments/20061227/c365bae9/attachment-0001.html
More information about the live-devel
mailing list