SrtPcapInputSettings interface

Settings for an SRT pcap input node.

Experimental: passive SRT probe from a packet capture. The node replays the SRT sessions found in a classic pcap file as if they had been sent to an SRT listener: one connection per session, the same connection callbacks and health events as NorskInput.srt() in listener mode, and the node closes once the capture has been delivered. see: NorskInput.srtPcap()

Signature:

export interface SrtPcapInputSettings extends InputSettings<SrtPcapInputNode>, StreamStatisticsMixin

Events

Property Type Description

onConnection?

( streamId: string, index: number, remoteHost: string) ⇒ SrtConnectionResult

(Optional) Called for each SRT session found in the capture, as SrtCommonInputSettings.onConnection. remoteHost is the sender’s ip:port.

onConnectionHealth?

(health: SrtConnectionHealth) ⇒ void

(Optional) Called periodically with per-connection health, as SrtInputSettings.onConnectionHealth.

onConnectionStatusChange?

( status: SrtInputStatus, sourceName: string | undefined, index: number, health?: InputHealthStatus) ⇒ void

(Optional) Called when a connection’s status has changed (e.g. when a session of the capture has ended)

Properties

Property Type Description

debugDumpSource?

string

(Optional) When specified dump the raw source input for debug purposes to the given directory

fileName

string

Absolute path of a classic pcap file on the engine host

healthSampling?

HealthSamplingSettings

(Optional) Per-connection health sampling, as SrtInputSettings.healthSampling. On by default. A session’s final statistics are reported for three health intervals after its end, before the connection is reported as disconnected.

healthThresholds?

HealthThresholdsSettings | "recommended"

(Optional) Opt-in thresholds for degraded / recovered, as SrtInputSettings.healthThresholds.

onSourceTimeStateChange?

(sourceTimeState: SourceTimeState) ⇒ void

(Optional) Called when either a VITC timecode is detected, or having previously detected a timestamp it stops being present

onTsContext?

(context: SrtTsContext) ⇒ void

(Optional)

onTsTable?

(table: SrtTsTable) ⇒ void

(Optional) Callback to be invoked on receiving a TS PSI/SI table/section

playbackRate?

number

(Optional) Playback rate multiplier: capture time is replayed at this many times realtime. Defaults to 1 (realtime).

programFilter?

number

(Optional) Optionally filter a single program from MPTS at decode time

statsPollIntervalMs?

number

(Optional) Interval in milliseconds at which to sample the per-connection SRT statistics. When unspecified a default is used.

timeDomain?

TimeDomain

(Optional) Optional time-domain configuration, as SrtCommonInputSettings.timeDomain.