RTMP publishing¶
An encoder sends the broadcast to one Optic streamer. If the cluster moves processing to another server, the encoder keeps publishing to the same URL as long as the receiving streamer is available.
If Accept publisher connections is enabled on the streamer and the encoder can reach its RTMP port, go to stream setup.
Set up RTMP reception on a streamer¶
You need permission to edit streamers and streams. Choose a streamer with edge mode turned off to receive the broadcast.
- Open Cluster → Streamers and select a streamer the encoder can reach.
- On the Cluster tab, check Accept publisher connections. This setting allows the encoder to connect to this streamer. It is enabled by default. If it is off, turn it on.
- On the Server tab, set the rtmp port, for example
1935. Allow connections to this TCP port from the encoder's network. - Save the settings. Repeat the setup on each streamer that should receive broadcasts. Each streamer can use a different port.

Quick start with OBS¶
- Under Streams, create or open a stream and go to the Sources tab.
- In a new stream, select Publish in the Protocol field. To keep your existing sources, click + Add Source and select Publish for the new source.
- Under RTMP publishing, set the Stream key and click Save. To generate a new key, click Regenerate key.
- Once the streamers apply the settings, the Publish URL appears here. If several URLs appear, choose one the encoder can reach. The same stream key works with all of them.
- In the OBS stream settings, select a custom RTMP server. Paste the Publish URL into Server and the Stream key into Stream Key. Start streaming.
- In Optic, open the stream’s Basic Settings tab and start the player. Check that you can see the video from OBS and hear the audio.

The screenshot shows a local setup. On your stream’s page, copy a Publish URL that your encoder can reach.
Publish with FFmpeg¶
Follow the first four quick start steps to get the publish URL. Click Copy URL with key next to the address you want. Replace the example value on the first line with the copied URL. The command sends a test pattern and an audio tone. Press Ctrl+C to stop.
RTMP_URL='rtmp://optic.example.org:1935/live/Abc012._-Z'
ffmpeg -hide_banner \
-re -f lavfi -i 'testsrc2=size=1280x720:rate=25' \
-f lavfi -i 'sine=frequency=440:sample_rate=48000' \
-c:v libx264 -preset ultrafast -pix_fmt yuv420p -b:v 1800k -g 50 \
-c:a aac -b:a 128k \
-f flv -rtmp_playpath "${RTMP_URL##*/}" "$RTMP_URL"
Check what Optic receives¶
The Sources tab shows the tracks Optic receives. The FFmpeg example sends H.264 video and AAC audio. To check the broadcast, start the player on the Basic Settings tab.

If publishing does not work¶
| What you see | What to do |
|---|---|
| An expected publish URL is missing | Check the RTMP port and Accept publisher connections on the streamer. If the cluster uses required tags, check the stream and streamer tags. |
| The stream page asks for a public address | In the streamer settings, open the Cluster tab and enter a hostname or IP address the encoder can reach in Public media address. Save and return to the stream. |
| The receiving streamer goes offline | Copy another Publish URL from the stream page and reconnect the encoder with the same key. |
| OBS is streaming but the player shows another source | Check which source is selected on the Sources tab. If a higher-priority source is active, the publication stays connected as a backup. |
Stream key and switching encoders¶
A custom key must contain at least five characters. You can use Latin letters, digits, periods, hyphens and underscores.
To switch encoders, stop the first broadcast, then connect the new encoder with the same key. A stream accepts one encoder at a time, even when the encoders connect to different streamers.
To revoke the key, replace or clear it and click Save. The current RTMP broadcast ends when the receiving streamer applies the change.