HLS / HTTP, RTSP and RTMP¶
The transports in this group work on the node-as-client scheme: the node itself always establishes the connection, not the far side. They therefore have neither a listening port nor a mode choice: a full URL is specified instead of an address and a port. Reception into MPEG-TS and the limitations of each source are described in Other inputs and outputs and RTMP publishing and reception.
HLS / HTTP¶
The input fetches MPEG-TS over HTTP: it either parses an HLS playlist and downloads the segments, or reads a continuous stream from the server response (HLS / HTTP input). Available only to SPTS streams; there is no output of this type, and HLS delivery is configured on the OTT tab of the stream itself (OTT and DVR).
Input¶
Field |
Purpose |
Values |
|---|---|---|
URI |
The address of the playlist or the stream. Only the |
|
Login, Password |
The HTTP credentials. The node does not send them right away: an ordinary request is made first, and only on a 401 response is the request repeated with the authorisation scheme the server named. The credentials are attached both to the playlist and to every segment. The pair works as a whole: a login with an empty password is not used. |
empty by default |
Mode |
How to treat the server response. Auto-detect: by the content type; a playlist type means HLS parsing, any other means reading a continuous MPEG-TS. HLS: always parse as a playlist (for servers that serve a playlist with an incorrect content type). Plain HTTP / MPEG-TS: always read the stream without parsing. |
Auto-detect (default), HLS, Plain HTTP / MPEG-TS |
Client timeout (s) |
The timeout of a single network operation (connecting, sending the request and reading the response), both for the playlist and for every segment. A smaller value speeds up the switch to the backup input, a larger one is more tolerant of a distant or slow source. |
from 1, default 10 |
Adaptive stream id |
Which variant to take from the master playlist, by the order of listing in the playlist, counting from one, not by bitrate. A value greater than the number of variants selects the last one. For an ordinary (non-master) playlist the field has no effect. |
from 1, default 1 |
Chunks preloading |
How many segments are downloaded at the same time. One means strictly sequential downloading; a larger value hides the latency of the link to the source and helps to catch up, but opens as many parallel connections. |
1–10, default 1 |
User-Agent |
The value of the |
empty by default |
Cookies |
A ready-made value of the |
empty by default |
Disable URL encode |
Send the path and the query parameters undecoded. Needed for servers that handle percent-encoding in playlist links incorrectly; for a correct server, enabling it may on the contrary corrupt the link. |
disabled by default |
Trace |
Detailed logging: every request and its result, redirects, the body of the playlist, the queue and the size of the segments. A diagnostic setting; in normal operation it is off. |
disabled by default |
Reception details that matter for diagnostics: the segments must be MPEG-TS (a playlist with fMP4/CMAF segments is not accepted); the node follows no more than three redirects in a row; the server certificate is not verified with https.
RTSP¶
The input opens an RTSP session, reads the elementary streams and remultiplexes them into MPEG-TS (RTSP input). For SPTS streams only; there is no output of this type.
Input¶
Field |
Purpose |
Values |
|---|---|---|
URI (rtsp://…) |
The full address of the RTSP session. A required field. Unlike the HLS input, the scheme is not checked here when saving; an error in it will show up when the input starts. |
|
Login, Password |
The RTSP credentials. The node substitutes them into the session address, so from there on the authorisation scheme required by the camera applies. The login is used with an empty password too. If the address already contains credentials, the values of these fields replace them. |
empty by default |
Transport |
The RTP transport inside the session. UDP: separate datagrams, the lowest latency, sensitive to losses. TCP: RTP inside the control connection, passes NAT and firewalls. HTTP: an RTSP tunnel over HTTP for passing through a proxy. |
UDP (default), TCP, HTTP |
Client timeout (s) |
The time limit of a single network operation of the session. Once it expires, a silent source is considered failed, and the stream switches over or reconnects. |
from 1, default 10 |
User-Agent, Cookies |
The values of the request fields of the same names, for devices that answer only known clients and for sessions bound to a cookie. |
empty by default |
Trace |
Logs the session state changes to the stream log. |
disabled by default |
RTMP¶
Input of type rtmp pulls a stream from an RTMP or RTMPS server by URL, an output publishes the stream to an external receiving point. Since version 2.1.2.551 an input of type rtmp-push accepts an encoder’s publication on the RTMP server of the node itself (rtmp-push input). More in RTMP publishing and reception. For SPTS streams only.
Input¶
Field |
Purpose |
Values |
|---|---|---|
URL (rtmp(s)://…) |
The address of the source. A required field. |
|
Bind interface |
The local interface of the outgoing connection, chosen from the list of the node’s interfaces. |
any by default |
Client timeout (s) |
The connect and read timeout. |
1–120, default 10 |
Verify TLS certificate |
For |
disabled by default |
Trace |
Logs the RTMP connection state changes to the stream log. |
disabled by default |
rtmp-push input¶
Important
Beta version 2.1. What is described here exists only in beta version 2.1: it is installed from the beta repository and only with a licence; the stable version 2.0.2 and the demo edition do not have it. The beta version comes without warranty, and support is best effort (Beta testing programme).
Field |
Purpose |
Values |
|---|---|---|
“Stream key” |
The key with which an encoder publishes to the node’s RTMP server; it selects this input and is unique on the node. A secret: shown hidden to the Restricted admin and Viewer roles, and a hidden value on saving leaves the previous key. A new key reconnects the input. Required field. |
12–128 printable ASCII characters without spaces, |
“Takeover” |
On: a new encoder with this key displaces the one on air. Off: the new one is refused while the previous one is publishing. |
disabled by default |
Client timeout (s) |
How long the input waits for a publication before it is considered lost. |
1–120, default 10 |
Trace |
Logs the RTMP connection state changes to the stream log. |
disabled by default |
Under the key field are “Generate” (a random key of 24 letters and digits), “Copy key” and “Publish URL for the encoder:” with the “Copy publish URL” button. If the node’s RTMP server is off, the window writes “The RTMP server of this node is off: …” with an “Open RTMP server” link; the screen opens in a new tab, and the draft of the input window is not lost (RTMP server). A key that is already taken by another rtmp-push input of the same stream is not accepted by the window. When a stream is cloned, its rtmp-push inputs get new keys — they must be passed on to the encoders. A new input, like any, is added paused, and a paused input does not accept publications: start it.
Output¶
The same fields as the input, plus:
Field |
Purpose |
Values |
|---|---|---|
Allow HEVC (Enhanced RTMP) |
Allow publishing HEVC through the Enhanced RTMP extension. Disabling it does not convert the stream to H.264: only an H.264 source is published, while an HEVC source is not published at all when the setting is off. The reason is visible in the output statistics. |
enabled by default |
One programme is published: one video and no more than one AAC audio track. The tracks do not have to be selected manually: the output itself takes the first suitable video and the first AAC track, discards the rest and lists what was discarded in the statistics. Publishing fails only when there is no suitable video at all. If the stream itself needs to be limited, PID filters are set on the MPEG-TS PID tab of the input window and apply to the whole stream, with all its outputs (MPEG-TS filtering).