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<br>you have to compute presentation time yourself, which sorta sucks, but's doable<br>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)
<br>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<br>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)<br><br>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,
<br>then get your 'current frame time' for the dequeued frame you got from the source..that way you never lose sync.<br><br><br>