Add native and process stream sources

This commit is contained in:
Meta Vens 2026-05-21 18:27:39 +01:00
commit a22fa0745c
14 changed files with 413 additions and 3 deletions

View file

@ -54,6 +54,9 @@ latency, and confidence.
`MimirRollingStreamBuffer`, stream descriptors, and the `IMimirStreamSource`
adapter seam. It initializes one bounded rolling buffer per configured
audio/video stream and polls registered local/network sources each frame.
Local devices should feed through native push adapters; process-backed
sources are compatibility edges for network/diagnostic command ingest, not
the six-camera capture foundation.
- `config/perfect-machine.example.json` declares the contract shape for six cameras, six microphones, reservoir typed views, native authorities, outputs, and the demotion of bridge scripts to tooling.
- `native/reservoir` is the first native Rust crate. It implements one
shared-edge five-second rolling buffer with typed views and proves that

View file

@ -94,6 +94,10 @@ The first cut should be deliberately boring:
- `MimirRollingStreamBuffer` owns one stream's short history and evicts samples
outside the configured window.
- `IMimirStreamSource` is the adapter seam for local devices and network feeds.
- `MimirNativeIngestStreamSource` is the low-overhead push seam for native
camera/audio adapters that already own buffers or handles.
- `MimirProcessStreamSource` is a compatibility adapter for network or
diagnostic command sources. It is not the six-camera local capture foundation.
The default buffer duration is five seconds. It can be overridden with
`MIMIR_SYNC_BUFFER_SECONDS` or `MIMIR_RESERVOIR_SECONDS`.
@ -109,6 +113,11 @@ environment variables:
These create buffers immediately. Capture adapters still need to register
`IMimirStreamSource` implementations to feed live samples into those buffers.
For local cameras, prefer native adapters that push sample handles directly
through `MimirNativeIngestStreamSource`. Process-backed FFmpeg ingest is allowed
for remote SRT/diagnostic edges, but local six-camera ingest should stay close
to the driver, GPU, and capture APIs.
## Cut Line
Do not add a new registry, bridge daemon, JSON live store, OBS plugin, or