A pipeline is one live input. The + at the top of the sidebar opens a form for its
name, stream key (the next free one is selected) and group, and saving it creates the pipeline.
The pipeline panel's Publish to this input card shows one input mode at a
time (RTMP or SRT), chosen with the buttons at its top. It
follows the encoder: when a publisher connects the card switches to the mode it is
using (marked with a green dot; an encoder sending SRT straight to SRS opens the SRT mode
without the dot, since the card does not offer that port), and until the mode changes
again a mode you picked stays. Each row shows a value, shortened with an ellipsis if it is long, and a
copy button (two overlapping squares): server URL, key, stream ID or passphrase separately for encoders
that ask for them in separate fields, and the full publish URL (SRT has two: Single-link URL for an ordinary encoder, and Bonded URL for one that sends over several links). The stream key and
stream ID are masked after their keyNN_ prefix (key01_••••••••) and the passphrase
entirely; the eye button beside each shows the real value for 15 s, for typing it
into an encoder by hand. Copy always copies the real value. When another pipeline uses the
same stream key (a primary and its backup, say), a yellow line under the rows names it:
only one of them can publish at a time.
| Protocol | Port | URL shape |
|---|---|---|
| RTMP | 21935/tcp | rtmp://<public-host>:21935/live/<stream-key> |
| SRT (single link) | 10081/udp | srt://<public-host>:10081?mode=caller&streamid=#!::r=live/<stream-key>,m=publish&passphrase=<passphrase>&pbkeylen=16 |
| SRT (bonded) | 10081/udp | srt://<public-host>:10081?mode=caller&grouptype=broadcast&streamid=#!::r=live/<stream-key>,m=publish&passphrase=<passphrase>&pbkeylen=16 |
<public-host> is the Public Host set in Settings. It is empty on a new install:
the dashboard shows a banner asking for it, and the publish URLs use localhost until
you set it. The SRT passphrase is
generated at install time and can be reset in Settings; see SRS and SRT relay config.
The repository's default passphrase is for development; an installed server replaces it
with a generated secret. Copy the current passphrase from the dashboard rather than
assuming the default.
Prefer SRT when the encoder supports it: it has fixed, predictable latency, survives lossy networks better than RTMP, and keeps every audio track. Use bonded SRT for encoders that send the same stream over several network links (for example cellular bonding units); the SRT relay (Goryu) merges the links before SRS sees the stream.
SRT goes through the relay in both cases. For an ordinary encoder use the single-link URL; the dashboard shows it as an "SRT input via relay" with the encoder's IP, instead of a bonded group. SRS's own SRT port (10080) is not offered in the dashboard, because SRS does not expose packet loss, retransmit or drop counters for an SRT publisher: a stream sent straight to it has no link statistics or loss alerts (its input card says so and points to the SRT mode), while through the relay you get them. An encoder already publishing to 10080 keeps working. The relay adds about 200 ms and a second process that SRT inputs depend on; see SRT ingest. While an encoder is publishing through the relay, the pipeline shows the SRT Relay card under the input's video and audio details, whichever Publish mode is selected. It keeps a compact summary visible; select the Detailed stats icon (bars) in the card's top right corner to open a dialog sized to its input, per-leg, output and graph content, within the screen width. It refreshes live statistics with the dashboard's regular poll. At the top of the dialog each leg has its own loss and drop charts, each with its own value axis, so a leg with far larger counts does not flatten the others. The axis spans the counts in the window, not zero up, so a new drop stands out even after hours of accumulated ones. A leg's two charts sit side by side when the dialog is wide enough. What is wrong with the link or the forward to SRS (a leg down, dropped packets, no media reaching SRS) is listed in the card under the legs, with an info icon for the advice, as the input's problems are above; a healthy relay lists nothing. The card's circle only shows the colour: the left half is the SRT input, the right half the forward to SRS.
The card's L / R / D figures (packets lost, retransmitted and dropped) count the last 10 minutes, not the whole session; the label shows the window (less than 10 min for the first minutes after a link connects), and hovering a figure names the counts. A link with nothing lately is dimmed so a burst stands out. A bonded input as a whole fills in only D (Drop; L and R show a dash), the packets still missing after the legs backed each other up; that is what actually damages the stream, so it turns amber when it is above zero. A drop on one leg does not: the other leg usually delivered the packet. The Overview's SRT Relay table uses the same figures; the dialog's detailed rows (the totals since the stream connected) and graphs are cumulative.
When the relay has recorded an error, a History button (clock icon, as on an output) appears beside the card's title and opens it. The relay keeps only its latest error per stream, and keeps it across reconnects, so the card shows the error line and turns the button red only while it is unresolved: the stream is up and has not forwarded a packet since the error. Once packets flow again, or the stream is idle, the line goes away and the error stays in History.
Because the relay forgets that error when the session ends, each new one is also written to the pipeline log as "Relay error: …". A stream that keeps failing the same way (a rejected key retries every few seconds) stays one line, updated to "(seen N times over 3 min)" instead of filling the log; N counts the errors a 5 s poll saw, so it can be lower than the relay's own retries.
Whatever the protocol, the pipeline's log records the encoder's address each time a
publisher connects (Publisher: rtmp from <ip>), which is how you tell afterwards
which encoder was on a key. A bonded input logs its legs instead.
The log also records when a leg's quality turns bad and when it recovers, because the
warning on the dashboard disappears once the leg is healthy again. A line such as
Bonded leg 203.0.113.10:10081: Leg packet quality is degraded over the last minute (0.2% loss, 0.2% drop).
shows as a warning (an error when the leg is failing), and back to normal follows once
the leg has stayed healthy for 30 s. A plain SRT input is logged the same way as
SRT input from <ip>:<port>. Standby and connecting legs are not logged for this, and
at most 4 such lines a minute are kept per pipeline; the number hidden is added to the
next line, and every change is in the diagnostics.
Pipeline buttons
Hover a pipeline in the sidebar to show its History, Edit (name, stream key, group) and Delete buttons. Delete is greyed out while any of its outputs is running. A touch screen does not show them.
Pipeline groups
Groups fold related pipelines together in the sidebar. Everything is done in the sidebar, and each change is saved at once:
- Add: the folder button beside + at the top of the list asks for a name.
- Rename or delete: the pencil and bin on a group's header (shown on hover; a touch screen does not show them). Deleting a group deletes the pipelines in it and their outputs, and asks first, listing them. As for deleting one pipeline, it is refused while any of those pipelines has an output that is not stopped: stop those outputs, or drag the pipeline into another group, first.
- Reorder: drag a group's header or a pipeline's row (anywhere on it, not only the name); drop a pipeline on a group to move it in. A pipeline's group can also be set in its edit dialog.
- Collapse: the arrow folds a group; the choice is kept per browser.
A dropdown that lists pipelines (an output's destination pipeline, the Logs events filter) follows the sidebar's order, under a heading per group once groups are in use.
Copy a configuration to another server
Settings → Configuration has two buttons that copy every group, pipeline and output of this server and add them to another one, to set up a second Bunryu without retyping:
- Copy configuration puts the groups, each pipeline with its group, and its outputs on the clipboard. Stream keys are not copied: every server has its own.
- Paste configuration adds what the clipboard has and this server lacks. Groups and pipelines are matched by name, ignoring case. A pipeline that exists gets the pasted outputs it does not have yet (an output whose destination it already uses is skipped, as when pasting outputs) and, only if it is in no group, the pasted group; one that is in a group stays there. A pipeline that does not exist is created, in its group (which is created too if missing), with the next free stream key. When the keys run out, the remaining new pipelines take the last key, and the message says so: they then share a key, which the dashboard flags, so give each its own. The pasted outputs start stopped, and nothing running is touched.
Point each encoder at the new server's pipeline key and URL after pasting.
Pipeline names are unique, ignoring case: creating or renaming a pipeline to a name another one has is refused.
Test commands
These ffmpeg commands publish a test stream. Replace localhost with the
server address, and <stream-key> / <passphrase> with the values from the
dashboard.
Without a camera, file or destination
This generates a test card and a tone, so you need no encoder, video file or platform account:
ffmpeg -re -f lavfi -i testsrc2=size=1280x720:rate=30 \
-f lavfi -i sine=frequency=440 \
-c:v libx264 -preset veryfast -b:v 2500k -pix_fmt yuv420p -g 60 \
-c:a aac -b:a 128k \
-f flv rtmp://localhost:21935/live/<stream-key>
To see an output run without a real destination, forward one pipeline into another on the same server:
- Create two pipelines, A and B.
- Add an output to A with the destination
rtmp://localhost:21935/live/<stream-key-of-B>. An output may connect to loopback only on the server's own RTMP/SRT ports. An output cannot point back at its own pipeline. - Run the command above with A's stream key.
A goes live and its output shows running, and B goes live with the forwarded stream. Preview either one.
From a file
These commands publish a looping file.
RTMP:
ffmpeg -re -stream_loop -1 -i video.mp4 \
-c:v libx264 -preset veryfast -b:v 2500k -c:a aac -b:a 128k \
-f flv rtmp://localhost:21935/live/<stream-key>
SRT, single link, through the relay (if the passphrase check is disabled, drop
&passphrase=<passphrase>&pbkeylen=16; for a bonded group add grouptype=broadcast):
ffmpeg -re -stream_loop -1 -i video.mp4 \
-c:v libx264 -preset veryfast -b:v 2500k -x264-params "repeat-headers=1" \
-c:a aac -b:a 128k \
-f mpegts 'srt://localhost:10081?mode=caller&streamid=#!::r=live/<stream-key>,m=publish&passphrase=<passphrase>&pbkeylen=16'
SRT with multiple audio tracks (for example one per language):
ffmpeg -re -stream_loop -1 -i video.mp4 \
-map 0 \
-c:v libx264 -preset veryfast -tune zerolatency -b:v 2500k \
-x264-params "repeat-headers=1" \
-force_key_frames 'expr:gte(t,n_forced*2)' -g 60 -keyint_min 60 -sc_threshold 0 \
-c:a aac -b:a 128k \
-f mpegts 'srt://localhost:10081?mode=caller&streamid=#!::r=live/<stream-key>,m=publish&passphrase=<passphrase>&pbkeylen=16'
Checking the input
Once a publisher connects, the pipeline turns live and the dashboard shows the
input's codec, resolution, frame rate, bitrate and audio tracks (from ffprobe),
and how far apart its keyframes are (Keyframes, measured over 12 s of video about
a minute after the publisher connects; "1 in 12 s" means a single keyframe in that time). YouTube needs a keyframe at least every 4 s
and recommends 2 s; with a longer interval the pipeline gets a warning alert, and a
preview starts late. Set the encoder's keyframe interval to 2 s (the commands above
do). Preview plays the input in the dashboard.
The input is probed once when the publisher connects (and again every 30 s while the probe fails). After changing something on the encoder without reconnecting it, press the refresh button next to probed ... ago to read the input again. The keyframe interval is measured only once per publisher, so the button does not repeat it.
Whatever is wrong with the input (no audio track, a very low bitrate, an alert) is listed in yellow under these lines, and in the hover text of the input's status dot (without the advice). The info icon at the end of a line shows what to do about it when you hover or focus it. A probe error and the two waiting states (ffprobe still running, media not yet valid) say how long they have lasted ("since 5 min ago"), in your time, on the pipeline page, the status dots and the Overview alike.
Send progressive video (1080p50, not 1080i25): the dashboard writes the scan in
the stream specification, and an interlaced input gets a warning alert, because YouTube
does not support interlaced video (it warns of artifacts). Set the encoder's output to
progressive scan.
Preview
The preview is an HLS stream made by the server's FFmpeg. The input's video is copied unchanged, and only the audio is re-encoded to AAC.
- Browser: only Chrome is supported. HEVC inputs play only where Chrome can decode HEVC; otherwise you get audio without picture.
- Server cost: a few percent of one core per open preview (about 9% for a 1080p input with two audio tracks). Previewing is fine even on a 2 vCPU server.
- Bandwidth: each viewer receives the input's full bitrate, for example about 6 Mbps for a typical 1080p input, through the dashboard (and the Cloudflare Tunnel, if used).
- Audio tracks: an input with several audio tracks gets a track selector; the switch happens in the browser, without restarting the preview.
- Delay: segments start on the input's keyframes, so an encoder with a long keyframe interval (e.g. 6–10 s) makes the preview start slower and run further behind live. A 2 s keyframe interval, which platforms recommend anyway, keeps it short.
- Stopping: a preview stops when you press Stop or close the tab, and on its own about 20 s after nobody is watching (see Security).
Publishes with an unknown stream key, or to any app other than live, are
rejected by SRS before any output starts. Recent rejected attempts are listed under the pipeline list ("Rejected
publish attempts"), which helps when an encoder is configured with a stale key. The Status page,
which hides that list, shows one red "Rejected publishers" card with their number; click it to open the Overview.
An entry is forgotten five minutes after its last attempt;
see Security for details.