vMix • Video streaming setup

How to Stream with vMix

Get a vMix broadcast onto your Primcast server without the usual false starts. This guide lists the fields vMix asks for and exactly what belongs in each one, so it works whichever version you have.

Fields, not menus RTMP streaming 24/7 live support

Step-by-step guide

vMix shifts its controls around between versions, so what follows names the boxes and what goes in them instead of a menu route. Find the labels wherever your build keeps them. Anything in UPPERCASE is yours, from your Primcast account.

1

What you need before you start

Five values, and they sit together in two places: your Primcast control panel, and the activation email we sent when the service went live.

  • Server address - where the broadcast is going
  • Application name - sometimes called the publishing point
  • Stream name - what this particular broadcast is called
  • Username and password - the pair that lets you publish

Don't guess the application name. live turns up in a lot of general tutorials, so it gets typed in out of habit — and if it isn't the one on your account, the server simply turns the connection away. Copy yours across instead.

On a dedicated server these come from your own machine's configuration rather than the control panel. Not sure which you're on? Ask us on live chat and we'll tell you.
2

Two boxes, not one

More first broadcasts come unstuck here than anywhere else. Add a destination in vMix and set it to a Custom RTMP Server; the address and the key then ask to be filled in separately.

The box marked URL takes the address and the application name. It stops there:

rtmp://YOUR-SERVER-ADDRESS:1935/YOUR-APPLICATION-NAME

The box marked Stream Key — older builds say Stream Name — takes the stream name on its own:

YOUR-STREAM-NAME

What doesn't work is running the two together in the first box:

rtmp://YOUR-SERVER-ADDRESS:1935/YOUR-APPLICATION-NAME/YOUR-STREAM-NAME
There's no helpful error for this one — the connection is just refused. Which is exactly why it's worth ruling out first.
3

Sign in to publish

The username and password from step 1 go on that same destination. They're the publishing pair for the stream — not the details you use to sign in to Primcast.

4

Keyframes every 2 seconds

Small setting, large consequences — and one to set by hand rather than leave to a preset. In the quality settings for your stream, pick a custom profile and set:

  • Keyframe interval: 2 seconds, and fixed
  • Scene-change keyframes: off, so nothing shifts the spacing

Here's why it earns its own step. Your broadcast gets chopped into HLS segments, and the cuts land on keyframes. Space the keyframes unevenly and the segments come out uneven too — which your viewers feel as buffering, and which from every angle looks like our server having a bad day. Even spacing, even segments.

5

Match the bitrate to the upload you actually have

Add the video and audio bitrates together — that combined figure is what has to fit up your connection. Keep it near a third of the upload you've measured and there's room left for a bad minute.

Reasonable places to start, then tune to the line in front of you:

  • 720p - 2500-4000 kbps video
  • 1080p - 4000-6000 kbps video
  • Audio - 128 kbps, or 64-96 kbps if the connection is tight

Measure from the machine doing the broadcasting, at the hour you'll be broadcasting, and more than once. The figure on your internet bill is a ceiling rather than a promise, and a single speed test is one lucky sample. Running right at the limit is what produces "it drops a couple of times a day" — and from where you're standing that is indistinguishable from a fault at our end.

Put the broadcasting machine on a cable. Wi-Fi wobbles, and this is the setting where wobble shows up.
6

Go live, then check it arrived

Start the broadcast — then go and look at it yourself rather than taking vMix's word for it. Open the playback address in any player:

http://YOUR-SERVER-ADDRESS:1935/YOUR-APPLICATION-NAME/YOUR-STREAM-NAME/playlist.m3u8

Allow it a few seconds. Nothing plays until the first segments have been written.

7

Reconnecting: nothing for you to do

vMix picks itself up after a dropout on its own, and there's no setting for it — no box to tick, nothing to go looking for. If somebody has told you to switch on automatic reconnection in vMix, they had a different encoder in mind.

Worth being straight about the limit, though. Reconnecting decides how tidily a broadcast recovers; it doesn't decide whether the break happens. A connection that goes away takes your viewers with it for those seconds. If the breaks keep coming back, step 5 is where to look.

FAQ

Questions we get asked about running vMix into Primcast.

Where do I turn on automatic reconnection in vMix?

You don't — there's no such setting. vMix already does it by itself and gives you no box either way, so there's nothing to go hunting for. If you've been told to enable it, that advice belongs to some other encoder.

Can the whole address go in one box?

No — vMix keeps the address and the key apart deliberately. rtmp://YOUR-SERVER-ADDRESS:1935/YOUR-APPLICATION-NAME belongs in URL, and the stream name goes in Stream Key by itself. Run them together and the connection is refused, with nothing useful said about why.

Is the application name just "live"?

Only if your account says it is. It's the publishing point for your service and it's particular to you; live is simply a value that crops up in a lot of general guides. Take yours from the control panel or your activation email — anything else gets turned away at the door.

Viewers say it keeps buffering, but vMix looks perfectly healthy. Why?

Nine times in ten, keyframes. The segments we serve are cut on them, so uneven keyframes make uneven segments — and that's what buffers, while vMix, sending away happily, reports nothing wrong at all. Fix the interval at 2 seconds and switch scene-change keyframes off. Still happening? Then put your total bitrate next to your measured upload.

How much bitrate do I need?

2500-4000 kbps at 720p, 4000-6000 at 1080p, and 128 kbps of audio on top. The number that really decides it is your upload rather than your resolution, though: keep the total near a third of what you've measured from the broadcasting machine. Sitting hard against the limit is what causes those unexplained daily drops.

Where do I find my settings?

Your Primcast control panel, and the activation email from when the service was set up — server address, application name, stream name, username and password. On a dedicated server they come from your own machine's configuration instead; live chat can tell you which of the two you're on.

Will this work for something other than vMix?

The values will — every RTMP encoder wants the same handful of things and just labels the boxes differently. We have picture-by-picture guides for OBS Studio and Telestream Wirecast, plus a rundown of the software video encoders that work with us.

Ready to go live?

Our audio and video streaming services include unlimited connections, unlimited bandwidth, and 24/7 expert support to keep you on air.