Moblin can send a second stream in a small resolution. When your connection breaks down, your studio keeps showing your picture in a lower resolution before the fallback scene is switched on. Your audience keeps seeing you, just less sharp, instead of “be right back”.

What you need

  • Moblin on the iPhone, connected to your studio: Connecting Moblin with a QR code.
  • The address for the second stream. You find it on the “Inputs” tab: at the input, “Connect source”, tab “Moblin”, section “Second stream (optional)”.

Step by step

  1. Copy the address under “Second stream (optional)”. It looks like this: whip://<host>:<port>/whip/<stream-id>. Host, port and stream ID are your input's.
  2. In Moblin, open “Settings → Streams”, your stream and then “Preview stream”.
  3. Enter the address under “URL”. For “Resolution” 854×480 is enough, for “Video bitrate” 500 kbit/s to 1 Mbit/s.
  4. Switch the second stream on with the quick button “Preview stream”. Without the quick button Moblin does not send it, even with the URL entered. The QR code from your studio adds the quick button. If it is missing, switch it on under “Settings → Display → Quick buttons” or scan the code again.
  5. Go live as always with “Go live”. The second stream runs alongside as long as the quick button is on.

The second stream belongs to the stream that is selected in Moblin. If you have set up several streams, enter the address at the one you send to your studio with.

What your studio does with it

  • It brings both streams in step. The two streams never arrive at the same time: the second stream has a shorter delay than your stream. Your studio finds the offset by itself, from picture and sound, mostly within the first ten seconds. Only then can it switch without a moment missing or coming twice. Picture and sound do not jump when it switches.
  • It switches in a fraction of a second. When no picture of your stream has arrived for half a second, or your line is bad, the input shows the second stream. Once your stream has run cleanly for two seconds, it switches back.
  • The fallback scene only comes when the second stream is gone too. As long as the second stream has a picture, the input counts as fine. How the fallback scene switches otherwise: Switching to “be right back” automatically.

The input's volume, mute and mono apply to the second stream as well.

Good to know

  • The second stream does not go over SRTLA. Moblin sends it over whatever connection the iPhone is using. It helps when your line gets thin but is not gone: a few hundred kbit/s often still get through when 6 Mbit/s no longer do. When the network is gone completely, both streams are gone, and the fallback scene comes.
  • It costs upload. The phone sends the bitrate you pick in Moblin all the time, on top.
  • A still picture cannot be lined up. Your studio finds the offset from movement. If the phone lies still on a table, it finds it only once something moves in the picture. Until then it does not switch to the second stream.
  • The supersource and portrait don't show it yet. While the second stream is on air, the input stays black in a window of the supersource and in portrait for Twitch.
  • Your studio does not show yet whether it arrives. You see the second stream only once it is needed.

When the second stream does not arrive

What you see What you do
The quick button “Preview stream” is missing Switch it on under “Settings → Display → Quick buttons” or scan the QR code again.
Quick button on, but nothing happens Check that the URL is at the stream that is selected in Moblin.
Moblin's log says “HTTP status 403” The last part of the URL matches no input. Copy the address again from “Connect source”.
It fails on Wi-Fi but works on cellular The network blocks UDP. See SRT on hotel or company Wi-Fi.

Moblin writes down what it tries: “Settings → Debug → Log”, lines starting with whip:.

Read on