From 0632a1baf4d78435a190cfd0680e74fe7c36bcee Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 30 May 2026 22:18:24 +0100 Subject: [PATCH] Move livestream viewer to root GameCult site --- docs/self-hosted-live-edge.md | 13 ++-- live.md | 31 --------- notes/current-system-map.md | 17 ++--- notes/fresh-workspace-handoff.md | 9 +-- state/evidence.jsonl | 1 + state/map.yaml | 13 ++-- static/live/index.html | 37 ----------- static/live/player.css | 104 ------------------------------- static/live/player.js | 43 ------------- 9 files changed, 29 insertions(+), 239 deletions(-) delete mode 100644 live.md delete mode 100644 static/live/index.html delete mode 100644 static/live/player.css delete mode 100644 static/live/player.js diff --git a/docs/self-hosted-live-edge.md b/docs/self-hosted-live-edge.md index 5942597..5601949 100644 --- a/docs/self-hosted-live-edge.md +++ b/docs/self-hosted-live-edge.md @@ -10,8 +10,8 @@ flowchart LR B --> D["SSH TCP forward"] D --> E["Yggdrasil localhost RTMP ingest"] E --> F["HLS segment ring"] - F --> G["nginx static HTTPS"] - G --> H["mimir.gamecult.org static viewer"] + F --> G["streampixels.gamecult.org static HTTPS"] + G --> H["gamecult.org/livestream static viewer"] ``` ## Authority Map @@ -45,16 +45,17 @@ The default push target is: rtmp://127.0.0.1:11935/live/mimir ``` -The public HLS playlist is: +The public HLS playlist is served on the existing Yggdrasil-routed +StreamPixels domain: ```text -https://live.mimir.gamecult.org/hls/mimir.m3u8 +https://streampixels.gamecult.org/mimir/live/hls/mimir.m3u8 ``` -The static viewer lives at: +The static viewer lives on the root GameCult site: ```text -https://mimir.gamecult.org/live +https://gamecult.org/livestream ``` ## Scaling Rule diff --git a/live.md b/live.md deleted file mode 100644 index 6bba1d9..0000000 --- a/live.md +++ /dev/null @@ -1,31 +0,0 @@ -# Mimir Live - - - -
-
- -
Waiting for the live edge.
-
-
-

Self-hosted broadcast

-

Mimir Live

-

- Starfire encodes the final Mimir program once. Yggdrasil receives that - stream, rotates HLS segments, and serves this player over public HTTPS. -

