# Destinations

Source: https://docs.lightair.app/desktop/go-live/destinations

> Add the platforms and servers Lightair streams to in the Outputs panel, with a stream key or the account you signed in with, over RTMP, RTMPS, SRT or WHIP.

In short:
- Open **Window › Outputs**, click **Add** under **Streaming**, pick a platform and paste its stream key.
- Signed in to Twitch or YouTube under **Settings › Connections**, a destination can fetch its key from **Your account** instead.
- Any other service works as a **Custom server**: an `rtmp://`, `rtmps://`, `srt://` or WHIP `https://` address.
- Click a destination to change its canvas, sound, quality, reconnects, network and delay.

In the app: Window › Outputs; Outputs › Add; Settings › Connections › Official sign-in

A destination is one place your show is sent when you go live: a Twitch channel, a YouTube
stream key, a server of your own. They're listed under **Streaming** in the **Outputs** panel,
in the order they start.

## Add a destination

1. Open **Window › Outputs**.
2. Under **Streaming**, click **Add** (or **+** in the panel's header).
3. In **Add a destination**, pick a platform. The list is grouped into **Popular**, **More
   platforms** and regional sections (Korea, Japan, China); type in the search field to find one
   by name, in English or its own language.
4. Under **Connection**, check the **Server**. Platforms with several ingest servers start on the
   one nearest you; platforms that give every account its own address (Kick, TikTok, Instagram,
   LinkedIn and others) ask you to paste the **Server URL**.
5. Paste the **Stream key**. **Get your stream key** opens the page where the platform shows it,
   and the line under the platform's name says where to look.
6. Under **Picture**, choose the **Canvas** to send. The canvases that suit the platform have a
   green dot.
7. Click **Add** followed by the platform's name.

The key is kept in the Keychain on a Mac and in Windows Credential Manager on Windows, never in
the workspace's files. The destination is named after the platform; a second one of the same
platform gets a number ("Twitch 2"). Click it to rename it.

If you add a destination while you're live, it starts at once.

### Use a key from your account

On Twitch and YouTube you don't have to paste a key once you've signed in under **Settings ›
Connections › Official sign-in**. The destination's **Stream key from** then offers:

| Choice | What it does |
|---|---|
| **Your account** | Going live fetches the account's own key and uses it for that stream. It's never stored. |
| **New broadcast each time** (YouTube) | Each go-live makes a fresh broadcast, unlisted until you change it, started and ended with the stream. |
| **Paste a key** | The key you copy from the platform, kept in the Keychain or Credential Manager. |

A new Twitch or YouTube destination starts on **Your account** when you're signed in. Without a
sign-in, the choice is greyed out and says where to sign in.

Signed in to X there, Lightair goes live on X with your title when you stream and ends the
broadcast after.

### A custom server

At the bottom of **Add a destination**, **Custom server** takes any address:

| Address | Protocol | What goes in **Key or token** |
|---|---|---|
| `rtmp://…`, `rtmps://…` | RTMP, RTMPS | The stream key |
| `srt://host:port` | SRT (caller) | The stream ID, if the server wants one |
| `https://…` | WHIP (WebRTC) | The bearer token |

An SRT address can carry its settings as parameters: `streamid`, `passphrase` and `latency` (in
milliseconds; 120 when not given). WHIP sends H.264 video with Opus sound.

### Twitch's nearest server

A new Twitch destination's **Server** is **Automatic (nearest)**. When you go live, Lightair reads
Twitch's list of ingest servers, times a connection to each at once and sends to the quickest.
The row then names the server it picked after **Automatic**, and the choice is reused for half an
hour. To always use one server, pick it from the **Server** list instead.

### Vertical platforms

TikTok, Instagram, YouTube Shorts and other vertical platforms want a vertical canvas. When the
workspace has none, the **Picture** card says so: click **Add vertical canvas** to make one, and
the destination is set to send it. The other way round, a landscape platform pointed at a
vertical canvas gets a note with a button to send the landscape canvas instead. See
[Canvases](/desktop/build-your-show/canvases).

YouTube Shorts is a destination of its own: in YouTube Studio, make a second stream key for it.

## Change a destination

Click a destination's row to open its settings. Each card:

| Card | Settings |
|---|---|
| **Connection** | **Server**, **Stream key from**, **Stream key** (paste a new one to replace the saved one), **Chat** (the channel whose chat shows in the Chat panel) and **Sending** (sign in so replies send as you; see [Chat](/desktop/chat-and-widgets/chat)) |
| **Picture & sound** | **Canvas**; **Audio**: the master, or a mix such as one without music; on Twitch, **VOD track**: a second mix kept in your VODs and clips |
| **Dual Format** | Twitch only: see [Twitch Dual Format](/desktop/go-live/twitch-dual-format) |
| **Quality** | **Automatic**, or its own **Encoder**, **Bitrate**, **Resolution**, **Frame rate**, **Keyframes** and **Audio bitrate**; **Adaptive bitrate**; **Encoder sharing** |
| **If the connection drops**, **Network**, **Delay** | See [When a stream drops](/desktop/go-live/when-a-stream-drops) |

Click **Save** to keep the changes. The bin icon beside the name removes the destination and
forgets its key.

### Quality

On **Automatic**, a destination uses H.264 at the bitrate set in **Settings › Streaming ›
Bitrate** (6 Mbps to start), capped at what the platform takes, with keyframes every 2 seconds
and 160 kbps sound. Switch **Automatic** off to choose:

- **Encoder**: **H.264** plays everywhere; **HEVC** streams to YouTube only; **x264** encodes on
  the CPU. Only the encoders this computer has can be picked.
- **Bitrate**, in steps of 0.5 Mbps. Above the platform's limit, a note says what it takes
  (Twitch, for example, takes up to 6 Mbps).
- **Resolution**: **Canvas**, **1080p**, **720p**, **480p** or **360p**.
- **Frame rate**: the canvas's rate, or every second, third or fourth frame (never under 10 fps).
- **Keyframes**: **1 s**, **2 s** or **4 s**.
- **Audio bitrate**: **96**, **128**, **160** or **320 kbps**.

### The row

Each row shows the platform, the server and protocol ("Primary · RTMPS"), a badge with the
canvas's shape (click it to send the next canvas), the state, a start or stop button, and a
switch that decides whether **Go live** includes it. Right-click a row for **Move up**, **Move
down**, **Remove** and the rest. Drag rows to change the order.

## From the command line

`lightair call output.list` lists every destination with its state and the encoder it shares. See
[output.list](/developers/remote-api/output.list).

## Related

- [Stream to several platforms at once](/desktop/go-live/several-platforms)
- [The Go Live review](/desktop/go-live/go-live-review)
- [Twitch Dual Format](/desktop/go-live/twitch-dual-format)
