mpegtsmux: Enhancement: new property to optionally send TDT
Optionally send TDT (time and date table) according to EN 300 468. TDT contains one field - UTC time and is added periodically, e.g. once a second. Customers can use it, for instance, to save the stream and examine it later.
- Added property tdt-interval (in 90 KHz units) to mpegtsmux. Default is 0 (do not send), so that present default behavior does not change
- if tdt-interval is not 0, muxer periodically generates and sends TDT. Precision is 1s
Example pipeline sends TDT every second. This can be verified e.g. by opening it in Wireshark and looking for mp2t.pid==20
gst-launch-1.0 videotestsrc ! x264enc ! mpegtsmux tdt-interval=90000 ! udpsink port=20000
Edited by Tim-Philipp Müller