SRT Proxy
Below is an example of configuration for an SRT proxy. This configuration sets up two SRT listeners: one for ingesting an SRT stream from a client and another for distributing that stream to a receiver. The receiver connects to the second SRT listener to pull the stream.
Both ends are SRT listeners: the contributor connects to the first, the receiver pulls from
the second. There is no transcoder, so the stream passes through untouched. The srt
types are equivalent to mpegts with an srt:// URL; see SRT for options.
toml
# Vindral Bridge Packager example
# Receive SRT as a listener and serve it unchanged to SRT callers.
version = "3"
# SRT listener. The encoder calls this port and pushes the stream.
[[sources]]
id = "srt-in"
source_type = "srt"
[sources.protocol_options.url]
type = "string"
value = "srt://0.0.0.0:10001?mode=listener"
# Sink - SRT listener. Client connects and pulls the stream from this instance.
[[sinks]]
id = "srt-out"
sink_type = "srt"
source_ids = ["srt-in"]
[sinks.protocol_options.url]
type = "string"
value = "srt://0.0.0.0:10002?mode=listener"