-
-
-
Playlist
-
live.mimir.gamecult.org/hls/mimir.m3u8
-
-
-
Authority
-
Mimir encodes. Yggdrasil distributes. The static site only watches.
-
-
-
-
- - - diff --git a/notes/current-system-map.md b/notes/current-system-map.md index aba515d..15394cb 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -370,14 +370,15 @@ The public self-hosted edge has its first deployable path. `src/Mimir.Broadcast` builds the Starfire-side FFmpeg/NVENC push command for `rtmp://127.0.0.1:11935/live/mimir`; the port is an SSH local forward to Yggdrasil's localhost RTMP listener. Yggdrasil owns nginx RTMP ingest and HLS -segment serving only. It must not transcode or compose in v1. The static Mimir -viewer route is `https://mimir.gamecult.org/live`, backed by -`static/live/player.js` and `static/live/player.css`, and it reads -`https://live.mimir.gamecult.org/hls/mimir.m3u8`. On 2026-05-30 the deployed -Yggdrasil origin validated nginx, listened on `127.0.0.1:1935`, returned -`mimir-live-ok`, and generated four HLS segments plus `mimir.m3u8` from an -eight-second Starfire synthetic NVENC push. The unresolved blocker is public -DNS/TLS for `live.mimir.gamecult.org`. +segment serving only. It must not transcode or compose in v1. The public static +viewer route is `https://gamecult.org/livestream`, owned by the root +`gamecult-site` repo, and it reads +`https://streampixels.gamecult.org/mimir/live/hls/mimir.m3u8`. On 2026-05-30 +the deployed Yggdrasil origin validated nginx, listened on `127.0.0.1:1935`, +returned `mimir-live-ok`, and generated four HLS segments plus `mimir.m3u8` +from an eight-second Starfire synthetic NVENC push. `live.mimir.gamecult.org` +is no longer required for v1 because StreamPixels already has DNS and TLS on +Yggdrasil, and Mimir's own static site does not own the viewer. `MimirSynchronizedBufferPlanner` is now the low-level aligned-buffer primitive: it picks one canonical presentation time inside the retained rolling window and returns per-stream slices for cameras, network display feeds, and audio. Timing diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 75da82e..ddd870c 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -111,10 +111,11 @@ Get-Content .\state\evidence.jsonl -Tail 8 one final H.264/AAC NVENC RTMP stream to `rtmp://127.0.0.1:11935/live/mimir` through an SSH local forward to Yggdrasil. Yggdrasil's nginx RTMP/HLS origin is deployed and has produced - HLS segments from a bounded synthetic push; public activation still needs DNS - and TLS for `live.mimir.gamecult.org`. The static viewer route is - [[live|Mimir Live]] and reads - `https://live.mimir.gamecult.org/hls/mimir.m3u8`. + HLS segments from a bounded synthetic push. Public HLS is served through the + existing StreamPixels TLS host, not a new Mimir media hostname. The public + static viewer belongs to the root GameCult site at + `https://gamecult.org/livestream` and reads + `https://streampixels.gamecult.org/mimir/live/hls/mimir.m3u8`. - Faust/native DSP owns hot audio alignment, separation, spatialization, and synchronized stems. - OBS receives final program surfaces; it does not own synchronization. diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 14f8639..9511d86 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -239,3 +239,4 @@ {"ts":"2026-05-30T21:58:00+01:00","type":"implementation","status":"ok","note":"Mimir now lowers live Leap packed stereo IR into the stereo-depth FieldEvidence lane. MimirRuntime merges a Leap depth frame when a live LeapStereoIr rolling window has a declared GPU texture resource; BuildLeapPackedStereoDepthCandidateFrame treats the packed R8G8 texture as left/right resource identity with R/G observation lanes, emits the pending-calibration Height claim, UAV R16F disparity SurfacePage, R8 confidence texture, and AquariumFieldStereoDepthLowering sidecar. Verified with Mimir build, --leap-packed-stereo-depth-smoke, and --stereo-depth-contract-smoke."} {"ts": "2026-05-30T22:01:42+01:00", "type": "implementation", "status": "ok", "note": "Self-hosted Mimir live edge has a deployed origin proof. Mimir.Broadcast builds the Starfire FFmpeg/NVENC RTMP push to rtmp://127.0.0.1:11935/live/mimir through an SSH local forward; Yggdrasil nginx now has libnginx-mod-rtmp, localhost RTMP ingest, /srv/mimir-live/hls, and a live.mimir.gamecult.org HTTP vhost with CORS for mimir.gamecult.org. An eight-second synthetic NVENC push on 2026-05-30 generated mimir.m3u8 and four TS segments on Yggdrasil. Public DNS/TLS for live.mimir.gamecult.org remains the activation blocker."} {"ts": "2026-05-30T22:04:09+01:00", "type": "verification", "status": "ok", "note": "Yggdrasil target-host fanout smoke ran during an active Starfire synthetic NVENC push through the SSH RTMP tunnel. With LIVE_URL pinned to localhost via curl --resolve, the benchmark fetched a live HLS segment from nginx 320 times with CLIENTS=16 and REQUESTS_PER_CLIENT=20 in 1256 ms. wrk is not installed yet, so p95 latency remains future instrumentation."} +{"ts": "2026-05-30T22:18:07+01:00", "type": "decision", "status": "ok", "note": "Viewer authority moved to root gamecult-site at https://gamecult.org/livestream. Mimir no longer owns a static live viewer page; Mimir.Broadcast remains the Starfire sender, and Yggdrasil serves HLS through the existing StreamPixels TLS route https://streampixels.gamecult.org/mimir/live/hls/mimir.m3u8. The deployed StreamPixels nginx route health check returned mimir-live-ok, and an active synthetic NVENC push generated playlist/segments served publicly through StreamPixels; curl fallback benchmark fetched 320 segment requests in 6756 ms over HTTPS from Yggdrasil."} diff --git a/state/map.yaml b/state/map.yaml index 1d2ce5c..3371750 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -113,12 +113,13 @@ accepted_design: Starfire uses FFmpeg/NVENC to push one final H.264/AAC RTMP stream through an SSH local forward to Yggdrasil. Yggdrasil owns nginx RTMP ingest and HLS segment serving only; it does not transcode or compose. The public viewer - route is `https://mimir.gamecult.org/live`, and it reads - `https://live.mimir.gamecult.org/hls/mimir.m3u8`. The deployed Yggdrasil - origin already validates, listens on localhost RTMP `127.0.0.1:1935`, and - produced HLS segments from an eight-second Starfire synthetic NVENC push on - 2026-05-30. Public DNS/TLS for `live.mimir.gamecult.org` remains the - activation blocker. + route is `https://gamecult.org/livestream`, and it reads the existing + Yggdrasil-routed StreamPixels URL + `https://streampixels.gamecult.org/mimir/live/hls/mimir.m3u8`. The deployed + Yggdrasil origin already validates, listens on localhost RTMP + `127.0.0.1:1935`, and produced HLS segments from an eight-second Starfire + synthetic NVENC push on 2026-05-30. Dedicated Mimir-site and + `live.mimir.gamecult.org` viewer/media hostnames are not needed for v1. - `MimirAudioBlockDescriptor` carries sample rate, channels, sample format, frame count, timestamp, and optional native handle. - `MimirFrameEventProcessStreamSource` is a temporary diagnostic adapter for diff --git a/static/live/index.html b/static/live/index.html deleted file mode 100644 index 7e432b8..0000000 --- a/static/live/index.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Mimir Live - - - -
-
- -
Waiting for the live edge.
-
-
-

