Skip to main content

Hosted or Self-Hosted Live Streaming: What Each Takes

· 10 min read
Andrij Tkachenko
Creator of Live Stream and Better Messages

Self-hosted live streaming means the stream runs on servers you look after: you take the video in, pass it on to every viewer and carry the bandwidth, the updates and the nights it breaks. Hosted streaming leaves the video to a service, and the middle way, which Live Stream takes, keeps the page, the audience and the recordings on your own WordPress site while the video runs on WordPlus Cloud.

"Self-hosted" is used for two different wishes, and it helps to tell them apart before choosing. This post goes through what running your own streaming server takes, part by part, with the bandwidth worked out, then what stays yours when only the video is hosted.

A stream on the page of a WordPress site: the host live on camera, with the chat beside the picture

Two things "self-hosted" can mean​

On your own site. The stream plays on a page of your website, under your name and address, not on a video platform beside a feed of other channels. Your site decides who may watch, and the audience stays on your pages.

On your own servers. The video itself goes through machines you run: the server the encoder sends to, the servers that pass the stream to each viewer, and everything between them.

Most people who search for self-hosted streaming want the first: their own page, their own audience, no platform deciding for them. The second is one way to get it, and the most work. Live Stream gives the first and not the second.

What running your own streaming server takes​

A live stream from your own servers has the same parts as any streaming service. You run each of them.

PartWhat it doesWhat you look after
The way inTakes the stream from the encoder, over RTMP, SRT or WHIPAn address and a key for each host, and keeping the key from leaking
The media serverPasses the stream on, or turns it into files of a few seconds each for HLSCPU for any encoding, memory, its updates
Sizes for slow connectionsGives each viewer a picture their connection can carryEncoding the stream again in several sizes, or an encoder that sends layers
The way outDelivers the stream to every viewerBandwidth, which grows with every viewer
RelaysLets WebRTC viewers behind strict networks connectA TURN server, its ports and its own bandwidth
The player and the pagePlays the stream in the browserA player script, and a page that says when the stream starts
Who may watchKeeps a private stream privateTokens or signed links tied to your accounts
The chatLets viewers talk backA chat server, and moderation

The way in​

An encoder such as OBS sends the stream to an address on your server. The older way is RTMP, which almost every encoder speaks. The newer one is WHIP, the IETF standard for sending a stream into WebRTC, which keeps the picture WebRTC packets from the encoder to the viewer. RTMP vs WebRTC: sending a live stream and watching it shows the routes each gives.

Whatever you choose, the key that lets a host send is a password. Anyone who has it can go live on your server, so it needs changing when it leaks.

The media server and the delay​

A server that turns the stream into HLS files is the simplest to run behind a CDN, and puts viewers several seconds behind the host. A WebRTC media server keeps them about a second behind, and holds a live connection to every viewer. WebRTC vs HLS: the delay you get and when each fits goes through both.

Relays for strict networks​

WebRTC sends its packets over UDP where it can. Some networks, often in offices, schools and hotels, block it or let no direct connection through, and then the connection goes through a relay, a TURN server. As MDN puts it, TURN relays everything through the server and is used only when there is no other way. A self-hosted WebRTC stream needs one, with its ports open and its own bandwidth.

The bandwidth​

The way out is where self-hosting costs most, because each viewer gets their own copy of the stream. The sum is the bitrate times the viewers:

Bitrate of the streamViewers at onceUpload your servers needData in an hour
3 Mbit/s (720p, roughly)50150 Mbit/sabout 68 GB
3 Mbit/s200600 Mbit/sabout 270 GB
5 Mbit/s (1080p, roughly)2001 Gbit/sabout 450 GB

An hour at 3 Mbit/s is about 1.35 GB for each viewer. Bitrates differ with the picture and the encoder, so these are a guide, not a promise, but the shape holds: a server on one ordinary connection fills up long before a crowd does. Past that you need several servers near your audience, or a CDN in front of HLS.

The rest​

