Skip to main content

RTMP to multiple RTMP sinks

Below is an example of a RTMP to multi-RTMP sink with passthrough. The example uses two different RTMP sinks, but you can add as many as you want.

The sinks read straight from the source, with no transcoder in between, so both outputs are passthrough copies of the incoming stream.

Replace the input host and stream key, then supply both RTMPS destinations. The placeholders ending in _2 identify the second output. Use each service's full publishing URL if its path differs.

Download rtmp-multi-rtmp.toml.

toml
# Vindral Bridge Packager example
# Forward one RTMP feed to two RTMP destinations without transcoding.

version = "3"

[[sources]]
id = "rtmp-in"
source_type = "flv"

[sources.protocol_options.url]
type = "string"
value = "rtmp://YOUR_INPUT_HOST/live/YOUR_INPUT_STREAM_KEY"

[[sinks]]
id = "rtmp-out-1"
sink_type = "flv"
source_ids = ["rtmp-in"]

[sinks.protocol_options.url]
type = "string"
value = "rtmps://YOUR_INGEST_HOST/publish/YOUR_STREAM_KEY"

[[sinks]]
id = "rtmp-out-2"
sink_type = "flv"
source_ids = ["rtmp-in"]

[sinks.protocol_options.url]
type = "string"
value = "rtmps://YOUR_INGEST_HOST_2/publish/YOUR_STREAM_KEY_2"