tsparse: Implement timestamp/retimestamping of output buffers
authorJan Schmidt <jan@centricular.com>
Wed, 29 Oct 2014 11:58:37 +0000 (22:58 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 29 Oct 2014 12:02:50 +0000 (23:02 +1100)
commita49ce685d1b00fe7eb1fd3982847b58b0f8245a8
tree9ada9ef7467be0cc7ff40f92d75e127abfa0de80
parent9f69bcbfe5ccca672c2042beafda94d37e677148
tsparse: Implement timestamp/retimestamping of output buffers

When the set-timestamps property is set, use PCRs on the provided
(or autodetected) pcr-pid to apply (or replace) timestamps on the
output buffers, using piece-wise linear interpolation.

This allows tsparse to be used to stream an arbitrary mpeg-ts file,
or to smooth jittery reception timestamps from a network stream.

The reported latency is increased to match the smoothing latency if
necessary.
gst/mpegtsdemux/mpegtsbase.c
gst/mpegtsdemux/mpegtsbase.h
gst/mpegtsdemux/mpegtsparse.c
gst/mpegtsdemux/mpegtsparse.h