Outputs

Documentation menu
On this page
  1. Destinations
  2. Watch link
  3. Video encoding
  4. Audio
  5. Shared encodes
  6. Running outputs
  7. Overview
  8. Status
  9. Events
  10. Alert sound

An output forwards one pipeline to one destination. Each output is a separate FFmpeg process, so a destination that fails or stalls never affects the others. Outputs that need the same encode also share one more FFmpeg process, see Shared encodes.

Destinations

An output URL can be rtmp://, rtmps:// or srt://. The output editor has presets for common platforms (for example YouTube RTMP), where you only paste the stream key.

For safety, outputs never connect to link-local addresses such as cloud metadata endpoints, and connect to loopback only on the server's own RTMP/SRT ports. The latter allows pipeline-to-pipeline restreams, for example feeding a second pipeline from an output of the first. See Security for the full rules.

An output cannot send a pipeline back into itself. A destination on this server's own ingest (live/<stream key>) is refused when that key is the pipeline's own input, and when the pipeline it feeds leads back to it through other restreams (A to B and B to A). Pipelines that share a key read the same stream, so the same holds for them. The same rule applies when you move a pipeline to another stream key.

An output can carry an optional watch link: the page where viewers watch what it sends, such as a YouTube watch page. The destination URL holds a stream key and cannot be opened, so the link is kept next to it. Fill in Watch Link in the output editor (an http:// or https:// URL) and the card shows a link icon beside the output's name that opens it in a new tab. Bunryu only stores and shows the link. It never opens it or checks that it works, and the link is not sent to Key Vault. It can be changed while the output runs, and Copy and Paste carry it with the output.

Video encoding

Encoding What it does CPU cost
copy Passthrough: the video is forwarded as received About 0.04 vCPU per 8 Mbps output
720p Scales to 1280×720, H.264 (veryfast, 3 Mbps); meant for down-converting a 1080p input About 2 vCPUs per encode (1080p50 input)
1080p Scales to 1920×1080, H.264 (veryfast, 5 Mbps); meant for down-converting a 4K input About 6 vCPUs from a 4K50 input (does not keep up on 4)
vertical_rotate Scales to 720 px wide and rotates 90° for vertical platforms (Shorts, Reels); usually applied to a 1080p input About 1.2 vCPUs per encode (1080p50 input)

Keep almost all outputs in copy mode and only a few distinct encodes on a transcoding profile. Ten outputs on 720p with the same audio track are one shared encode, so they cost one encode, not ten. The costs are measured on a GCP n2 and depend on the content; see Sizing a server and Capacity and limits.

Audio

Audio setting Result
copy Forwards the input's default audio track unchanged
Track number (0, 1, ...) Forwards that track, re-encoded to AAC 128 kbps stereo 48 kHz. Outputs on the same track (and video encoding) share the encode
Several tracks (0,1) Forwards each listed track; SRT destinations only, since RTMP carries a single audio track. Never shared: each output encodes on its own

When an SRT input is forwarded to an RTMP destination, select a track instead of copy: re-encoding absorbs the timestamp jitter that SRT inputs can carry, and the dashboard warns on outputs that don't.

For an RTMP input forwarded to an RTMP destination, keep copy: selecting Track 1 only adds the AAC re-encode (extra CPU) with no timing benefit, and the dashboard warns on outputs that do it.

Shared encodes

Outputs on the same pipeline that need the same encode share it: one FFmpeg pulls the input, encodes once, and the outputs forward the result in copy mode. Ten RTMP outputs on audio track 1 of an SRT input make one SRT pull and one AAC encode, not ten. Operators used to loop an SRT pipeline into a second pipeline to get this; that workaround is no longer needed.

pipeline input ──► shared encode "720p · T2" (encodes once)
                      ├──► output A (copy) ──► destination A
                      └──► output B (copy) ──► destination B
               ──► output C (copy video, source audio): pulls the input directly

What is shared. Outputs share when their recipe is identical (the same video encoding and the same single audio selection) and at least two outputs of the pipeline are configured with it, whether they are running or not.

Output Shared?
Video copy and audio copy (plain passthrough) No: pulls the input directly, as before
Any video encoding (720p, 1080p, vertical_rotate) with audio copy or one track Yes, once a second output of the pipeline has the same recipe
Video copy with one audio track Yes, once a second output of the pipeline has the same recipe
Several audio tracks (0,1) No: RTMP/FLV carries one audio track, so these keep their own encode

A recipe used by a single output is not shared: that output encodes on its own, as it always did, because an encode with one reader would only add a process (about 28 MB), a few seconds to its start, and an extra hop. Usually all outputs are configured before the event, so the rule is decided by the saved configuration.

You don't manage them. The server creates a shared encode when a second output with the same recipe is configured, removes it when fewer than two are left, starts it with the first running output, and stops it 15 seconds after the last one stops (so stopping and restarting an output, or editing one, does not restart the encode that its other outputs use). You cannot create, edit, delete, start or stop one, and you cannot point an output at the server's internal internal RTMP app. They are not counted among your outputs.

In the dashboard. The pipeline's side column has a Shared encodes card with one row per encode, laid out like an output card: a status dot split like the SRT Relay's (the left half is the encode's FFmpeg, the right half the pipeline's SRS input; what is wrong on either side is listed under the row, and the dot is grey, with a note, while no output uses the encode), a restart button (after a confirmation; its outputs reconnect), the encoding as badges (the video encoding unless it is copy, and the audio track as T1, T2, …, where T1 is track 0), its uptime, how many outputs use it and how many are reading it now ("2 outs · 1 read"), its bitrate, CPU and memory (the bitrate only when it is unusual, as on an output card), the failure count and History, followed by the last error. Like an output card, it shows a figure (bitrate, memory, speed) only when it is off, one badge each, but always its CPU, since an encode is what costs it. The Overview lists every encode in a Shared encodes table under Outputs, with all figures as columns. The Status view draws each encode as a square dot before the pipeline's output dots, with a thin divider between; it is not counted among the outputs or the problems, since the outputs reading a failed encode show the failure themselves. While an output's encode is not up, the output shows a warning ("Waiting for Shared encode …", or "Shared encode failed: …"), not an error. The pipeline's "N readers" counts only what reads the input itself, not outputs that read a shared encode.

When a shared encode fails, every output that uses it is restarted and waits for the encode to come back; each of them gets one History record "Shared encode … failed: …" naming the cause, so its card explains the reconnect. Other recipes, other pipelines and outputs that read the input directly are not affected. See Reliability.

Changing the configuration while outputs are running. An output decides how it runs when it starts and never switches while running. For that reason the editor of a running output disables the destination and encodings and lets you change only its name and watch link; stop the output to change the rest.

  • If an output was already running alone and you add a second output with the same recipe, the shared encode starts at once, but the first output keeps encoding on its own until it is next started or restarted; the new output reads the shared encode. Until then you run two encodes (the shared card shows "0 readers" if the second output is not started yet).
  • If you delete or change an output so that only one with the recipe is left, a shared encode that outputs are still reading is kept until they stop or restart, so the output that is still running is not interrupted. When it next starts it runs on its own.

Trade-offs.

  • A shared output starts slower than a direct one when its encode is not running yet: the encode starts first and the output connects once it is writing data (about 5 s measured). With the encode already running an output starts at once, so an output restarted within the 15 s grace, or a further output of the same recipe, reuses it.
  • The encode is a single point of failure for its outputs: when it restarts, all of them reconnect at once.
  • Sharing is per pipeline, never across pipelines.
  • Output ids have gaps, because the encode takes a number in the pipeline's sequence.

Running outputs

Start and stop outputs individually or for the whole pipeline. Start all starts them staggered at 200 ms intervals. An output's desired state is saved, so outputs that were running are started again automatically when the input comes back or the server restarts.

Copy puts the pipeline's outputs on the clipboard, and Paste adds the outputs on the clipboard to the end of a pipeline's list, in this or another pipeline. The pasted outputs start stopped and the running ones are not touched, so it works at any time. An output whose destination URL the pipeline already uses is skipped, and a message says how many were added and how many skipped. An output that would publish back into the pipeline's own input (or into another pipeline that leads back to it) is added too, with a yellow line on its card.

With many outputs, use the bar above the list: the filter box matches an output's name or destination as you type, and Problems keeps only outputs with a line on their card: an error, a warning or advice (see below), even the advice that is not counted as a problem. The badges count the pipeline's outputs: running and stopped are every output (so they add up to the total), while errors and warnings count the outputs with one, stopped or not. "8 of 44" shows how many the filter leaves. Drag a card anywhere to reorder the outputs. Its History, Edit and Delete buttons show when you hover the card (a touch screen shows them always). The filter is per browser, starts empty for each pipeline you select, and only changes what is listed: Start all, Stop all and Copy still act on every output of the pipeline. While it hides outputs the cards can't be dragged, because the saved order covers all of them.

A card can also carry advice about how the output is set up, separate from what is happening to the stream: the same destination as another output, a destination that publishes back into this pipeline's own input (a loop; it cannot work), a track selection the input cannot supply (an RTMP input has one audio track; an SRT input may have fewer than you chose), Track 1 re-encoding the audio (costs CPU), SRT to RTMP with copy audio (can jitter), and an output that was stopped after repeated failed attempts (the one line such an output shows: after how many attempts, to check the link and stream key, update the output and start it again, then its last error; it has no red error line and no time, which are in its History). Each is one yellow line on the card. The output's dot on its card and on the Status view, and its status on the Overview, get a yellow outline (a stopped output is a grey dot with the outline instead of the dash), and the lines are listed in the dot's hover text and in the Overview's Issues column. It does not tint the card or change a colour, and it is not in the pipeline list or a count, and is not a Problem (only the card's Problems button lists it), because you may do it on purpose (a backup pipeline with the same destination as the primary).

Overview

The dashboard's Overview lists every input and every output in two tables. Open it with the grid icon at the start of the navbar (the sidebar's warning and error counts open it on the Issues tab). The All, Active and Issues tabs narrow both: Active hides what is offline or stopped, and Issues keeps only warnings and errors, plus an offline input whose outputs are affected, with the reason. The search box on each table's heading line filters it as you type. An input matches on its name, stream key or publish URL; an output on its own name, its pipeline's name or its destination URL, so a full URL or a stream key finds it. The heading badge shows how many rows are left ("20 of 500").

Under Outputs, a Shared encodes table (shown only while the server has any) has one row per shared encode: its pipeline and encoding ("720p · T2"), status, issues, uptime, bitrate, CPU, RAM, how many outputs use it and how many are reading it, and the stream specification. The tabs and the Outputs search box filter it too (the search matches the pipeline name or the encoding). Its CPU and RAM are part of the Outs column of the usage table at the top.

The output card shows status and uptime, and a small badge for each figure that is off (and the CPU of a video encode), each with its own tooltip; a healthy output has none (every figure, per output, is in the Overview's Outputs table). The badges are:

  • Bitrate (yellow, as the status dot is), when it is below 60% or above 140% of the input's (the output copies the video and the input's rate is known), or below 200 kbps. Without an input rate to compare with, only the 200 kbps floor applies. Its tooltip says which. A copy output at a few dozen kbps from a multi-Mbps input is sending audio only: look at the input's Issues.
  • CPU (% of a core): always on an output with a video encode, to see what each one costs; on an output that copies the video, only from 50% of a core.
  • Memory, from 70% of the output's limit (yellow; red from 90%).
  • Speed (media produced per second of wall time, 1.00x is realtime, measured over 30 s windows), when below 0.95x in yellow ("0.88x"), or above 1.05x in the normal colour, which is usually a backlog draining after a stall. In between it is not shown. The speed is not shown for the first minute after a start.

An output that failed shows its failed attempts since it was last started and, while it waits to try again, when the next attempt is due ("retry in 8 s"). Problems appear on the card as warnings, each with how long ago it began ("since 3 min ago"), and every crash, watchdog restart and finished warning episode is kept in the output's History with the FFmpeg stderr tail, together with every stop and every start you make with Start (a "started" record). Both this history and the pipeline's History list the oldest entry first and open scrolled to the newest, like the logs. A crash that repeats the same way (a different pid or uptime does not count as different) is one record with a count ("×19"), its first and latest time and the detail of the first. The History button and the card are red while the latest record is a crash or watchdog restart. When the output has then run for a minute and is writing data, the crash is marked recovered (with the time), the card and the button return to the normal color and the retry count starts over; the record stays in the History. A record that holds a long FFmpeg log shows only its error line (the last line, as on the card) with Show full log to expand it, and its copy button puts the whole log on the clipboard. After a stop, or with only warnings, the button keeps the normal color. The exception is an output you stop after 5 failed attempts in a row: its card keeps a yellow "Stopped after 5 failed attempts" line with the last error, and the History button stays yellow, until you start the output again. It is a note, not a Problem: the card is not tinted, and the pipeline's dot, the counts, the Overview's Issues filter and the Problems filter ignore it, since a few outputs are always broken. The Status view and the Overview show it as a grey dot with a yellow outline. Under a known error or warning (connection refused, a rejected stream key, an unresolvable host, a failed SRT handshake, an output falling behind realtime) the card adds an info icon to the line; hover or focus it for a "Hint:" with what to check first. The input's and the relay's problems on the pipeline page, and the Overview's Issues column, get the same info icon. An error it has no advice for is shown as is. The card's status dot says the same on hover: every error and warning on the card, without the advice (the dot only gets the yellow outline). A yellow dot always has a line on the card (for example "Output bitrate is below 200 kb/s."); a healthy output's dot has no hover text. See Reliability for what is detected and when outputs are restarted.

Status

The pulse icon in the navbar opens Status: every pipeline on one page, without the pipeline list. Each pipeline is a card in the sidebar's groups and order, with a large dot for its input and a small dot for each of its outputs: green is running, yellow a warning, red with a ring failed, and hollow stopped. A yellow outline round a dot means the output has advice (see above), including one stopped after repeated failures, which is then a filled grey dot. The input dot also shows the SRT relay's warning or error (an unstable or lost leg, interval alerts such as dropped packets or loss, or the relay unable to reach SRS), even while no stream is live yet. Hover a dot for its name and every error and warning on it, as the pipeline list's hover does; the relay's forward to SRS is listed under its own heading on the input dot. A card with a warning or an error has a coloured border, and a pipeline with many outputs shows them as a block with its warning and failure counts.

When SRS has refused publishers in the last five minutes, one red Rejected publishers card with their number sits above the pipelines (on both tabs); click it to open the Overview, where the list is under the pipelines. The top line counts inputs and outputs, and the Issues tab keeps only the pipelines with a warning or an error (the same rule as the Overview's Issues tab). On the right are the host's CPU, RAM, downlink and uplink for the last 15 minutes, and the latest warnings and errors, oldest at the top. Click a card to open the pipeline; Ctrl-click opens it in a new tab, so Status can stay on a second screen. About 500 outputs in the shape of 100, 80 and 50 outputs on the first pipelines and 4 to 5 on the rest fit a 1920×1080 screen; a larger set scrolls.

Events

The clock icon in the navbar opens Server Logs. Its Events table lists what just happened across every pipeline: inputs going online or offline, probe and relay errors, each output's crashes, watchdog restarts, warnings, starts and stops, and the Server events (SRS, Goryu and host alerts). Like the log tails below it, it reads from the oldest event at the top to the newest at the bottom, opens scrolled to the newest, and scrolls when there are many. A long message (an FFmpeg error with its output) shows its first line; Show full log opens the rest. The filter narrows the table to one pipeline or to the server, and a pipeline's name opens that pipeline. It shows the latest 50 events the server still has (an output keeps its last 10 History records and a pipeline its last 100 lines), loads when you open the page or press Refresh, and does not update itself.

Alert sound

The dashboard beeps for 5 s when something goes wrong that needs attention: an output crashes or is restarted by a watchdog, an input goes offline while its outputs are running, a pipeline raises an error alert, the server, SRS or the SRT relay becomes unreachable, or the host's memory or disk reaches 90%. It beeps when the problem appears, not while it lasts, and an output that keeps failing beeps only when it starts failing. Warnings and the host CPU alert do not beep (nor does a host warning at 70%); the host alerts are banners across the top and rows in Server Logs under Events.

The bell in the navbar mutes and unmutes the beeps; hover it for the volume slider. Both settings are kept in the browser and shared by tabs on the same site. The dashboard tries to enable audio when it opens. Some browsers require a click or key press before they allow sound; the bell still shows your saved mute setting. See the design decision.

Edit this page on GitHub