Skip to content

MPTS

About MPTS

MPTS is a Multi Program Transport Stream (MPEG-TS). It is widely used in DVB networks (satellite, cable, or terrestrial broadcasting).

As a rule, the Internet works with single-program (SPTS) streams, therefore you can use Flussonic Media Server to "parse" MPTS into separate streams and distribute them to a local network via UDP, or broadcast to the Internet via HLS, DASH, RTMP, and other protocols.

As a rule, MPTS is received via UDP from multicast groups, but getting it via HTTP is also possible.

Caution

Do not capture MPTS stream via HTTP. It consumes a lot of server resources. Most probably, your source can provide SPTS streams.

MPTS ingest

To configure ingest over MPTS, you will need to know in advance the ID (Program ID) of each channel within the MPTS stream. For this you can use, for example, the utility ffprobe.

Caution

Starting from v19.11, Flussonic can take all necessary SPTS streams out of MPTS by reading MPTS only once. To use this feature, use the following source URLs: url mpts-udp://, or url mpts-http://, or url mpts-https://. The previously used url udp:// is still supported for backward compatibility.

For each channel that you want to ingest, do the following steps:

  1. Create a stream (Media > Streams > add) and specify the source, for example, mpts-udp://239.0.0.1:1234. Depending on the protocol, the following types of source URLs can be used:

    • mpts-udp:// – ingest via UDP. Specify program (program ID of the channel) to make it work.
    • mpts-http:// – ingest via HTTP. Specify program (program ID of the channel) to make it work.
    • mpts-https:// – ingest via HTTPS. Specify program (program ID of the channel) to make it work.
    • udp:// – not recommended.
  2. Go to source options (Input > Options) and enter the channel ID in the MPEG-TS program field.

  3. Save the settings.

Repeat the steps for each program in MPTS stream.

Other parameters that you can use: pids and subtitles. Learn more about source configuration.

Example

Example of configuration for ingesting three programs, as it appears in the file /etc/flussonic/flussonic.conf:

stream 1 {
  url mpts-udp://239.0.0.1:1234 program=2001;
}

stream 2 {
  url mpts-udp://239.0.0.1:1234 program=2002;
}

stream 3 {
  url mpts-udp://239.0.0.1:1234 program=2003;
}