MPTS
About MPTS
MPTS is a Multi Program Transport Stream (MPEG-TS). It is widely used in DVB networks (satellite, cable, or terrestrial broadcasting). Flussonic can create MTPS as well.
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: input mpts-udp://
, or input mpts-http://
, or input mpts-https://
.
The previously used input udp://
is still supported for backward compatibility.
For each channel that you want to ingest, do the following steps:
-
Create a stream (Media > Streams > Add Stream) and specify the input, for example, mpts-udp://239.0.0.1:1234. Depending on the protocol, the following types of input URLs can be used:
- mpts-udp:// – ingest via UDP. Specify
program
(program ID of the channel) to make it work. For DVB-T2 MI also specifyplp
stream ID. - 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.
- mpts-udp:// – ingest via UDP. Specify
-
Click the name of the stream you've created, go to the Input tab and click Options next to the input URL. Enter the channel ID in the MPEG-TS program field.
-
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 {
input mpts-udp://239.0.0.1:1234 program=2001;
}
stream 2 {
input mpts-udp://239.0.0.1:1234 program=2002;
}
stream 3 {
input mpts-udp://239.0.0.1:1234 program=2003;
}