Live
Live video from OBS on your own site. A Live page (and a Live player block for any page) plays your stream while you're on, and shows a picture and a note while you're not. There's no streaming service in between: OBS streams to a small uploader on your computer, which sends the stream to your site, and your server hands it to visitors as plain files.
| Version | 1.3.0 |
| Needs | BlowfishCMS 0.41.0 or newer; OBS Studio and FFmpeg on the streaming computer |
| Connects to | nothing (the streaming computer connects to your site) |
| Runs as | its own service, blowfish_xlive (account _bfxlive) |
| Keeps | while you're live, the stream's last few pieces in /var/www/var/db/blowfishcms-addons/live-files (served at /x/live/files/; never more than 64 MB, and nothing once the stream ends); the stream being recorded, in its data folder's rec/, until it ends and is handed to the Videos library; when the stream started, in its data folder; and the stream key's fingerprint in its private folder |
Switching it on
Upload live-VERSION.tar.gz under available on Site → Add-ons, then
press install. The server sets up its service and folders within a minute
or two. A Live tab appears, with Stream (the stream key and how the
stream stands) and Page (the Live page at /live/, which starts off: turn
it on under Address, menu & on/off).
Setting it up
- Make a stream key. On the Stream tab, press make a stream key. It's shown once: copy it somewhere safe, such as your password manager. Only its fingerprint is kept on the server, so a lost key can't be shown again; make a new one instead (the old one stops working).
- Install FFmpeg on the streaming computer, once. Windows, in
PowerShell:
winget install Gyan.FFmpeg(then open a new PowerShell window). Mac:brew install ffmpeg. Linux: your package manager. - Get live-upload. The Setting up OBS part of the Stream tab links
both versions:
live-upload.ps1for Windows,live-upload.shfor Mac or Linux (which also needscurl). - Set up OBS, once:
- Settings → Stream: Service Custom…, Server
rtmp://127.0.0.1:1935/live, Stream Key anything you like (it never leaves your computer: it isn't your site's stream key). - Settings → Output: video H.264 (x264, or your graphics card's H.264 encoder) with a keyframe interval of 2 seconds, audio AAC, and a bitrate your upload speed carries with room to spare (3000–6000 Kbps for 1080p).
- Settings → Stream: Service Custom…, Server
Day to day
Start live-upload and leave it running:
- Windows:
powershell -ExecutionPolicy Bypass -File live-upload.ps1 -Site https://your-site - Mac or Linux:
sh live-upload.sh https://your-site
It asks for the stream key, then waits for OBS.
- Windows:
- In OBS, press Start Streaming. live-upload says Live., the Stream tab says live, and within a few seconds the Live page shows the player. It runs about 10 seconds behind you.
- Stop Streaming takes the stream off the site at once, and the page shows its picture and note again. live-upload waits for the next time you start streaming; stop it with Ctrl+C. (If it's closed some other way, the page notices within 15 seconds.)
live-upload cuts OBS's stream into pieces without re-encoding it, so it uses almost nothing of your computer. Visitors press watch live to start playing; nothing is downloaded before that. Safari, iPhones and Chrome 142 or later play the stream themselves; other browsers (Firefox, older Chromes) use the add-on's own small player. If a browser's own player can't play it (an error, or nothing after 12 seconds), the add-on's player takes over where the browser has what it needs (iPhones since iOS 17.1), and otherwise the page says what went wrong instead of staying black.
How many are watching. While you're live, the player shows how many are watching beside the live badge, to everyone, and the Stream tab shows it too, with the most at once during the stream (kept until the next one). A viewer counts from pressing watch live until 30 seconds after their page last checked in (every 10 seconds). Each page checks in with a random number of its own, which the server keeps as an empty file for a minute and forgets when the stream ends: nothing about a visitor is kept.
Comments and sharing. The Live page comes with BlowfishCMS's Comments and sharing block under the player: likes, comments and sharing for the page, moderated on the Comments screen like any others. A Live page made before Live 1.0.3 can have it added: Add a block, Comments and sharing. It can go on any other page too.
Each stream is saved to Videos. While you're live, the stream is also
recorded on the server. When you stop streaming, it's added to the Videos
library within a minute or two, at the top, titled Livestream, 23 November
2026, 20:15 and tagged #pastlivestreams, ready to watch at once. Rename it,
give it a poster or delete it there like any other video. A Video gallery
block showing only the tag pastlivestreams makes a page of past streams.
- Turn it off (or on) under Saving streams on the Stream tab.
- Nothing is re-encoded: the server joins the stream's pieces into an ordinary MP4, which takes about as long as copying the file.
- A recording takes as much room on the server as the stream so far (about 2.7 GB an hour at 6000 Kbps), and joining it briefly needs as much again. The recording stops (the stream goes on) before the disk would be left with less than 1 GB beyond that; the Stream tab says so.
- If live-upload is closed without saying so, the stream is saved once nothing has come for a minute (at the latest within 15 minutes).
Either way, the live pieces visitors are sent come off the server as soon as you stop.
The Live player block can go on any page (the home page, say). Its Picture while not live comes from the picture library, and Note while not live is Markdown ("Live every Saturday at 8 p.m.").
Troubleshooting
| What you see | Cause and fix |
|---|---|
| live-upload: "That stream key isn't right." | The key was mistyped, or a new one was made since. Make a new key on the Stream tab and use that. |
| live-upload: "Live has no stream key yet: make one on its Stream screen." | Make a key on the Stream tab first. |
| live-upload: "Only live.m3u8 and the .mp4 and .m4s pieces it names are taken." / "That isn't an HLS playlist." | Something other than live-upload is sending to the site's upload address. |
| live-upload: "Send each piece whole, with its length (not chunked)." | Something other than live-upload is sending to the site (OBS's own Output to URL can't be used: it sends pieces chunked, which the server can't take). Use live-upload. |
| live-upload: "The piece couldn't be saved: the add-on's folders aren't set up …" | The server didn't finish switching Live on. On the server: doas blowfishctl addon enable live. |
| live-upload: "The piece couldn't be saved (is the disk full?)." | Free some space on the server (doas blowfishctl status shows it). |
| live-upload: "The stream's pieces fill more than 64 MB on the server…" | The bitrate is too high for 2-second pieces, or OBS's keyframe interval isn't 2 seconds: lower the bitrate, or set the keyframe interval to 2. |
| live-upload: "The site keeps refusing pieces: trying less often." | The site answered errors (shown above it) several times in a row. live-upload waits longer between tries, up to 30 seconds, so it never floods your server; fix what the messages say, or stop streaming. |
| live-upload: "Send pieces with PUT." | Something other than live-upload is sending to the site. |
| live-upload: "live-upload needs FFmpeg…" | Install FFmpeg (step 2 above), then open a new PowerShell or terminal window. |
| live-upload: "FFmpeg stopped: … Is something else using port 1935?" | Another program on your computer is using port 1935 (another live-upload, or a streaming server). Close it, or run live-upload with -Port 1936 (sh live-upload.sh https://your-site 1936) and use rtmp://127.0.0.1:1936/live in OBS. |
| Waiting for OBS… and nothing more | OBS isn't streaming to live-upload: check its Stream settings (Custom, rtmp://127.0.0.1:1935/live) and press Start Streaming. |
| OBS: "Failed to connect to server" | live-upload isn't running (or is on another port). Start it first. |
| The page plays, but pieces are long or the picture stalls every few seconds | OBS's keyframe interval isn't 2 seconds: set it in Settings → Output. |
| An iPhone shows a black player | Update BlowfishCMS to 0.39.4 or newer: its httpd configuration gives the stream's files the types iPhones insist on (doas blowfishctl httpd writes it again). On iOS 17.1 or later the add-on's own player takes over if the iPhone's can't play it. |
| The page says "This browser can't play live video." | A very old browser. Any current Firefox, Chrome, Edge or Safari plays it. |
| "The stream stopped. It may be starting again…" | Pieces stopped arriving (a dropped connection, or OBS stopped). Press watch live again once the stream is back. |
| The stream stutters | Your upload can't keep up: lower OBS's video bitrate or resolution. |
| Stream tab: "Saving streams: stopped at … the server's disk is nearly full" | Free some space (doas blowfishctl status shows it), or turn saving off. The part recorded so far is still saved. |
| A stream never appears in Videos | The Overview says why under needs attention if it couldn't be added. Root's crontab must have the BlowfishCMS lines (doas blowfishctl httpd puts them back). |
Limits
- One stream at a time, at one quality (no choice of resolutions).
- About 10 seconds behind live, as HLS is.
- A saved stream is the stream as it was sent: a piece that never reached the server leaves a still moment, and a recording stopped by a full disk is saved up to that point.
- No chat.