Why we rebuilt the OTT panel in Go
, by The Bitstream team
Almost every streaming panel of this kind in use today descends from Xtream Codes. The service was shut down in 2019, but its design lived on in XUI.one and many forks. If you run one of them, you know the shape: PHP and MySQL answer every request, nginx sits in front of everything, and the code is closed or hard to audit.
That design worked for the servers and players of its time. It does not fit a world where one server can push 10 to 25 Gbps and an operator runs many servers in many places.
What we kept
We kept the part your clients depend on. Bitstream speaks the Xtream compatible client API: player_api.php, get.php with m3u and m3u_plus, and xmltv.php. The players your clients already use connect the same way. Nothing changes on their side.
We also kept the scope. Live channels, movies, series, radio, lines, resellers, bouquets and many servers are all there.
What we changed
The language. Bitstream is written in Go, with PostgreSQL and Redis. Each service is one binary. There is no interpreter in the request path, and the panel answers a play request in about 1 ms.
Delivery. One Go process per server serves every viewer. Movie files go from disk to network with sendfile, without passing through the program. Live viewers start on a keyframe from a short buffer kept in memory, so the picture shows up fast: under one second for a running channel in our tests.
Channels. Bitstream runs ffmpeg in copy mode only. It never re-encodes. That keeps CPU low, which means fewer servers for the same number of viewers.
Isolation. Each service runs as its own system user, and nothing runs as root after install. A bug in one service cannot reach the files of another.
Openness. The panel, the installer, the docs and the API contracts are open source under AGPL-3.0. You can read what runs on your servers.
What it costs
Nothing. There is no limit on lines, channels or servers, and no paid tier today. Your panel registers with a free license so we know which versions are out there and can stop a key used for abuse.
Where we are
Bitstream is in beta. It works end to end on our test servers. Next on the roadmap are imports from XC_VM and XUI.one, a side by side benchmark against an Xtream Codes era panel on the same server, and catch-up for every channel.
If you want to try it, install it on a test server and tell us what you find.