[FFmpeg-devel] [RFC] mpegts: Provide a monotonic timestamp to the outside world

Joakim Plate elupus at ecce.se
Mon Oct 22 10:04:11 CEST 2012


Hendrik Leppkes <h.leppkes <at> gmail.com> writes:

> Hi,
> 
> I handle the wrapping in my application directly, and IMHO thats the
> proper thing to do. The demuxer should expose the timestamps as they
> are specified in the file, and anyone trying to consume a MPEG-TS file
> needs to be able to deal with these kinds of timestamps (timestamps in
> MPEG-TS are not really guaranteed to be fully continuous, i have
> plenty samples where it just jumps around in the middle of the
> stream).
> If any such hacky mode is added to "invent" new timestamps, it should
> be purely optional (controlled by a private option, for example), and
> not be enabled by default.
> 

While I technically agree, this implies that the seeking code in ffmpeg could 
handle wrapping timestamps, which it currently can't (real cause of this patch, 
since flat playback works fine).

I do agree it probably have to be optional to get the original timestamps out.





More information about the ffmpeg-devel mailing list