Install Owncast for self-hosted live streaming

Owncast turns a Linux server into your own live streaming site: OBS sends video over RTMP to port 1935, Owncast packages it into HLS, and viewers watch in the browser at your own domain. Install it as a single binary or a Docker container on Ubuntu 24.04, put HTTPS in front, and size the plan by how much transcoding you do and how many viewers you expect.

Self-hosted apps guide, updated 2026-12-03

How does Owncast fit on a CheapVPS server?

Owncast is not one of our app images, so you install it yourself on the Ubuntu 24.04 image, or on the Docker CE image if you prefer containers. It is a single Go program with ffmpeg doing the video work. It listens on two ports: 8080 for the web page, chat, admin panel and the HLS video segments, and 1935 for incoming RTMP from your streaming software.

The flow is simple: your computer runs OBS, which pushes one stream to the server; Owncast transcodes it into one or more quality levels and writes short video segments; every viewer downloads those segments over HTTPS. Incoming traffic from OBS is free, while each viewer adds outgoing traffic.

Which plan fits your stream?

CPU is the main question, because transcoding video is expensive and runs for the whole broadcast.

SetupPlanWhy
Passthrough only (no transcoding), small audienceP21 vCPU, 2 GB RAM, 40 GB NVMe: Owncast just repackages your stream
One transcoded 720p qualityP42 vCPU, 4 GB RAM, 80 GB NVMe: room for one ffmpeg encode
Two or three quality levels, long broadcastsD82 vCPU, 8 GB RAM, 80 GB NVMe: dedicated cores keep encodes steady for hours

Shared vCPU plans can handle passthrough streams well, but long encodes on shared cores can drop frames when neighbours are busy, which is why dedicated CPU makes sense for multi-quality streams. Pick the city closest to most viewers; your own upload to the server matters less, as long as it is stable. Viewers in Brazil are best served from Sao Paulo, a European audience from Amsterdam or Frankfurt.

How do you install Owncast as a binary or in Docker?

Binary install. Create a service user and run the official install script in its home folder:

apt update && apt -y install curl unzip ffmpeg
adduser --system --group --home /opt/owncast owncast
cd /opt/owncast
sudo -u owncast bash -c "curl -s https://owncast.online/install.sh | bash"

The script creates /opt/owncast/owncast containing the program. Run it as a service with /etc/systemd/system/owncast.service:

[Unit]
Description=Owncast
After=network-online.target

[Service]
User=owncast
WorkingDirectory=/opt/owncast/owncast
ExecStart=/opt/owncast/owncast/owncast
Restart=on-failure

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable --now owncast
journalctl -u owncast -n 20

Docker install. On the Docker CE image, one command is enough:

mkdir -p /opt/owncast/data
docker run -d --name owncast --restart unless-stopped \
  -p 127.0.0.1:8080:8080 -p 1935:1935 \
  -v /opt/owncast/data:/app/data owncast/owncast:latest

Binding 8080 to 127.0.0.1 keeps the web port private, because the reverse proxy below serves it publicly over HTTPS.

How do you add a domain and HTTPS with a reverse proxy?

Create an A record such as live.example.com pointing at 203.0.113.10 (and an AAAA record for IPv6 if wanted). Caddy is the shortest route to HTTPS because it fetches and renews certificates itself:

apt -y install caddy
cat > /etc/caddy/Caddyfile <<EOF
live.example.com {
    reverse_proxy 127.0.0.1:8080
}
EOF
systemctl reload caddy

Caddy passes WebSocket connections through automatically, which Owncast chat needs. If you already run Nginx, use a normal proxy_pass http://127.0.0.1:8080; location and add proxy_set_header Upgrade $http_upgrade; and proxy_set_header Connection "upgrade"; so chat connects; our Nginx guide covers certbot. RTMP on 1935 does not go through the proxy; OBS talks to it directly.

Which firewall ports should be open?

ufw allow OpenSSH
ufw allow 80/tcp
ufw allow 443/tcp
ufw allow 1935/tcp
ufw enable