Updates for every part, certificates, monitoring, and someone to look when a stream fails five minutes before it starts. None of it is hard on its own. Together it is a service to run.

When running your own servers fits​

  • You stream inside a network that may not reach the internet, such as a company or a campus.
  • A rule says the video may not pass through anyone else.
  • You already run media servers and have the people for them.
  • Your audience is small and on one network, so the bandwidth is no question.

For a site that wants its own streams on its own pages, it is a lot to take on for the part nobody sees.

The middle way: your site, hosted video​

With Live Stream, the stream is part of your WordPress site, and only the video runs on WordPlus Cloud. What stays on your site:

  • The page. The stream plays on a page of your site, with the Live stream block or a shortcode such as [wordplus_stream id="12"], wide or beside your own blocks (Putting a stream on a page).
  • Who may watch. Each stream is for everyone, for logged-in users or for the roles you choose, and a membership plugin can decide with the wordplus_stream_can_watch filter. Your site decides before a viewer connects (How to run a private live stream for your members).
  • The recordings. WordPlus Cloud records the stream while it is live, then your site takes the files, into the storage of the site where one is set up, or else its uploads folder (Recording and replays).
  • The settings and the look. Every stream, its schedule and its appearance are kept in WordPress.

What runs on WordPlus Cloud: taking the stream in from the browser or from OBS over WHIP, passing it on to every viewer over WebRTC, about a second behind, the relays for strict networks, and the light chat, which is not saved. Your WordPress server does not carry the video, so a crowd of viewers is not a crowd of requests to it (Where does the video go?).

For a chat that stays on your site too, the chat of a stream can be a Better Messages chat room instead, saved in your WordPress database with its history (Which chat).

What Live Stream does not do: it runs no media server on your own machines, it takes no RTMP, and the host is the one on camera, with no guests on stage.

Hosted and self-hosted side by side​

Your own serversLive Stream on your site
The page and the addressYoursYours
Who may watchYours to buildYour roles, or a membership plugin
The videoOn your serversOn WordPlus Cloud
Bandwidth and relaysYours to carryCarried by WordPlus Cloud
Updates and monitoringYoursThe plugin updates like any other
Behind the hostDepends on what you buildAbout a second, over WebRTC
CostServers and bandwidth, and your timeA subscription, credits above 50 viewers at once

What it costs​

Live Stream is free to download and streams on a WordPlus Cloud subscription. Each site streams to 50 viewers at once unmetered, across all its streams, however long they watch. Each viewer above that takes a credit a minute, and a recording takes a credit a minute while it runs. Each WordPress site adds 5,000 credits a month to its account, and more are on the pricing page of WordPlus Cloud (Viewers and credits).

So the first row of the bandwidth table above, 50 viewers at once, takes no credits at all. A stream of 200 viewers for an hour takes the 150 above the 50, 150 credits a minute, 9,000 credits for the hour. What a live stream on your website costs works out a month for a class, a weekly show, an event and a daily stream.

For every way to stream on WordPress, start with How to live stream on a WordPress site. For the questions to ask of any streaming plugin, see WordPress live streaming plugin: what to check before you choose.

Frequently asked questions​

Is self-hosted live streaming free?​

The software can be. The bandwidth never is: each viewer takes their own copy of the stream, so the upload of your servers grows with the audience, along with the time to run them.

Do I need my own server to stream on my own website?​

No. The page can be yours while the video runs on a service. With Live Stream, the stream plays on a page of your WordPress site, and WordPlus Cloud carries the video.

Will streaming slow down my WordPress hosting?​

Not with Live Stream. The video goes from the host to WordPlus Cloud and from there to each viewer, never through your server, so a plan for an ordinary WordPress site is enough.

Can I keep the recordings on my own server?​

Yes. Once a recorded stream ends, your site takes the files, into the storage set up for the site or its uploads folder, and the page of the stream plays the replay.

Can I stream into it over RTMP?​

Not yet. Hosts go live from the browser, or from OBS 30 or later and other encoders over WHIP.