Streaming a game

Set up OBS on a computer, or Larix Broadcaster on a phone, to send a game to SportsLive24. It takes about ten minutes the first time. Do it once before game day.

Before you start

  • A Teams plan on your account. You can buy it on your account page.
  • An event for the game, created in the console under Events → New event. Or, if you stream every game from the same place, a sticky key instead: then there is no event to create.
  • An encoder: OBS Studio (free, on a computer with a camera or capture card), or Larix Broadcaster (free, on a phone).
  • A network that lets video out on port 1935. Most home and phone networks do. Guest wifi at a rink often does not, so try it at the rink before game day (see below).

Your event's settings

In the console, open your event. Under Encoder settings are three values, each with a Copy button:

ValueWhere it goes
ServerOBS's "Server" field
Stream keyOBS's "Stream Key" field
Single URLLarix, or anything that asks for one URL

Treat the stream key like a password. Anyone who has it can broadcast into your game. Copy it from the console; don't post it in a team chat. To share the game with viewers, use the Watch link above it instead. That link cannot broadcast.

Every event has its own key. Copy the settings again for each new game, or use a sticky key to set up the encoder once.

Only a Public game has a Watch link. A Team only game is for your team's approved members, and a Private one for you alone; they watch it signed in.

One key for every game at a venue

If you stream a series from the same rink or field, make a sticky key and set up the encoder once. Every time you stream to it, a new event starts on its own: named after the key, dated by when the stream began, with its own replay and clips.

  1. In the console, open Sticky keys → New sticky key. Give it the venue's name, and optionally a league and a description. Choose Who can watch its games: Public, Team only or Private. You can have up to 10 keys, one per venue or rig.
  2. Press Encoder settings on the key. It has the same values as an event: Server and Stream key for OBS, and a Full URL for Larix. Set up the encoder as below, once.
  3. On game day, just start streaming. Watch Is it landing? on the new event under Events, as for any other game.

Under Holding this key the console says what the key is doing:

It saysWhat it means
LiveA game is streaming on the key now.
ArchivingThe stream has ended and the game is being saved. Streaming again now continues that game rather than starting a new one.
FreeThe next stream starts a new event.

The key frees about ten minutes after a stream ends. That way an encoder that drops mid-game picks up the same game. It also means two games back to back need that gap between them, or the second one lands in the first game's event.

  • One game at a time per key. A second encoder is turned away while a game is live on it. For two fields at once, make a key for each.
  • Changing who can watch applies to the next game the key starts. To change a game already started, use the Events screen.
  • If the key leaks, press Reset publish key. The old settings stop working at once, so paste the new ones into the encoder before the next game. Delete sticky key stops the settings too, but keeps its past games. Neither works while a game is live on the key.

OBS

  1. Settings → Stream. Service: Custom…. Paste the Server and the Stream Key.
  2. Settings → Output. Output Mode: Advanced. On the Streaming tab:
    • Rate Control: CBR
    • Bitrate: 2500 Kbps
    • Keyframe Interval: 2 seconds
  3. Settings → Video. Output (Scaled) Resolution: 1280x720. Common FPS Values: 30.
  4. Settings → Audio. Leave a microphone or the camera's audio on.

Don't leave the keyframe interval on 0 ("auto"). OBS then puts a keyframe about every 8 seconds, and viewers end up more than 20 seconds behind the play, with clips that start too early. At 2 seconds they stay as close to live as the server allows.

Larix Broadcaster (phone)

  1. Settings → Connections → New connection. Paste the Single URL (on a sticky key, the Full URL) into URL. Give it a name you'll recognise.
  2. Settings → Video. Resolution 1280x720, frame rate 30, bitrate 2500 Kbps, keyframe frequency 2 seconds.
  3. Settings → Audio. Leave audio on.

Mount the phone and plug it in. A full game drains a battery, and a phone that locks stops streaming.

Go live, and check it's landing

Press Start Streaming in OBS, or the record button in Larix. The game goes live on its own; you don't need to press Mark live in the console. Then watch Is it landing? on your event in the console:

It saysWhat it means
CONNECTEDWorking. Video is arriving and being recorded.
LIVE, NO DATAThe game is marked live, but no video has arrived in the last 30 seconds. The encoder has dropped, or its network is blocking it.
NOT PUBLISHINGNothing is arriving. The encoder isn't started, or the server or key is wrong.

It updates every 5 seconds. Give it about 15 seconds after you start: the first piece of video has to finish before it counts.

Viewers see the game about 15–30 seconds behind your camera. The server sends video in 4-second pieces and players start a few pieces back, so that lag is expected. To see what viewers see, open the Watch link on another device.

When you press Stop Streaming, the game ends and becomes a replay. If the encoder drops mid-game, start it again with the same settings within about ten minutes and the game carries on.

When it isn't landing

  • The network blocks port 1935. The most common cause at a rink: guest wifi lets web pages through but not video. Switch the encoder to a phone hotspot, or ask the venue to allow outgoing TCP on port 1935. If it works on a hotspot and not on the wifi, that's the cause.
  • A typo in the stream key. Copy it from the console again rather than typing it. If you must type it, the dashes, spaces and capitals don't matter, and there is no I, L, O or U in a key: read a 1 for anything that looks like an I or an l, and a 0 for anything like an O.
  • The console says the encoder is turned away. The account that owns the event needs a Teams plan. Check your account page.
  • Two encoders on one game, or on one sticky key. Only one can send at a time. A second one is turned away while the first is connected.
  • A new game landed in the last one's event. On a sticky key, a stream that starts within about ten minutes of the last one ending continues that game. Wait until the key shows Free. If it stays on Archiving for more than half an hour, write to us.
  • A sticky key stopped working. Someone may have reset its publish key or deleted it. Open Sticky keys and copy the settings again.
  • OBS shows dropped frames. The upload can't keep up. Lower the bitrate to 1500 Kbps, or move closer to the router.
  • It plays everywhere except iPhones. The frame rate is 29.97 or 59.94. Set it to a plain 30.

Still stuck? Write to hello@sportslive24.net with your event's name and what Is it landing? says.

All the settings

SettingValueWhy
Resolution1280x720Sharp enough on a phone, light enough for a rink's upload
Frame rate30, not 29.97The server cuts video into 4-second pieces; at 29.97 they come out a little long, and iPhones refuse to play them
Keyframe interval2 secondsKeeps viewers close to live and clips close to the moment
Rate controlCBRAn even stream survives a busy network better
Bitrate2500 Kbps (1500 on a weak network)Fits a typical rink upload with room to spare
Video codecH.264OBS's and Larix's default
AudioOn, AACAI Picks listen for the crowd. A silent stream gets no picks

Games · Your account · SportsLive24