Null-DRM-Official/README.md
404errordeveloper 8fc7e4c0b8 streamd: serve start/stop/update, streamd.yaml, egress, module panel fixes
- Add streamd serve start|stop|restart|status|update with auto-written streamd.yaml
- Panel modules: STREAMD_MODULES_DIR for describe, YAML channel fallback, textarea value fix
- Per-stream WireGuard/SOCKS egress profiles + Settings UI
- Drop drm-* from release builds; track streamd-bg.sh / streamd-update.sh wrappers
- Docs: streamd-server-setup lifecycle and update flow
2026-10-10 18:05:51 +02:00

254 lines
8.2 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 📺 Streamd
**Next-generation open-source DRM decryption for Android streaming apps.**
Capture live sessions from phones (BBC iPlayer, RTÉ, TG4, ITVX, Channel 4, …), pull manifests
and licenses through a transparent MITM, and restream. One host binary — **`streamd`** —
plus drop-in providers under **`modules/`**.
📦 Releases: [git.nulldrm.com](https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases)
📚 Docs: [docs/](docs/)
---
## ✨ What it does
Each provider is a **module** that can launch the app, auto-play a channel like a
user would, and capture the stream metadata over HTTPS MITM. When a module does
not exist yet, you can still run discover / transparent capture and inspect raw
traffic.
| Module | App | Notes |
|--------|-----|--------|
| 📺 `bbc` | BBC iPlayer | Transparent MITM; UK VPN on phone |
| 🇮🇪 `rte` | RTÉ Player | Irish egress; ModularDRM keys |
| 🟢 `tg4` | TG4 | Catalog + phone capture |
| 🟣 `itv` | ITVX | Transparent MITM; UK VPN; Live list autoplay |
| 🟧 `c4` | Channel 4 | Transparent MITM; UK VPN; Live TV grab-all |
---
## 🖥️ streamd dashboard
Run `streamd serve`, open the panel in a browser, manage streams and API keys:
<p align="center">
<img src="docs/images/streamd/dashboard.jpg" alt="streamd Dashboard — overview, live Channel 4, HLS link" width="720" />
</p>
<p align="center"><em>Dashboard — health, live streams, and play links</em></p>
<p align="center">
<img src="docs/images/streamd/streams.jpg" alt="streamd Streams list" width="720" />
</p>
<p align="center"><em>Streams — list, filters, start / stop / restart</em></p>
<p align="center">
<img src="docs/images/streamd/stream-detail.jpg" alt="streamd stream detail with in-browser player" width="720" />
</p>
<p align="center"><em>Stream detail — credentials, variants, and preview player</em></p>
<p align="center">
<img src="docs/images/streamd/people-keys.jpg" alt="streamd People and API keys" width="720" />
</p>
<p align="center"><em>People &amp; keys — accounts and agent API keys</em></p>
Server setup guide: [docs/streamd-server-setup.md](docs/streamd-server-setup.md) · full reference: [docs/streamd.md](docs/streamd.md)
---
## 🚀 Quick start
### 1️⃣ Download
Host binaries ship on two rolling channels (always the newest build — no version pin):
| Channel | Tag | When to use |
|---------|-----|-------------|
| **Stable** | [`stable`](https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/tag/stable) | Everyday installs |
| **Beta** | [`beta`](https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/tag/beta) | Try pre-releases (`vX.Y.Z-beta.N`) |
Provider zips still come from **`modules-v*`** releases (`bbc.zip`, `rte.zip`, …).
Pick **one** host binary block for your machine, then run `chmod +x streamd` on Linux/macOS.
**Linux Intel / AMD 64-bit (stable)**
```bash
curl -fL -o streamd \
"https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/stable/streamd-linux-amd64"
chmod +x streamd
```
**Linux ARM 64-bit (stable)** — Raspberry Pi 4+, many cloud ARM VMs
```bash
curl -fL -o streamd \
"https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/stable/streamd-linux-arm64"
chmod +x streamd
```
**Beta channel (Linux Intel / AMD 64-bit pre-release)**
```bash
curl -fL -o streamd \
"https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/beta/streamd-linux-amd64"
chmod +x streamd
```
**Windows Intel / AMD 64-bit (stable, PowerShell)**
```powershell
Invoke-WebRequest -Uri "https://git.nulldrm.com/nulldrm/Null-DRM-Official/releases/download/stable/streamd-windows-amd64.exe" -OutFile streamd.exe
```
Other stable assets: `streamd-windows-arm64.exe`, `streamd-darwin-amd64`, `streamd-darwin-arm64`,
`proxy-android-arm64`. For beta, swap `/download/stable/` → `/download/beta/` in any URL.
Pinned install: swap `stable` / `beta` for a concrete tag such as `v0.1.5` or `v0.2.0-beta.1`.
```text
Streamd/
streamd.exe # or ./streamd on Linux/macOS
bin/proxy-android-arm64 # optional; also embedded in the release binary
modules/ # or upload zips in the streamd Modules page
bbc/ # unzip bbc.zip here
rte/
tg4/
itv/
data/ # your .wvd, optional
outputs/ # created on first run
```
On first run, `streamd` creates the install scaffold next to the exe.
### 2️⃣ Prerequisites
| Need | Why |
|------|-----|
| 📱 **adb** on `PATH` | phone capture |
| 🔐 Rooted Android (Magisk) | system CA for HTTPS MITM |
| 🔑 **`.wvd`** in `data/` | Widevine keys (RTE/TG4/ITV; BBC mobile is often clear) |
| 🐍 Python 3.10+ + `.venv` | only if you fetch keys with `wvkey.py` |
### 3️⃣ Install a provider
Unzip into `modules/<name>/`. Edit **`module.yaml`** — fill sensitive fields only
(RTE license URL / KIDs; TG4 account + policy key + video ids). BBC / ITVX need
almost nothing extra.
```bash
streamd modules
# or: streamd --modules-dir D:\mods modules
```
### 4️⃣ Phone CA (once per device / CA)
```bash
streamd proxy install-ca --reinject
adb shell am force-stop bbc.iplayer.android # or the app you will capture
```
### 5️⃣ Capture
```bash
# BBC + NordVPN UK on the phone (transparent MITM; --channel auto-plays)
streamd capture --app bbc --channel bbcone --wait 120
streamd capture --app bbc --channel s4c --wait 120
# ITVX (UK VPN; Live tab autoplay)
streamd capture --app itv --channel itv1 --wait 90
# Channel 4 — one channel, or every Live channel
streamd capture --app c4 --channel channel4 --wait 90
streamd capture --app c4 --all --wait 90
# Grab every channel for any module
streamd capture --app itv --all --wait 90
# RTE / TG4 (keys via --wvd when needed)
streamd capture --app rte --channel rteone --wvd data/device.wvd
streamd capture --app tg4 --channel ioi --wvd data/device.wvd
# Catalog only (no phone) — TG4
streamd catalog --app tg4 --channel ioi --keys --wvd data/device.wvd --json
```
📁 Results land in `outputs/<app>/<stamp>/` (and `latest/`).
### 6️⃣ Clean the phone after a run
```bash
streamd proxy reset
```
Stops MITM/iptables and deletes pushed CA/binaries so the next capture starts fresh.
---
## 🧾 Command cheat sheet
```text
streamd [--modules-dir DIR] <command> …
streamd modules
streamd capture --app NAME [--channel ID] [--wait N] [--wvd PATH] [--serial S]
streamd catalog --app NAME --channel ID [--keys] [--wvd PATH] [--json] [--list]
streamd proxy install-ca [--reinject] | reset [--keep-captures]
| transparent --package PKG [--mitm-host HOST]
| start | stop | push | discover | pull
streamd serve [--bind …] [--data …] [--token …]
streamd agent run|status|devices|enqueue|cancel [--config …]
```
🌍 Global: `--modules-dir DIR` or `$STREAMD_MODULES_DIR` (default: `./modules`).
🎯 `--channel` implies interactive auto-play (provider-specific Live UI flow).
---
## ⚙️ Config: publish vs local
| File | In git / zips? | Purpose |
|------|----------------|---------|
| `module-publish.yaml` | git only | Universal package, channels, UI |
| `module.yaml` | zips yes / git no | Secrets + overlays; release zips ship publish renamed |
Release module assets are `bbc.zip` / `rte.zip` / `tg4.zip` / `itv.zip` / `c4.zip` / `my5.zip`
with `module.yaml` only (no `module-publish.yaml` inside the zip).
---
## 🛠️ Building from source *(optional)*
```bash
git clone https://git.nulldrm.com/nulldrm/Null-DRM-Official.git
cd Null-DRM-Official
go -C apps/cli build -o ../../bin/streamd.exe . # Windows
# Host release: .\scripts\build-release.ps1 -Version v0.1.1
# Modules: .\scripts\build-modules-release.ps1 -Version modules-v0.1.1
```
More detail: [docs/quickstart.md](docs/quickstart.md) · [docs/architecture.md](docs/architecture.md) · [docs/providers/bbc.md](docs/providers/bbc.md)
---
## 💚 Support the project
If Streamd saves you time, donations keep development going:
| Coin | Address |
|------|---------|
| ⟠ **ETH** | `0xa6314ce4deaa8329abba301802e3f511b3fa80a6` |
| Ł **LTC** | `ltc1qpm26uccjgn4gx5pqxwzvs89mdp9hcshx9xj5a6` |
| ₿ **BTC** | `bc1qzr70ur76jhm5gjsuqelzqaskumpkhkk2ewjgha` |
Thank you 🙏
---
## ⚖️ Scope
Only for services you are authorised to access, with content you have the right
to decrypt.