mpegtsmux: Add SCTE-35 support
authorEdward Hervey <edward@centricular.com>
Thu, 26 Sep 2019 15:45:31 +0000 (17:45 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Thu, 31 Oct 2019 12:31:27 +0000 (12:31 +0000)
commitef16d7558f5f3efc38a5b8b154e44db797bb038a
tree1f3ff543839815afbd8aad14da737c867a6fbde2
parent6a9108884c6a92a20b907745f95d77ef75afdf57
mpegtsmux: Add SCTE-35 support

This adds two properties:
* scte-35-pid: If not 0, enables the SCTE-35 support for the current
  program. This will write the proper PMT and send SCTE-35 NULL
  commands (i.e. heartbeats) at a regular interval
* scte-35-null-interval: This specifies the interval at which the
  NULL commands should be sent

Sending SCTE-35 commands is done by creating the appropriate SCTE-35
GstMpegtsSection and then sending them on the muxer. See the
associated example
gst-libs/gst/mpegts/gst-scte-section.h
gst/mpegtsmux/gstbasetsmux.c
gst/mpegtsmux/gstbasetsmux.h
gst/mpegtsmux/tsmux/tsmux.c
gst/mpegtsmux/tsmux/tsmux.h
gst/mpegtsmux/tsmux/tsmuxcommon.h
tests/examples/mpegts/meson.build
tests/examples/mpegts/ts-scte-writer.c [new file with mode: 0644]