My own live-streaming server
Twitch and YouTube are free, but you play by their rules: their ads, their recommendations, their terms. Owncast is a free, open-source, self-hosted live-streaming server - think of it as your own little Twitch with chat - and it runs in its own Ubuntu Server VM on my Supermicro server.
The heavy part of streaming is the video encoding: every viewer quality level is a separate encode, in real time. Doing that on the CPU eats cores that the other VMs need, so I gave the VM an NVIDIA T1000 8 GB, a small, low-power workstation card with a hardware video encoder (NVENC) that takes the whole job off the CPU.

How it works
- OBS (or any broadcasting software) sends the stream to Owncast over RTMP on port 1935.
- Owncast uses FFmpeg to encode it into one or more quality levels - on my setup on the T1000's NVENC encoder.
- Viewers watch in the browser on Owncast's web page (port 8080 by default), with built-in chat.
Guide: Owncast on Ubuntu Server with an NVIDIA GPU
I run Ubuntu Server for everything I can, and Owncast is no exception.
1. Pass the GPU through to the VM (TrueNAS SCALE)
- System > Advanced > Isolated GPU Device(s): select the T1000 so TrueNAS itself leaves it alone.
- In the VM's Devices, add the T1000 as a PCI passthrough device, then start the VM.
2. Install the NVIDIA driver in Ubuntu
sudo apt update
sudo ubuntu-drivers install
sudo reboot
nvidia-smi # should list the T1000
3. Install FFmpeg with NVENC support
Ubuntu's own FFmpeg package can use NVENC once the driver is installed. Check that the hardware encoders are there:
sudo apt install -y ffmpeg
ffmpeg -hide_banner -encoders | grep nvenc # h264_nvenc should be listed
4. Install Owncast
curl -s https://owncast.online/install.sh | bash
cd owncast
./owncast
Open http://<VM-IP>:8080/admin. Change the default admin password and the stream key straight away.
5. Run it as a service
So it starts with the VM and restarts if it crashes, create /etc/systemd/system/owncast.service (adjust the user and path):
[Unit]
Description=Owncast
After=network-online.target
[Service]
Type=simple
User=owncast
WorkingDirectory=/home/owncast/owncast
ExecStart=/home/owncast/owncast/owncast
Restart=on-failure
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable --now owncast
6. Use the GPU for encoding
In the admin, under Configuration > Server, point Owncast at the system FFmpeg (/usr/bin/ffmpeg). Then under Configuration > Video, choose the NVIDIA GPU (NVENC) codec and set up the quality levels. While streaming, nvidia-smi shows the encoder busy and the CPU stays almost idle.
7. Stream
In OBS: Settings > Stream > Custom, server rtmp://<VM-IP>:1935/live and the stream key from the admin. For viewers outside the house, put Owncast behind a reverse proxy with HTTPS rather than opening port 8080 directly.
