Move livestream viewer to root GameCult site

This commit is contained in:
Meta Vens 2026-05-30 22:18:24 +01:00
commit 0632a1baf4
9 changed files with 29 additions and 239 deletions

View file

@ -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

31
live.md
View file

@ -1,31 +0,0 @@
# Mimir Live
<link rel="stylesheet" href="/static/live/player.css">
<main class="mimir-live-shell">
<section class="mimir-live-stage" aria-label="Mimir live stream">
<video id="mimir-live-video" controls playsinline preload="metadata" poster="/Mimir.png"></video>
<div class="mimir-live-status" id="mimir-live-status">Waiting for the live edge.</div>
</section>
<section class="mimir-live-panel">
<p class="mimir-live-kicker">Self-hosted broadcast</p>
<h2>Mimir Live</h2>
<p>
Starfire encodes the final Mimir program once. Yggdrasil receives that
stream, rotates HLS segments, and serves this player over public HTTPS.
</p>
<dl>
<div>
<dt>Playlist</dt>
<dd><a id="mimir-live-playlist-link" href="https://live.mimir.gamecult.org/hls/mimir.m3u8">live.mimir.gamecult.org/hls/mimir.m3u8</a></dd>
</div>
<div>
<dt>Authority</dt>
<dd>Mimir encodes. Yggdrasil distributes. The static site only watches.</dd>
</div>
</dl>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js" crossorigin="anonymous"></script>
<script src="/static/live/player.js"></script>

View file

@ -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

View file

@ -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.

View file

@ -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."}

View file

@ -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

View file

@ -1,37 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Mimir Live</title>
<link rel="stylesheet" href="/static/live/player.css">
</head>
<body class="mimir-live-page">
<main class="mimir-live-shell">
<section class="mimir-live-stage" aria-label="Mimir live stream">
<video id="mimir-live-video" controls playsinline preload="metadata" poster="/Mimir.png"></video>
<div class="mimir-live-status" id="mimir-live-status">Waiting for the live edge.</div>
</section>
<section class="mimir-live-panel">
<p class="mimir-live-kicker">Self-hosted broadcast</p>
<h1>Mimir Live</h1>
<p>
Starfire encodes the final Mimir program once. Yggdrasil receives that
stream, rotates HLS segments, and serves this player over public HTTPS.
</p>
<dl>
<div>
<dt>Playlist</dt>
<dd><a id="mimir-live-playlist-link" href="https://live.mimir.gamecult.org/hls/mimir.m3u8">live.mimir.gamecult.org/hls/mimir.m3u8</a></dd>
</div>
<div>
<dt>Authority</dt>
<dd>Mimir encodes. Yggdrasil distributes. The static site only watches.</dd>
</div>
</dl>
</section>
</main>
<script src="https://cdn.jsdelivr.net/npm/hls.js@1.5.17/dist/hls.min.js" crossorigin="anonymous"></script>
<script src="/static/live/player.js"></script>
</body>
</html>

View file

@ -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;
}
}

View file

@ -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.")
})()