[Live-devel] non monotonic timestamps in mpeg transport stream

Ross Finlayson finlayson at live555.com
Wed Sep 16 23:46:38 PDT 2009


>I've got a source (hardware encoder) which delivers MPEG2 transport
>stream frames with PCR's that are non-monotonic. This completely breaks
>the MPEG2TransportStreamFramer as it uses these to determine the packet
>duration. Anyone have any idea whether (a) it's even valid for the
>hardware encoder to do this

I don't believe it is, no.


>  and (b) how to calculate a sensible duration
>when this is the case?

I suggest reprocessing your Transport Stream files (before you index 
and/or stream them) so that their PCRs make sense.

-- 

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


More information about the live-devel mailing list