Skip to content
Changelog

When a stream drops

How Lightair reconnects a dropped destination, lowers the bitrate on a weak connection, sends over a chosen network, delays a stream, and counts dropped frames.

In short

  • A destination that loses its connection tries again by itself, 20 times unless you change it. Its row counts down to each try.
  • With Adaptive bitrate on (as it starts), an RTMP destination lowers its bitrate when the connection can't keep up, then raises it again.
  • Each destination can send over one network connection, and hold the stream back 10 to 120 seconds.
  • Dropped frames are counted by cause: the network, the encoder, or rendering.

In the appSettings › Streaming › When the connection dropsOutputs › a destination › If the connection dropsOutputs › a destination › NetworkOutputs › a destination › Delay

When a server drops the connection, the destination tries to connect again. The others carry on. Its row counts down: “Retrying in 8 s · try 3 of 20”.

  • Try again now: the circular-arrow button on the row, or the row’s right-click menu.
  • Cancel reconnecting: the stop button on the row, or the right-click menu. The destination stops and is left idle, not failed.

The tries for every destination are in Settings › Streaming › When the connection drops › Reconnect: Off, 5 tries, 20 tries (as it starts) or Keep trying.

To give one destination its own:

  1. Click the destination in Window › Outputs.
  2. In If the connection drops, turn off Same as the other destinations.
  3. Choose its Reconnect, then click Save.

With Adaptive bitrate on, a destination lowers its bitrate when the connection can’t keep up and raises it again when it can. It works on RTMP and RTMPS; SRT and WHIP manage congestion themselves.

  • When more than a second of video is waiting to go out, the bitrate drops by a fifth.
  • After ten calm seconds, it rises by a tenth, up to the bitrate you set.
  • It never goes below a quarter of the bitrate you set.

While it’s below its target, the row says so in amber: “00:42:10 · 4.5 of 6 Mbps”.

It’s on for every new destination. To turn it off, open the destination, switch off Adaptive bitrate under Quality, and click Save. Off, the bitrate stays as set and a slow connection drops frames instead.

A destination on adaptive bitrate has an encoder of its own, so it doesn’t share one with other destinations (see Stream to several platforms at once).

A destination can send over one connection, such as the Ethernet cable, whatever else is connected:

  1. Click the destination in Window › Outputs.
  2. Under Network, open Connection and pick one. Automatic (the system’s choice) is the default.
  3. Optionally set Address type to IPv4 or IPv6 (Either is the default).
  4. Click Save.

The connection is found again by name each time you go live. If it isn’t there, the destination doesn’t start and says so, for example “Twitch: Ethernet isn’t connected.”

This works for RTMP and RTMPS destinations only. On Windows, the list of connections is empty for now.

A delay holds the stream back so viewers see everything late, by the same amount.

  1. Click the destination in Window › Outputs.
  2. Under Delay, turn on Hold the stream back.
  3. Choose Seconds: 10 s, 30 s (the default), 60 s or 120 s. The card says how much memory it uses while live.
  4. To have it resume where it stopped after a dropped connection, instead of skipping ahead, turn on Carry on after a drop. It uses more memory while it reconnects.
  5. Click Save.

While live, the row adds “delayed 30 s”. Stopping a delayed destination sends what it held back first, and the row counts down (“Ending in 28 s”). To cut it short, right-click the row and choose Stop now (drop what’s held back).

Lightair keeps three causes apart:

Cause What it means Where you see it
Dropped (network) The connection couldn’t take them. The destination’s row while live: “12 dropped (network)”.
Skipped (encoder) An encoder couldn’t keep up. The destination’s row: “3 skipped (encoder)”.
Late The renderer couldn’t finish a frame in time. The performance readout.

The performance readout is the frame rate and frame time at the bottom right of the window. Click it for the Performance panel: Frames late, Late in the last second, Skipped (encoder too slow) and Dropped (network). A few late frames at start-up are normal.

The Stream panel also shows each sending destination’s bitrate and the share of frames dropped.

lightair call stream.status lists each destination’s state, dropped frames, reconnect countdown and bitrate. To retry one now:

Terminal window
lightair call output.retry '{"output": "Twitch"}'

See stream.status, output.retry and output.cancel.