Skip to content

MPEG-TS ingest

Sapsan ingests SPTS MPEG-TS streams in two ways: by listening on UDP (unicast and multicast, IPv4 and IPv6) and by pulling over HTTP.

UDP ingest

streams:
  tv1:
    inputs:
    - udp:
        host: 239.0.0.1
        port: 5000
        peer_timeout_ms: 5000

If host is a multicast group, Sapsan joins it itself (IGMP/MLD). peer_timeout_ms sets the silence timeout after which the input is considered down and LSI switches to a backup.

HTTP ingest

streams:
  tv2:
    inputs:
    - tshttp:
        url: http://origin.example.com/tv2/mpegts
        peer_timeout_ms: 5000

Chunked transfer is supported. A dropped connection and a silent source are distinguished (PeerClosed / PeerTimeout) and visible in the input status.

What is decoded

H264, HEVC, MPEG-2 video; AAC, AC3, EAC3, MPEG-2 audio; DVB teletext, KLV metadata, SCTE-35 markers; track language descriptors and DVB subtitle descriptors from the PMT.

Applying changes

On config reload, changing host/port (UDP) or url (HTTP) restarts the source; changing only peer_timeout_ms applies in place without a disruption.

Quality counters

Per-PID reception quality counters are collected: packets and frames, CC errors (continuity counter violations, including across interval boundaries), TEI errors, scrambled packets, PSI CRC errors, broken PES, decoder buffer (HRD) issues. See the Admin API and monitoring.

Next steps