Add H264 Eve dashboard relay

This commit is contained in:
Meta Vens 2026-05-25 22:45:46 +01:00
commit 022567da43
5 changed files with 1018 additions and 6 deletions

View file

@ -27,19 +27,36 @@ dotnet run --project .\src\Mimir.App\Mimir.App.csproj
```
Fensalir creates a shareable D3D12 texture with that name and copies the finished
backbuffer into it during the present pass. A hardware encoder process should
open that named texture, encode H.264/HEVC with GPU hardware, and send frames to
EVE's native receiver.
backbuffer into it during the present pass. `Mimir.EveRelay` opens that named
texture, reads the completed program frame, feeds a low-latency H.264 encoder,
and sends complete Annex-B access units to EveCanvas over the existing
`/stream` WebSocket. EveCanvas treats JPEG frames as the old VoidBot dashboard
fallback only; Mimir dashboard streaming is `h264-annexb` and displays through a
native `AVSampleBufferDisplayLayer` so the iPad owns hardware decode/composite.
`scripts/start-eve-program-output.ps1` starts the Mimir/Fensalir app with the
shared-texture output enabled and verifies the `eve` SSH target before launch.
`scripts/start-eve-dashboard-stream.ps1` starts the Mimir/Fensalir app with the
shared-texture output enabled, starts the H.264 relay, verifies the `eve` SSH
target, opens a reverse SSH tunnel from Eve's `127.0.0.1:8792` back to the
local relay when direct inbound TCP is blocked, and launches EveCanvas:
```powershell
powershell -ExecutionPolicy Bypass -File .\scripts\start-eve-dashboard-stream.ps1
```
The relay defaults to `h264_nvenc`. Use `-Encoder libx264` only as a diagnostic
fallback when no NVENC-capable FFmpeg is installed.
EveCanvas tries `ws://127.0.0.1:8792/stream` first, then falls back to
`ws://192.168.1.66:8792/stream`. The localhost path is not JPEG tunneling; it is
the same H.264 Annex-B stream carried through SSH port forwarding so a Windows
firewall rule cannot silently turn the dashboard into a wall.
## Receiver Contract
EVE owns:
- network receive;
- hardware decode;
- hardware decode of H.264 access units;
- texture upload/import;
- final fullscreen composite;
- touch/Pencil/sensor uplink later.
@ -56,4 +73,5 @@ EVE does not own:
```powershell
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --eve-program-output-contract-smoke
dotnet build .\src\Mimir.EveRelay\Mimir.EveRelay.csproj --no-restore --disable-build-servers
```