Self-hosted broadcast

-

Mimir Live

-

- Starfire encodes the final Mimir program once. Yggdrasil receives that - stream, rotates HLS segments, and serves this player over public HTTPS. -

-
-
-
Playlist
-
live.mimir.gamecult.org/hls/mimir.m3u8
-
-
-
Authority
-
Mimir encodes. Yggdrasil distributes. The static site only watches.
-
-
-
-
- - - - diff --git a/static/live/player.css b/static/live/player.css deleted file mode 100644 index 21b3eeb..0000000 --- a/static/live/player.css +++ /dev/null @@ -1,104 +0,0 @@ -.mimir-live-page, -.mimir-live-shell { - color-scheme: dark; - font-family: Ubuntu, system-ui, sans-serif; - color: #f3fbff; -} - -.mimir-live-page *, -.mimir-live-shell * { - box-sizing: border-box; -} - -.mimir-live-page { - margin: 0; - min-height: 100vh; - background: #05090d; -} - -.mimir-live-shell a { - color: #9bd887; -} - -.mimir-live-shell { - display: grid; - grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); - gap: 24px; - align-items: start; - min-height: 100vh; - padding: clamp(16px, 3vw, 42px); -} - -.mimir-live-stage { - display: grid; - gap: 10px; -} - -.mimir-live-shell video { - width: 100%; - aspect-ratio: 16 / 9; - background: #020507; - border: 1px solid rgba(100, 183, 255, 0.28); - border-radius: 6px; -} - -.mimir-live-status { - min-height: 1.4rem; - color: #c4dce5; - font-size: 0.92rem; -} - -.mimir-live-panel { - display: grid; - gap: 14px; - padding-top: 4px; -} - -.mimir-live-kicker { - margin: 0; - color: #64b7ff; - font-size: 0.78rem; - font-weight: 700; - letter-spacing: 0.08em; - text-transform: uppercase; -} - -.mimir-live-panel h1, -.mimir-live-panel h2 { - margin: 0; - font-family: Montserrat, system-ui, sans-serif; - font-size: clamp(2rem, 5vw, 4.2rem); - font-weight: 200; - letter-spacing: 0; -} - -.mimir-live-panel p { - margin: 0; - color: #c4dce5; - line-height: 1.55; -} - -.mimir-live-panel dl { - display: grid; - gap: 14px; - margin: 6px 0 0; -} - -.mimir-live-panel dt { - color: #6d8792; - font-size: 0.78rem; - font-weight: 700; - text-transform: uppercase; -} - -.mimir-live-panel dd { - margin: 4px 0 0; - color: #f3fbff; - overflow-wrap: anywhere; -} - -@media (max-width: 840px) { - .mimir-live-shell { - grid-template-columns: 1fr; - } -} diff --git a/static/live/player.js b/static/live/player.js deleted file mode 100644 index 205a1c2..0000000 --- a/static/live/player.js +++ /dev/null @@ -1,43 +0,0 @@ -(function () { - const playlistUrl = "https://live.mimir.gamecult.org/hls/mimir.m3u8" - const video = document.getElementById("mimir-live-video") - const status = document.getElementById("mimir-live-status") - const link = document.getElementById("mimir-live-playlist-link") - - if (!video || !status || !link) { - return - } - - link.href = playlistUrl - link.textContent = playlistUrl.replace(/^https?:\/\//, "") - - function setStatus(message) { - status.textContent = message - } - - if (video.canPlayType("application/vnd.apple.mpegurl")) { - video.src = playlistUrl - setStatus("Using native HLS playback.") - return - } - - if (window.Hls && window.Hls.isSupported()) { - const hls = new window.Hls({ - lowLatencyMode: false, - backBufferLength: 30, - maxBufferLength: 18, - }) - hls.loadSource(playlistUrl) - hls.attachMedia(video) - hls.on(window.Hls.Events.MANIFEST_PARSED, () => { - setStatus("Live edge found. Playback is ready.") - }) - hls.on(window.Hls.Events.ERROR, (_event, data) => { - const detail = data && data.details ? ` ${data.details}` : "" - setStatus(`Waiting for stream.${detail}`) - }) - return - } - - setStatus("This browser cannot play HLS here. Try Safari, Edge, or Chrome with hls.js available.") -})()