Keep 8080 closed to the outside once the proxy works. If you stream from a fixed IP address at home, you can narrow RTMP to it: ufw allow from 198.51.100.20 to any port 1935 proto tcp. Note that Docker publishes ports by editing iptables directly, so a port published as -p 8080:8080 stays reachable even when ufw denies it; that is why the example above binds it to localhost. The firewall guide explains more.

How do you secure the admin panel and stream key?

Open https://live.example.com/admin. The first login uses the user admin and the default password abc123; change it right away under the server settings. In the same area, under stream keys, delete the default key and generate a long random one. Anyone with a valid stream key can broadcast on your page, so treat it like a password.

While you are there, set the server URL to https://live.example.com, the stream title, and the video quality levels. Each extra quality level adds one ffmpeg encode, so start with one and enable passthrough for the top level if your upload is good.

What should you set in OBS?

In OBS open Settings, Stream, choose Custom, and enter:

  • Server: rtmp://live.example.com:1935/live
  • Stream Key: the key you generated in the admin panel

Under Output, choose the x264 or hardware encoder, a constant bitrate such as 3000~4500 Kbps for 720p or 1080p, and a keyframe interval of 2 seconds. Owncast cuts segments on keyframes, so a long or automatic interval creates large delays and stalls for viewers. Click Start Streaming; the admin dashboard shows the incoming bitrate within a few seconds.

How many viewers does the included traffic cover?

Every viewer downloads the stream at roughly the bitrate of the quality they watch. One hour at 3 Mbit/s is 3 x 3600 / 8 = 1,350 MB, so about 1.35 GB per viewer per hour. The math for a month is: viewers x hours x GB per hour.

Example: 50 viewers, two-hour shows, 20 shows a month gives 50 x 2 x 20 x 1.35 = 2,700 GB, about 2.7 TB of outgoing traffic. P4 includes 20 TB in Europe, 1 TB in North America and 1 TB in Asia-Pacific; D8 includes 20 TB in Europe. Beyond the allowance each extra TB costs $0.72 in Europe and North America or $4.98 in Asia-Pacific and Sao Paulo. Your OBS upload to the server is incoming traffic and does not count. Offering a lower quality level reduces traffic too, since phone viewers often pick it.

How do you update, back up and fix Owncast?

For the binary, stop the service, run the install script again in /opt/owncast (it keeps the data folder) and start it. For Docker: docker pull owncast/owncast:latest, then remove and recreate the container with the same command. Read the release notes first, since major versions sometimes change settings.

Everything you configured lives in the data folder: /opt/owncast/owncast/data for the binary or /opt/owncast/data for Docker. It holds the database with settings, chat and stream keys. Copy it off the server with restic or rsync, or enable the backup add-on for 7 daily copies ($2.41 per month on P4).

  • OBS says "Failed to connect": port 1935 is closed, or the server URL is missing /live.
  • Viewers buffer constantly: CPU is maxed by transcoding. Check top during a stream; remove a quality level or move to dedicated CPU.
  • Chat does not load: WebSocket headers are missing in the Nginx proxy.
  • Stream works but video freezes every few seconds: set the OBS keyframe interval to 2.

Questions about this guide

Can Owncast run on an Arm server?

Yes. Owncast publishes arm64 builds and the Docker image supports arm64, so A8 works in the four European Arm cities. Check that ffmpeg encoding speed fits your quality levels.

Is RTMP traffic encrypted?

Plain RTMP is not encrypted, but it only carries your outgoing broadcast. Restrict port 1935 to your own IP and keep the stream key secret; viewers always watch over HTTPS.

Can I stream to Owncast and other platforms at once?

Yes, from your side: OBS plugins or a local relay can send one copy to Owncast and others elsewhere. The server only receives the copy you send it.

Does Owncast store recordings?

Owncast is built for live video. To keep a copy, record locally in OBS at the same time, which costs nothing in server traffic.

What if my audience grows beyond one server?

You can place a caching proxy in front of the HLS segments, or move to a larger plan with more included traffic. Plans are not resized in place, so moving means a new server and copying the data folder.

Do I need a static IP at home?

No. Only the server needs a fixed address, and every CheapVPS server has a dedicated IPv4. Your home connection just pushes to it.