Design a half-screen template with a QR code, your own background, logos and graphics — arrange it visually, then broadcast it over the network as an NDI source. Pick it up in NDI Studio Monitor, OBS (NDI plugin), vMix, Resolume, etc.
Three faces, one app:
| Face | What it is |
|---|---|
| Web editor (network) | Full visual editor (drag, resize, presets, templates) served by the app on your LAN — open it from any phone, tablet or laptop. No internet needed. |
| Clean display (OBS / screen) | Pure design output at /display (no toolbars or editor chrome, transparent background, live auto-sync). Perfect for OBS Browser Source, TV screens, or projectors. |
| Desktop companion (local) | Cute Tk window for the person at the machine: live on-air preview, big GO LIVE button, design picker, and quick-change fields that update the broadcast instantly. |
| NDI sender | Background thread re-rendering your exact scene with Pillow, pushing BGRA frames via cyndilib (real NDI, with alpha). |
- One binary.
pyinstaller sema.specproduces a singledist/Sema(.exe)containing the UI, renderer, NDI library and built-in assets. No FFmpeg, no sidecar folders, no installers. User files (uploads, saved designs) live in a per-user data folder, never next to the exe. - Two audiences. Simple mode: 3 steps (Design → Check → Go Live), plain words ("See-through top" instead of "alpha channel"). Pro mode reveals fps / resolution / transparency / network diagnostics.
- Customization first. Every layer's text, colors, sizes, corners, dimming and position is editable. One-click presets (Giving, Wi-Fi, Announcement), screen layouts (lower third / half / full), unlimited saved designs per church, venue or event.
- Logos, images & more. Layer types: QR code (auto-generated from any link/text/Wi-Fi string, or your own uploaded QR picture), text, logo/image (upload any picture, one-click corner placement), background photo (upload or solid tint + dimmer), bars/shapes. Reorder, duplicate, lock, hide, fade.
- Accurate judgment (WYSIWYG). The editor, the True output toggle (pixel-exact server render = NDI bytes) and the NDI feed all render from the same scene JSON. Plus: half-screen guide line, action/title safe areas, live QR health chip (empty code, too small, low contrast, off-screen warnings) and a pre-live confirmation if the QR looks unscannable.
With uv (recommended)
uv sync # install dependencies into virtualenv
uv run app.py # desktop window + web editor (recommended)
uv run server.py # web editor only (headless / dev)pip install -r requirements.txt
python3 app.py # desktop window + web editor (recommended)
sh run.sh # web editor only (headless / dev)
# Windows: start.bat (web only) — or: python app.py- Desktop window opens on the local machine; the web editor opens in the browser too at http://localhost:3200.
- On other devices on the same network, open the LAN URL shown in the desktop window (or printed on startup) — the full editor works there. Hand a volunteer your phone: they can tweak text while you run NDI.
- To view just the design (clean output without editor UI, transparent background, auto-updating live in real time), open
http://localhost:3200/display(orhttp://<lan-ip>:3200/display). Use this as an OBS Browser Source or on confidence monitors / projectors. PressFfor fullscreen,Bto toggle test background.
- See it — the preview shows exactly what's on the canvas (same pixels as NDI). Green/red status tells you OFF AIR vs LIVE plus viewer count.
- Pick a look — ⛪ Giving / 📶 Wi-Fi / 📣 News buttons, or open any saved design. If you're live, viewers see the change on the next frame.
- Quick change — QR link, big title, smaller line → Apply to screen. Sunday-morning link swap without touching the design.
- Go live — one big button. Copy-phone-link shares the editor on the LAN.
- Design — pick a preset, or add QR / text / logo / background / bar.
Drag to move, drag a corner square to resize (QR & logos keep square shape),
arrow keys nudge,
Ctrl+Dduplicates,Delremoves. - Check — enable True output above the canvas: that's exactly what the
network sees. Green
QR: looks scannable ✓chip = phones will read it. Dark QR on a light card, bigger than a playing card on screen. - Go Live — press Go Live. On another machine on the same network, choose your source name in NDI Studio Monitor / OBS / vMix.
Transparency: with See-through top on, the top half is alpha-0 in the NDI signal — overlay it directly on live video in vMix/OBS. Turn it off for a solid full picture.
# Windows
.\build.ps1 # → dist\Sema.exe# macOS / Linux
sh build.sh # → dist/SemaDouble-click it: the desktop window opens (plus the web editor in a browser). First launch may take ~10s (one-file unpack) and the firewall will ask to allow it on Private networks — say yes or other PCs can't see the stream or the editor.
.github/workflows/release.yml builds on every push; pushing a tag builds
and publishes:
git tag v1.0.0 && git push origin v1.0.0
# → Sema.exe (Windows) + Sema-mac.dmg (macOS) + Sema (Linux)
# attached to the v1.0.0 Release automatically.Check the Actions tab for per-commit test builds (artifacts, no release).
- Same subnet (default): sources advertise over mDNS — receivers find them automatically. Sending and viewing PCs must share the LAN/subnet.
- Other subnets/VLANs: run NDI Discovery Server (free, in NDI Tools) and point both ends at it (same trade-off as all NDI apps: mDNS turns off).
- The Network addresses button in Pro mode shows this machine's LAN URLs.
| file | what |
|---|---|
app.py |
Desktop companion (Tk): live preview, Go Live, designs, quick-change — embeds the backend |
presets.py |
Shared Giving/Wi-Fi/Announcement designs (one source for web + desktop) |
db.py |
SQLite storage: designs and autosave management with automatic legacy migration |
server.py |
FastAPI app: scene API, uploads, templates, presets, quick-edit, preview PNG, NDI thread, static UI |
renderer.py |
Pillow compositor: scene JSON → RGBA → BGRA bytes (shared by preview + NDI) |
ndi_sender.py |
cyndilib wrapper with preview-only fallback |
paths.py |
Single-binary paths: read-only bundle vs writable user data dir |
public/ |
Editor UI (index.html, styles.css, app.js) — zero CDN, works offline |
assets/ |
Built-in backgrounds shipped inside the binary |
sema.spec / build.sh / build.ps1 / pyi_rth_ndi.py |
One-binary packaging |
uploads/ designs.db |
Your files & SQLite database (user data dir when packaged) |
GET/POST /api/scene— full scene JSON (the single source of truth)POST /api/upload(multipartfile) — add a logo/background imageGET /api/preview.png?w=&h=— pixel-exact server renderGET /api/export.png— full-res 1920×1080 snapshot downloadPOST /api/live {live,ndiName,fps,scale,alpha}/GET /api/statusGET/POST /api/quick {qr,title,subtitle}— live patch, no restartGET /api/presets/POST /api/presets/{giving,wifi,announce}GET/POST/DELETE /api/templates/{name}— saved designs (stored in SQLite)GET /api/db/status— SQLite database health and verificationWS /ws— live status push
- QR placeholder in the editor is stylized; True output shows the real, phone-scannable code (generated server-side).
- NDI send rate depends on CPU (full Pillow re-render per frame); lower-thirds are mostly static, so 720p/30 or 540p/30 is plenty for typical church PCs.
- Changing fps/scale/name while live restarts the sender (receivers re-acquire in ~1s).