GalahUser guide · Black Squeak Systems v2.2.2 blacksqueak.com
Using Galah

SRT output

Each embedder can also send its output over SRT — encoded to H.264 or HEVC in an MPEG transport stream — to a remote studio, a cloud service or a hardware decoder, with full monitoring.

Licence. SRT output needs the SRT output key on this machine (or the 30-day evaluation); see Licence. Without it the switch is refused with a message; an output already running is never stopped by a licence change.

How it works#

The SRT encoder takes its pictures and sound from the embedder's own output, so the embedded Livewire audio, backups and slates all go out over SRT too. It uses a separate full-quality receiver; the pass-through path is not touched and the NDI® / OMT output stays on as the monitoring output.

embedder output ─► decoding receiver ─► ffmpeg (H.264 / HEVC + AAC / MP2 / AC-3 / PCM → MPEG-TS)
                                          └─► pacer (steady rate) ─► SRT: caller / listener / rendezvous / bonded links

SRT itself (Haivision SRT 1.5.7, with AES encryption) is built into Galah. The encoder is ffmpeg, which must be installed (see Installation). Hardware encoders need the matching GPU and driver.

Quick setup (Basic)#

Section 07 SRT output opens in Basic mode, which asks only for what most links need. Click the Settings tab:

Basic settings: a listener on UDP port 9000 with 200 ms latency, H.264 at 8 Mb/s.
Basic settings: a listener on UDP port 9000 with 200 ms latency, H.264 at 8 Mb/s.
  1. Connection mode

    Caller — Galah connects out to a receiver (give its address and port). Listener — receivers connect to Galah on the port you give (open it in the firewall); several receivers can connect. Rendezvous — both ends call each other, for links through firewalls on both sides.

  2. Latency

    How long SRT may take to recover lost packets. Galah measures the round-trip time and shows the recommended minimum under the box. Use at least 4 × the round-trip time, and never less than 80–120 ms.

  3. Passphrase

    Optional, 10 to 79 characters. With a passphrase the stream is AES-encrypted and receivers must use the same passphrase. A listener without a passphrase accepts any receiver that can reach its port: the settings show a warning and the log notes it when the output starts, but Galah does not insist on one. Use a passphrase or a firewall rule for the receivers' addresses.

  4. Video codec and bitrate

    H.264 or HEVC, and the video bitrate in kb/s. In Basic mode the picture size and frame rate follow the source, and the sound is AAC from output channels 1–2.

  5. Switch it on

    Turn on SRT enabled (or the SRT switch on the Rack). It starts at once with the settings shown; no Apply is needed to start, but Apply saves changed settings.

Monitoring (Status tab)#

The Status tab of a connected listener with one receiver.1234567891011
The Status tab of a connected listener with one receiver.
  1. State: Off, Waiting for output (the embedder has no output yet), Listening (a listener with no receiver yet), Connecting / Retrying (a caller trying to reach its receiver), Connected or Error; and the number of receivers.
  2. Basic / Advanced: how many settings are shown.
  3. SRT enabled.
  4. Status and Settings tabs (Advanced mode has a tab per settings group).
  5. Receiver URL: the srt:// address a receiver should use, ready to Copy into ffplay, VLC, OBS, vMix or a decoder.
  6. Statistics, refreshed every second: send rate, round-trip time, loss and retransmission rate, estimated link capacity, send buffer, negotiated latency, receivers (connected / allowed), encoder frame rate, transport-stream rate, packets dropped (too late to send), and the pacing queue.
  7. Graphs of the last five minutes: rate and capacity, round-trip time, and lost / retransmitted packets.
  8. Advice following the SRT deployment guide, for example Healthy: latency 200 ms is 9× the RTT, no packets dropped, or what to change.
  9. Connections: one row per receiver (or per bonded link with its weight and active / standby state): address and SRT version, state, encryption, latency, RTT, rate, and lost / retransmitted / dropped packets.
  10. Encoder: encoder in use, input and output format, speed (should stay at 1.0×), frames, dropped and duplicated frames, and totals sent.
  11. ffmpeg messages and command line: the encoder's own messages, for troubleshooting.

Dropped packets are packets SRT gave up on because they could not be delivered within the latency. If the count keeps rising, raise the latency or the bandwidth overhead, or lower the bitrate. An encoder speed below 1.0× means the computer cannot encode in real time: use a faster preset, a hardware encoder or a lower resolution.

Advanced settings#

Click Advanced to see every setting, grouped in tabs.

Connection#

