About StreamBox Architecture
A self-hosted, sovereign live streaming platform designed to receive direct RTMP video feeds from OBS Studio and distribute ultra-low-latency playback to your personal website and third-party destinations simultaneously.
Core Streaming Pipeline
Key Engineering Principles
1. Server-Side Key Authentication
MediaMTX delegates every connection request to StreamBox's webhook endpoint (/api/webhooks/mediamtx/auth). Unauthorized broadcasters attempting to stream with forged keys are blocked at the RTMP handshake layer.
2. Zero Re-Encoding Overhead
StreamBox utilizes FFmpeg with the -c copy video/audio passthrough codec. Your server CPU is preserved, allowing simultaneous distribution to YouTube, Twitch, Kick, and custom RTMP endpoints with minimal hardware consumption.
Streaming Protocols Matrix
| Protocol | Direction | Port | Latency | Browser Support |
|---|---|---|---|---|
| RTMP | Broadcaster Ingest (OBS) | 1935 | 1–3 seconds | No (Flash deprecated) |
| WebRTC (WHEP) | Personal Website Playback | 8889 | < 500 ms (Sub-second) | Universal (HTML5) |
| Low-Latency HLS | Personal Website Playback | 8888 | 1.5–3 seconds | Universal (Hls.js & Safari) |
| WebSocket | Live Telemetry & Chat | 3000 | < 50 ms | All Modern Browsers |