Align docs after Spout deletion
This commit is contained in:
parent
f27c3e1170
commit
71931b3094
12 changed files with 85 additions and 182 deletions
|
|
@ -82,9 +82,8 @@ Source-event analysis command:
|
|||
|
||||
Synchronized Aquarium/Spout publisher command:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_stream_spout.py --source cultcache --frame-cache .\calibration\runs\visual-state.msgpack --audio-cache .\calibration\runs\audio-state.msgpack --audio-events-cache .\calibration\runs\av-sync-status.json
|
||||
```
|
||||
The old Python/OpenGL Spout diagnostic launcher has been deleted. Aquarium is
|
||||
the next OBS-facing publisher.
|
||||
|
||||
## Invariants
|
||||
|
||||
|
|
|
|||
|
|
@ -56,8 +56,8 @@ shape removes independent per-kind storage from the live foundation.
|
|||
- `localcast.diagnostics.render_math` owns pure diagnostic render budgeting,
|
||||
camera projection, brush lowering, and CPU rasterization tests without an
|
||||
OpenGL or OpenCV requirement.
|
||||
- `localcast.diagnostics.spout_output` is now only the diagnostic Spout/OpenGL
|
||||
publisher shell around that math. It is not production runtime.
|
||||
- The Python/OpenGL Spout publisher and launcher have been deleted.
|
||||
Production Spout2 publication belongs to Aquarium.
|
||||
- `scripts/diagnostic_live_sensor_fusion.py` writes fused render frames into `calibration/runs/visual-state.msgpack`. This is diagnostic/migration code, not production runtime.
|
||||
- The live visual producer writes a multi-LOD scene cache with source kind and priority. Real Leap frames are promoted as the highest-priority visual timing/spatial evidence; Leap fallback frames remain lower-priority diagnostics.
|
||||
- Live clap calibration is wired into the visual producer. It keeps a rolling frame window from the Kiyo pair plus Leap, reads the live spatial audio frame for transient candidates, publishes `clap-events.msgpack`, injects clap calibration markers into the render frame, and writes clap evidence into the LOD cache. Kiyo stereo owns the current rough 3D solve; Leap owns the best visual timing witness until its geometric model is calibrated.
|
||||
|
|
@ -68,8 +68,9 @@ shape removes independent per-kind storage from the live foundation.
|
|||
- Live fallback-only RGB/Leap mode exists for deadline operation when OpenCV/MSMF/DirectShow reads block longer than the five-second reservoir. It keeps the reservoir and OBS output alive while real camera capture is moved to nonblocking ingress.
|
||||
- OpenCV camera reads now run behind `LatestFramePump` workers so blocking drivers cannot freeze the fusion hot loop. The live deadline command uses lower per-frame sample density (`--rgb-room-step 16 --leap-step 16 --points 64`) so the reservoir/TAA path stays fresh enough for Spout to render visual points inside the five-second budget.
|
||||
- `localcast.sensor_fusion.chirp_pose` converts live phase-field delay meaning for Kiyo/PS Eye microphone sources into camera-body range constraints and per-camera pose-correction estimates. It can load camera-mic and speaker geometry from the audio-field profile, with the example profile used as the live fallback until measured local geometry exists. `scripts/diagnostic_live_sensor_fusion.py` injects those constraints as `camera-chirp:*` and `camera-pose-correction:*` render points plus `chirp-camera-pose` LOD evidence.
|
||||
- `scripts/diagnostic_stream_spout.py` runs the deadline Spout sender loop from the typed cache with typed and JSON heartbeat status. This is diagnostic/migration code, not production runtime.
|
||||
- The deadline Spout renderer has a named `kiyo-mid-deru` virtual camera preset: eye at the midpoint between the two Kiyo-class cameras and target on the co-streamer body volume. It also applies a renderer-owned point budget with pinned calibration/cross-modal constraints, stable high-confidence anchors, and frame-varying remainder samples so downstream TAA/supersampling can accumulate detail without forcing every source claim into every OBS frame. Its JSON heartbeat reports the prefix counts that survived the render budget.
|
||||
- Diagnostic render math still has a named `kiyo-mid-deru` virtual camera
|
||||
preset and point budget for CPU tests. Aquarium should own the production
|
||||
version of that policy.
|
||||
- `docs/obs-spout-streaming.md` documents OBS setup and the Aquarium replacement boundary.
|
||||
- `docs/typed-visual-state.md` documents the diagnostic CultCache file shape
|
||||
and the CultNet visual schema target.
|
||||
|
|
@ -107,8 +108,8 @@ shape removes independent per-kind storage from the live foundation.
|
|||
## Next
|
||||
|
||||
1. Delete remaining production dependence on `scripts/diagnostic_live_sensor_fusion.py`,
|
||||
`localcast.diagnostics.spout_output`, diagnostic JSON render-frame adapters,
|
||||
diagnostic JSON LOD adapters, and Python reservoir-window clipping.
|
||||
diagnostic JSON render-frame adapters, diagnostic JSON LOD adapters, and
|
||||
Python reservoir-window clipping.
|
||||
2. Bind Aquarium/Faust to the rolling-buffer `LocalcastRuntime`.
|
||||
3. Move camera/mic/loopback ingest into native capture workers that append
|
||||
typed sample handles.
|
||||
|
|
|
|||
|
|
@ -137,9 +137,10 @@ Delete or quarantine these before adding new live features:
|
|||
5. Move any remaining useful Python packet/schema code into diagnostics or
|
||||
contract tests.
|
||||
6. Keep the Python visual producer named `scripts/diagnostic_live_sensor_fusion.py`
|
||||
and the OpenGL Spout bridge under `localcast.diagnostics.spout_output` only
|
||||
until they can be deleted.
|
||||
7. Replace the OpenGL Spout path with an Aquarium-owned Spout publisher.
|
||||
and compatibility adapters under `localcast.diagnostics` only until they can
|
||||
be deleted.
|
||||
7. Build the Aquarium-owned Spout publisher. Do not revive the Python/OpenGL
|
||||
path.
|
||||
8. Move audio hot path into Faust/native DSP behind typed reservoir handles.
|
||||
9. Keep FFmpeg/SRT scripts only as simple V1 LAN bridge and capture utilities.
|
||||
10. Delete dead compatibility files once no diagnostic command depends on them.
|
||||
|
|
|
|||
|
|
@ -30,13 +30,9 @@ OBS should be open before the sender starts if OBS is the SRT listener. If a sou
|
|||
|
||||
## Synchronization
|
||||
|
||||
The video SRT source is a timed media artifact in the Aquarium path, not just scenery in OBS. Keep the listener URL and latency aligned with `diagnostic_stream_spout.py` while the diagnostic bridge still exists:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_stream_spout.py `
|
||||
--remote-video-url "srt://0.0.0.0:5100?mode=listener&latency=120000&timeout=5000000" `
|
||||
--remote-video-latency-ms 250
|
||||
```
|
||||
The video SRT source is a timed media artifact in the Aquarium path, not just
|
||||
scenery in OBS. Keep the listener URL and latency aligned with the
|
||||
Aquarium/native presentation ledger.
|
||||
|
||||
The live sync heartbeat is `calibration/runs/av-sync-status.json`. `remote-video-latency-ms` is presentation delay, not merely the SRT URL's `latency` parameter. Check `remote_video.delta_ns` before trusting the composite. If that number grows, fix the configured media delay or the ingest path instead of eyeballing it in OBS like a doomed little stage magician.
|
||||
|
||||
|
|
|
|||
|
|
@ -1,117 +1,32 @@
|
|||
# OBS Spout Streaming
|
||||
|
||||
## Objective
|
||||
## Current Status
|
||||
|
||||
Publish the diagnostic visual fusion state as a named GPU texture that OBS can receive through the Spout2 plugin.
|
||||
The Python/OpenGL Spout sender has been deleted.
|
||||
|
||||
This is the deadline diagnostic stream surface. It is not a preview window and it is not a desktop-capture workaround. LocalCastBridge emits a typed render-frame packet; the Spout sink turns that packet into a GPU texture named for OBS.
|
||||
LocalCastBridge no longer carries a runnable OpenGL publication path. The only
|
||||
surviving pieces are diagnostic packet/brush math in
|
||||
`localcast.diagnostics.render_math` and typed diagnostic visual documents in
|
||||
`localcast.diagnostics.visual_cache`.
|
||||
|
||||
## Current Mechanism
|
||||
Production Spout2 publication belongs to Aquarium.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["Sensor fusion producer"] --> B["CultCache render-frame doc"]
|
||||
B --> C["scripts/diagnostic_stream_spout.py"]
|
||||
C --> D["ScreenBrushPacket lowering"]
|
||||
D --> E["OpenGL texture/FBO"]
|
||||
E --> F["Spout sender texture"]
|
||||
F --> G["OBS Spout2 Capture"]
|
||||
```
|
||||
|
||||
Aquarium Engine remains the intended authority for dense brush/splat rendering.
|
||||
The useful diagnostic boundary is the typed `localcast.visual.render_frame`
|
||||
CultCache document; the production boundary should be the native typed packet
|
||||
and CultNet schema, not Python file polling.
|
||||
|
||||
The deadline sink borrows the Zyphos brush rule rather than pretending points are enough: each render point lowers into a compact anisotropic screen brush with center, radii, rotation, and color. That shape mirrors Aquarium's bounded brush/splat direction while keeping the stream path simple enough to verify under pressure.
|
||||
|
||||
## Run
|
||||
|
||||
Install calibration/runtime dependencies once:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe -m pip install -r .\requirements-calibration.txt
|
||||
```
|
||||
|
||||
Start the Spout sender:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_stream_spout.py `
|
||||
--source cultcache `
|
||||
--frame-cache .\calibration\runs\visual-state.msgpack `
|
||||
--demo-if-missing `
|
||||
--sender-name "LocalCastBridge Point Cloud" `
|
||||
--width 1920 `
|
||||
--height 1080 `
|
||||
--fps 60 `
|
||||
--status .\calibration\runs\stream-spout-status.json `
|
||||
--status-cache .\calibration\runs\visual-stream-status.msgpack `
|
||||
--audio-cache .\calibration\runs\audio-state.msgpack `
|
||||
--audio-events-cache .\calibration\runs\audio-events.msgpack `
|
||||
--remote-video-url "srt://0.0.0.0:5100?mode=listener&latency=120000&timeout=5000000" `
|
||||
--remote-video-latency-ms 250
|
||||
```
|
||||
|
||||
Start the current live fusion producer:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_live_sensor_fusion.py `
|
||||
--cache .\calibration\runs\visual-state.msgpack `
|
||||
--fps 30 `
|
||||
--points 256
|
||||
```
|
||||
|
||||
For OBS, add a Spout2 Capture source and select `LocalCastBridge Point Cloud`. On this workstation, OBS websocket was enabled locally and the Off World Live `win-spout` plugin was installed under `C:\ProgramData\obs-studio\plugins\win-spout`.
|
||||
|
||||
## Status
|
||||
|
||||
The sender writes a heartbeat JSON file:
|
||||
|
||||
```powershell
|
||||
Get-Content .\calibration\runs\stream-spout-status.json
|
||||
```
|
||||
|
||||
Fields:
|
||||
|
||||
- `sender_name`: the Spout sender OBS should see.
|
||||
- `frames_sent`: count of successful `sendTexture` calls.
|
||||
- `point_count`: number of packet points in the last status update.
|
||||
- `frame_path`: packet source path.
|
||||
- `last_error`: `null` during healthy output.
|
||||
|
||||
The typed status document is written to `calibration/runs/visual-stream-status.msgpack`. The JSON file is only the blunt terminal heartbeat.
|
||||
|
||||
The sync heartbeat is written to `calibration/runs/av-sync-status.json`. It includes the audio frame delta and the remote SRT video artifact:
|
||||
|
||||
- `remote_video.source_name`: OBS/Aquarium-facing source name.
|
||||
- `remote_video.url`: the SRT listener URL for the neighbor feed.
|
||||
- `remote_video.expected_latency_ns`: configured presentation delay, not just the SRT socket latency.
|
||||
- `remote_video.delta_ns`: difference between the render presentation clock and the expected remote video presentation time.
|
||||
- `remote_video.synchronized`: whether the delta is inside tolerance.
|
||||
|
||||
## Invariants
|
||||
|
||||
- OBS receives a named Spout texture.
|
||||
- The Spout sink owns presentation only; it does not own camera calibration, fusion, or scene truth.
|
||||
- CultCache MessagePack documents are diagnostic local state. Production visual
|
||||
state crosses native/CultNet typed document boundaries; the Python file
|
||||
adapter is not live authority.
|
||||
- JSON render-frame polling is compatibility scaffolding only.
|
||||
- Latency is explicit in the packet timestamps. The renderer may buffer, but it may not silently erase the visual/audio alignment fields.
|
||||
- The neighbor SRT video feed is a timed artifact. OBS must not be left to eyeball-sync it against the Spout texture and AmbiX bed.
|
||||
|
||||
## Aquarium Cut
|
||||
|
||||
The next renderer cut is to move the `RenderFramePacket` consumer into Aquarium Engine:
|
||||
## Target
|
||||
|
||||
```text
|
||||
RenderFramePacket
|
||||
-> CultRenderFrame / CultNet document_put
|
||||
native rolling reservoir
|
||||
-> Aquarium typed runtime state
|
||||
-> compact anisotropic brush/splat buffers
|
||||
-> GPU feature/fusion/material/brush buffers
|
||||
-> D3D render target
|
||||
-> Spout2 sender texture
|
||||
-> OBS Spout2 Capture
|
||||
```
|
||||
|
||||
That is the coherent route to millions of splats. The current OpenGL sender exists so the stream has a live OBS texture today while preserving the boundary Aquarium needs tomorrow.
|
||||
## Invariants
|
||||
|
||||
- OBS receives a named Spout2 texture from Aquarium, not Python/OpenGL.
|
||||
- LocalCastBridge may expose diagnostic typed documents and CPU render math, but
|
||||
it does not own the production renderer.
|
||||
- JSON remains a diagnostic/status surface only.
|
||||
- The neighbor SRT video feed is a timed media artifact and must share the same
|
||||
presentation ledger as Aquarium output and Faust audio.
|
||||
|
|
|
|||
|
|
@ -78,11 +78,9 @@ flowchart TD
|
|||
- `localcast.diagnostics.render_math` owns pure diagnostic render budgeting,
|
||||
camera projection, brush lowering, and CPU rasterization. It has unit tests
|
||||
and does not require a GPU context.
|
||||
- `localcast.diagnostics.spout_output` owns only the deadline OBS publication
|
||||
sink: render-frame packet in, GPU texture plus Spout sender heartbeat out. It
|
||||
is diagnostic/migration code, not the production visual authority.
|
||||
- `scripts/sensor_fusion.py` owns CLI composition for offline observation files.
|
||||
- `scripts/diagnostic_stream_spout.py` owns the diagnostic Spout sender loop for OBS.
|
||||
- The Python/OpenGL Spout publisher has been deleted. No LocalCastBridge Python
|
||||
module owns OBS publication.
|
||||
- `config/sensor-fusion.example.json` owns the declarative rig shape: capture hints, intrinsics, extrinsics, latency, and fusion thresholds.
|
||||
|
||||
## Cache Discipline
|
||||
|
|
@ -169,9 +167,9 @@ The current streamable cut is:
|
|||
|
||||
```text
|
||||
CultCache render-frame document
|
||||
-> compact anisotropic screen brush lowering
|
||||
-> OpenGL texture upload
|
||||
-> SpoutGL sendTexture
|
||||
-> Aquarium typed runtime state
|
||||
-> D3D render target
|
||||
-> Spout2 sender
|
||||
-> OBS Spout2 Capture source
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -21,18 +21,20 @@ flowchart TD
|
|||
Z["audio-events.msgpack"] --> Y
|
||||
D --> Y
|
||||
Y --> E["CultCache MessagePack store"]
|
||||
E --> F["diagnostic_stream_spout.py"]
|
||||
F --> G["ScreenBrushPacket lowering"]
|
||||
G --> H["Spout sender"]
|
||||
H --> I["OBS Spout2 Capture"]
|
||||
E --> F["diagnostic readers"]
|
||||
F --> G["render_math CPU checks"]
|
||||
G --> H["Aquarium replacement work"]
|
||||
```
|
||||
|
||||
Diagnostic files:
|
||||
|
||||
- `calibration/runs/visual-state.msgpack`: typed diagnostic visual frame state.
|
||||
- `calibration/runs/visual-stream-status.msgpack`: typed stream status state.
|
||||
- `calibration/runs/stream-spout-status.json`: compatibility heartbeat for quick terminal checks.
|
||||
- `calibration/runs/av-sync-status.json`: visual/audio sync heartbeat from the Spout/Aquarium publisher.
|
||||
- `calibration/runs/visual-stream-status.msgpack`: typed diagnostic stream
|
||||
status state.
|
||||
- `calibration/runs/stream-spout-status.json`: legacy heartbeat shape for quick
|
||||
terminal checks when a diagnostic publisher exists.
|
||||
- `calibration/runs/av-sync-status.json`: visual/audio sync heartbeat shape for
|
||||
Aquarium/native publishers.
|
||||
|
||||
## Document Types
|
||||
|
||||
|
|
@ -92,23 +94,20 @@ frames presentable.
|
|||
|
||||
## Audio Synchronization
|
||||
|
||||
`diagnostic_stream_spout.py` can read `calibration/runs/audio-state.msgpack` and `calibration/runs/audio-events.msgpack` while it renders the diagnostic visual frame. It selects source events against `RenderFramePacket.audio_alignment_time_ns`, adds synchronized audio-event points to the render packet, and writes `calibration/runs/av-sync-status.json` with the active visual frame id, audio frame id, audio delta, event count, overlay count, and remote video sync status.
|
||||
The deleted Python/OpenGL sender used to read `calibration/runs/audio-state.msgpack`
|
||||
and `calibration/runs/audio-events.msgpack` while rendering the diagnostic
|
||||
visual frame. That responsibility now belongs in Aquarium/native code: select
|
||||
source events against `RenderFramePacket.audio_alignment_time_ns`, add
|
||||
synchronized renderer-visible transient geometry, and write/publish sync status
|
||||
with visual frame id, audio frame id, audio delta, event counts, and remote
|
||||
video status.
|
||||
|
||||
The audio bed still travels as `localcast.audio.spatial_frame`; the visual render packet only receives renderer-visible transient geometry. That keeps the machine legible: audio owns sound, source-event analysis owns acoustic facts, Aquarium owns the final pixel/audio package for OBS.
|
||||
|
||||
The neighbor SRT video feed is also a timed media artifact. For the diagnostic deadline path, `diagnostic_stream_spout.py` records its URL and expected SRT latency in the sync status:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe .\scripts\diagnostic_stream_spout.py `
|
||||
--source cultcache `
|
||||
--frame-cache .\calibration\runs\visual-state.msgpack `
|
||||
--audio-cache .\calibration\runs\audio-state.msgpack `
|
||||
--audio-events-cache .\calibration\runs\audio-events.msgpack `
|
||||
--remote-video-url "srt://0.0.0.0:5100?mode=listener&latency=120000&timeout=5000000" `
|
||||
--remote-video-latency-ms 250
|
||||
```
|
||||
|
||||
That does not make the SRT feed disappear into the point renderer. It makes the dependency honest: OBS/Aquarium must delay or present the remote video according to the same presentation clock as the Spout texture and AmbiX bed. This value is presentation delay, not only the SRT socket's `latency` parameter.
|
||||
The neighbor SRT video feed is also a timed media artifact. OBS/Aquarium must
|
||||
delay or present the remote video according to the same presentation clock as
|
||||
the Spout texture and AmbiX bed. This value is presentation delay, not only the
|
||||
SRT socket's `latency` parameter.
|
||||
|
||||
## Cut Line
|
||||
|
||||
|
|
|
|||
|
|
@ -144,16 +144,14 @@ Ownership:
|
|||
lowering, render budgeting, and Spout2 publication.
|
||||
- CultNet typed documents carry status/control/process state. JSON is schema or
|
||||
diagnostic export only.
|
||||
- `scripts/diagnostic_live_sensor_fusion.py`, Python fallback producers,
|
||||
diagnostic CultCache/JSON file adapters, and
|
||||
`localcast.diagnostics.spout_output` are diagnostics/migration fossils. They
|
||||
must not be extended as production surfaces.
|
||||
- `scripts/diagnostic_live_sensor_fusion.py`, Python fallback producers, and
|
||||
diagnostic CultCache/JSON file adapters are diagnostics/migration fossils.
|
||||
They must not be extended as production surfaces.
|
||||
- `localcast.diagnostics.render_frame_json` and
|
||||
`localcast.diagnostics.lod_json` are explicit compatibility adapters; model
|
||||
modules do not own file serialization.
|
||||
- `localcast.diagnostics.render_math` is the pure, testable diagnostic renderer
|
||||
math split away from the OpenGL publisher. `spout_output` is now only the
|
||||
disposable Spout/OpenGL shell.
|
||||
math that survived deletion of the OpenGL publisher.
|
||||
|
||||
Invariant: fallback/demo evidence cannot enter ground-truth reservoir kinds.
|
||||
Render packets, LOD cells, brush packets, and overlays are derived from reservoir
|
||||
|
|
|
|||
|
|
@ -22,7 +22,8 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
- V1 uses FFmpeg plus OBS Media Source over SRT.
|
||||
- Sender-side video encoding is `h264_nvenc`.
|
||||
- Audio sources are separate SRT endpoints so OBS can mix them separately.
|
||||
- The live synchronized program path is being rebuilt. The Python/OpenGL deadline Spout bridge is not a foundation.
|
||||
- The live synchronized program path is being rebuilt. The Python/OpenGL
|
||||
deadline Spout bridge has been deleted.
|
||||
- `docs/native-rebuild-plan.md` is the current cut plan.
|
||||
- The reservoir is now one native time-ordered rolling buffer with typed
|
||||
indexes/views. The previous typed-ring crate is gone.
|
||||
|
|
@ -30,9 +31,9 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
are rejected at both the raw reservoir push and `LocalcastRuntime` typed
|
||||
producer boundary.
|
||||
- Edge JSON is schema/diagnostic only. Runtime network/process data should remain typed CultNet documents.
|
||||
- Python live producers, diagnostic CultCache/JSON file adapters, and the
|
||||
OpenGL Spout sink are diagnostics, not production foundations. Aquarium owns
|
||||
production Spout publication.
|
||||
- Python live producers and diagnostic CultCache/JSON file adapters are
|
||||
diagnostics, not production foundations. The OpenGL Spout sink has been
|
||||
deleted. Aquarium owns production Spout publication.
|
||||
- Neighbor sender is deployed at `C:\Meta\LocalCastBridge` on `192.168.1.84`.
|
||||
- Madman's desktop has `Start LocalCast Sender.cmd` and `Stop LocalCast Sender.cmd`.
|
||||
- Receiver OBS scene collection has `Neighbor PC - Video`, `Neighbor PC - Focusrite`, and `Neighbor PC - System Audio` Media Sources added.
|
||||
|
|
@ -46,15 +47,15 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
The useful next work is foundation surgery, not hardware feature expansion:
|
||||
|
||||
- bind Aquarium/Faust/native workers to the rolling-buffer `LocalcastRuntime`
|
||||
- delete production dependence on `scripts/diagnostic_live_sensor_fusion.py`,
|
||||
diagnostic file adapters, and the OpenGL Spout sink
|
||||
- split any reusable pure diagnostic math away from OpenGL before deleting the
|
||||
publisher
|
||||
- delete production dependence on `scripts/diagnostic_live_sensor_fusion.py`
|
||||
and diagnostic file adapters
|
||||
- bind Aquarium/Faust against the native runtime instead of reviving the deleted
|
||||
Python/OpenGL publisher
|
||||
- route future visual/audio runtime work through Aquarium/Faust/native runtime plus typed CultNet docs
|
||||
- keep FFmpeg/SRT bridge scripts only as simple LAN ingest and capture utilities
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
Do not continue the Python/OpenGL bridge. Rehydrate, read
|
||||
Do not revive the Python/OpenGL bridge. Rehydrate, read
|
||||
`docs/native-rebuild-plan.md`, then cut toward native workers,
|
||||
Aquarium/Faust bindings, and typed CultNet boundaries.
|
||||
|
|
|
|||
|
|
@ -63,3 +63,4 @@
|
|||
{"ts": "2026-05-19T09:45:00+01:00", "type": "implementation", "status": "ok", "note": "MultiLODSceneCache no longer owns JSON file serialization. Diagnostic LOD writes moved to localcast.diagnostics.lod_json, diagnostic_live_sensor_fusion imports that adapter explicitly, and tests/import guards prove stochastic_mapping is model/algorithm code only."}
|
||||
{"ts": "2026-05-19T10:02:00+01:00", "type": "implementation", "status": "ok", "note": "Native reservoir tightened sample provenance: live samples must have flags == 0, so diagnostic and unknown future flags are rejected at both raw reservoir and LocalcastRuntime typed producer boundaries. Unknown flags no longer slip through as speculative metadata."}
|
||||
{"ts": "2026-05-19T10:20:00+01:00", "type": "implementation", "status": "ok", "note": "Diagnostic render math split away from the OpenGL Spout publisher: localcast.diagnostics.render_math owns pure budget/projection/brush/rasterization code and tests import it directly, while spout_output is reduced to frame sources, status writers, and the disposable OpenGL/Spout shell."}
|
||||
{"ts": "2026-05-19T10:35:00+01:00", "type": "implementation", "status": "ok", "note": "Deleted the Python/OpenGL Spout publisher and diagnostic_stream_spout launcher. The only surviving visual render code in LocalCastBridge is pure diagnostic render_math plus typed visual cache adapters; production OBS publication is now exclusively an Aquarium responsibility."}
|
||||
|
|
|
|||
|
|
@ -149,8 +149,8 @@ research:
|
|||
summary: docs/obs-spout-streaming.md
|
||||
key_decision: >
|
||||
The deadline OBS surface proved the need for a named Spout sender, but it
|
||||
is not a foundation. `scripts/diagnostic_stream_spout.py`, SpoutGL/OpenGL rendering,
|
||||
Python render-frame production, and JSON heartbeat stores are diagnostics
|
||||
is not a foundation. The Python/OpenGL Spout publisher is now deleted;
|
||||
Python render-frame production and JSON heartbeat stores are diagnostics
|
||||
or migration fossils only. Production Spout publication belongs in
|
||||
Aquarium, fed by the native rolling reservoir and typed CultNet documents.
|
||||
live_audio_phase_meaning:
|
||||
|
|
@ -301,17 +301,11 @@ current_status:
|
|||
points into `localcast.sensor_fusion.render_frame.v1` packets carrying
|
||||
source time ranges, intended visual presentation time, audio-alignment
|
||||
time, target render size, Spout sender name, and point draw metadata for
|
||||
Aquarium/Spout. A deadline OBS Spout sender is now live-shaped:
|
||||
`scripts/diagnostic_live_sensor_fusion.py` writes fused render frames into
|
||||
Aquarium/Spout. `scripts/diagnostic_live_sensor_fusion.py` writes fused render frames into
|
||||
diagnostic typed CultCache state at `calibration/runs/visual-state.msgpack`.
|
||||
`scripts/diagnostic_stream_spout.py` consumes that diagnostic document,
|
||||
lowers points into compact anisotropic
|
||||
screen brush packets, uploads an OpenGL texture, publishes Spout sender
|
||||
`LocalCastBridge Point Cloud`, and writes both typed status
|
||||
`calibration/runs/visual-stream-status.msgpack` and compatibility JSON
|
||||
`calibration/runs/stream-spout-status.json`; OBS now has a Spout2 Capture
|
||||
source pointed at that sender, and an OBS websocket screenshot verified
|
||||
nonblack brush output. OBS synchronized program setup now derives six
|
||||
The old Python/OpenGL diagnostic Spout sender has been deleted; only pure
|
||||
diagnostic render math remains under `localcast.diagnostics.render_math`.
|
||||
OBS synchronized program setup now derives six
|
||||
per-channel stems from the aligned program audio timeline, creates/updates
|
||||
OBS Media Sources for host voice, co-streamer voice, ambient, transients,
|
||||
co-streamer loopback, and local loopback, and can disable every scene item
|
||||
|
|
@ -352,8 +346,8 @@ current_status:
|
|||
stochastic transient hypotheses, and synthetic fusion support while still
|
||||
seeing lower-priority fallback diagnostics when the Leap capture path stalls.
|
||||
next_action: >
|
||||
Stop live feature work on the Python/OpenGL bridge. The first native cut is
|
||||
Stop live feature work on the Python bridge. The first native cut is
|
||||
complete: `native/reservoir` is now a single time-ordered rolling buffer
|
||||
with typed views and updated ABI/tests. Next quarantine Python/OpenGL code
|
||||
as diagnostics, then bind Aquarium/Faust to the native runtime and resume
|
||||
hardware calibration through typed CultNet/native surfaces only.
|
||||
with typed views and updated ABI/tests. Next bind Aquarium/Faust to the
|
||||
native runtime, delete diagnostic Python producers, and resume hardware
|
||||
calibration through typed CultNet/native surfaces only.
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ class SensorFusionTests(unittest.TestCase):
|
|||
self.assertEqual(1, len(brushes))
|
||||
self.assertGreaterEqual(brushes[0].radii_px[0], brushes[0].radii_px[1])
|
||||
|
||||
def test_spout_output_config_is_importable_without_gpu_context(self):
|
||||
def test_render_math_config_is_importable_without_gpu_context(self):
|
||||
config = SpoutOutputConfig(sender_name="unit-test", width=128, height=72, fps=30)
|
||||
self.assertEqual("unit-test", config.sender_name)
|
||||
self.assertEqual(128, config.width)
|
||||
|
|
|
|||
Loading…
Reference in a new issue