Connection: mode, address and port, local interface, latency, stream ID, timeouts and bonding.
Connection: mode, address and port, local interface, latency, stream ID, timeouts and bonding.
SettingMeaning
ModeCaller, listener (with a receiver limit of 1–32) or rendezvous.
Address, portWhere a caller connects to; the port a listener listens on.
Local interface and portSend from a particular network interface (and port), for example a dedicated contribution link.
LatencySRT receive latency in milliseconds.
Stream IDSent by a caller (many cloud services and gateways need it), or required from callers by a listener.
Connect timeout, peer idle timeout, retry intervalHow long to wait for a connection, when to give up on a silent peer, and how often a caller retries.
Bonding (caller)Broadcast: every packet on every link, so losing a whole link costs nothing. Main / backup: one link carries the stream and the others take over (link weights, stability timeout). Add as many links as you need, each with its own address, port and local interface.
Accept bonded callers (listener)Lets a bonding caller connect several links to this listener.

Encryption#

Encryption: passphrase, key length, enforced encryption, key refresh.
Encryption: passphrase, key length, enforced encryption, key refresh.

Passphrase (10–79 characters); AES-128, 192 or 256; Enforced encryption (refuse peers without the right passphrase); key refresh and pre-announce intervals (leave at 0 for SRT's defaults).

Video encode#

Video encode settings.
Video encode settings.

Codec (H.264 or HEVC) and encoder — x264 / x265 (software), NVIDIA NVENC, Intel Quick Sync, AMD AMF, Apple VideoToolbox or VA-API, whichever your ffmpeg offers; resolution and frame rate (or follow the source); CBR or VBR, bitrate, peak bitrate and VBV buffer; key-frame interval; B-frames; preset, tune, profile and level; 4:2:0 or 4:2:2; 8 or 10 bit; and extra ffmpeg options.

CBR with hardware encoders: VideoToolbox, NVENC, Quick Sync, AMF and VA-API do not pad their output to the bitrate (x264 / x265 do), so a simple picture can use far less than the set rate. In CBR mode with a hardware encoder and no mux rate set, Galah pads the transport stream so the rate on the wire stays constant.

Audio and TS#

Audio tracks and transport-stream settings.
Audio tracks and transport-stream settings.

Up to eight audio tracks, each AAC-LC, MPEG-1 Layer II, AC-3 or SMPTE 302M PCM, mono, stereo, 5.1 or 7.1, taken from any of the embedder's output channels, with an ISO 639 language code. Transport-stream settings: service name and provider, programme number, TS ID, PMT and elementary PIDs, VBR or CBR mux rate, and PCR interval.

Network and recovery#

Network and recovery settings.
Network and recovery settings.

Bandwidth limit (input rate + overhead, a fixed maximum, or unlimited); too-late packet drop; periodic NAK reports; retransmission algorithm; sender drop delay; FEC (columns, rows, staircase or even layout, ARQ mode) or a custom packet filter; payload size, MSS, flow window, SRT and UDP send buffers, IP TTL and DSCP.

Pacing#

ffmpeg writes the transport stream in bursts (a whole key frame at once), but SRT expects a steady input like a hardware encoder's. Galah therefore paces the stream at its peak rate (or the CBR mux rate) and tells SRT that rate. In tests, every packet was recovered at 1 %, 5 % and 10 % random loss with 120 ms latency, and picture and sound stayed within 1 ms of the source over two minutes.

The SRT outputs page#

SRT outputs in the menu lists every embedder's SRT output on one page: mode, target, state, receivers, send rate, RTT, loss, retransmissions, encoder format and a five-minute graph. Open goes to that embedder's SRT section.

The SRT outputs page with the encoders available and the tuning guide.
The SRT outputs page with the encoders available and the tuning guide.

Encoders and library shows the SRT version, encryption and bonding support, the ffmpeg in use, and which encoders it offers (green = available). Tuning guide gives latency and overhead for the packet loss on your link:

Packet loss up toLatency at leastBandwidth overhead
1 %3 × RTT33 %
3 %4 × RTT25 %
7 %6 × RTT17 %
10 %8 × RTT13 %
12 %8 × RTT13 %
20 %10 × RTT10 %

Use at least 4 × RTT and never less than 80–120 ms. Use bonding to survive the loss of a whole link.

Any SRT receiver that plays MPEG-TS works: ffplay, VLC, OBS, vMix, srt-live-transmit, hardware decoders and cloud gateways. Paste the Receiver URL from the Status tab, for example:

ffplay "srt://192.0.2.2:9000?mode=caller&latency=200"

The packages also include srt_receive, a test receiver that checks the transport stream's sync and continuity:

srt_receive caller 192.0.2.2 9000 -p "passphrase" -o test.ts -t 10