Add Raven Eve network ingest setup
This commit is contained in:
parent
140cac4f2e
commit
19ed000cd8
12 changed files with 609 additions and 6 deletions
|
|
@ -216,6 +216,12 @@ a named invariant that the native runtime cannot protect yet.
|
|||
The display feed remains derived evidence, not an independent timing owner.
|
||||
`Mimir.BufferSmoke --synchronized-buffer-planner-smoke` proves the aligned
|
||||
local-camera, Raven-display, loopback, and mic buffer shape.
|
||||
- `MimirFfmpegRawVideoStreamSource` is the current network-pixel adapter for
|
||||
Raven/Eve ingest. FFmpeg owns SRT receive/decode, Mimir owns exact raw-video
|
||||
frame reads and synchronized buffer samples. `config/mimir-runtime.raven-eve.example.json`
|
||||
listens for Raven screen capture on port `5200` and Eve camera capture on
|
||||
port `5201`. `Mimir.BufferSmoke --ffmpeg-rawvideo-source-smoke` proves the
|
||||
local raw-video adapter without Raven or Eve online.
|
||||
- `MimirPresentationControlState` owns operator intent for the Fensalir program
|
||||
surface: video feed visibility/solo/opacity/layer order, audio mute/solo/gain,
|
||||
and global LUT preset selection. The `Mimir Program` UI panel is deliberately
|
||||
|
|
|
|||
|
|
@ -31,15 +31,23 @@ Practical shape:
|
|||
applies that clock-domain correction to the `raven-display` video buffer.
|
||||
5. Fensalir receives aligned buffer slices and still owns composition.
|
||||
|
||||
The disabled example in `config/mimir-runtime.asio.example.json` tags the
|
||||
network display stream with `clockDomainId: raven-sync`. The display receiver is
|
||||
expected to emit frame-event metadata with Raven source timestamps and frame
|
||||
identity. The Scarlett channel carrying Raven's sync audio is the evidence path
|
||||
that earns the `raven-sync` timing correction.
|
||||
`config/mimir-runtime.raven-eve.example.json` is the active setup shape for the
|
||||
network producer pass:
|
||||
|
||||
- `raven-display` listens for Raven screen capture on SRT port `5200`, decodes
|
||||
through FFmpeg, and emits BGRA video samples into the runtime buffer path.
|
||||
- `eve-camera` listens for Eve camera capture on SRT port `5201`, using the same
|
||||
raw-video adapter.
|
||||
|
||||
The older disabled `frame-events` example in
|
||||
`config/mimir-runtime.asio.example.json` remains diagnostic only. It can witness
|
||||
source timestamps and frame identity, but it does not carry pixels. The Scarlett
|
||||
channel carrying Raven's sync audio is still the evidence path that earns the
|
||||
`raven-sync` timing correction.
|
||||
|
||||
Smoke proof:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --synchronized-buffer-planner-smoke
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --ffmpeg-rawvideo-source-smoke
|
||||
```
|
||||
|
||||
|
|
|
|||
101
docs/raven-eve-ingest.md
Normal file
101
docs/raven-eve-ingest.md
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
# Raven And Eve Ingest
|
||||
|
||||
## Objective
|
||||
|
||||
Ingest Raven screen capture and Eve camera capture into Mimir as ordinary
|
||||
network video sources, then let the existing synchronization hub place those
|
||||
samples in rolling buffers beside Scarlett audio and local camera sources.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: `Mimir.Runtime` owns decoded video samples and rolling-buffer
|
||||
placement.
|
||||
- Inputs: Raven sends H.264/MPEG-TS over SRT to Starfire port `5200`; Eve sends
|
||||
camera video over SRT to Starfire port `5201`; Scarlett/ASIO carries audio and
|
||||
sync evidence.
|
||||
- Outputs: `raven-display` and `eve-camera` emit `MimirStreamSample` frames with
|
||||
BGRA payloads and `MimirVideoFrameDescriptor` metadata.
|
||||
- Derived state: network arrival timestamps are capture metadata only. Raven
|
||||
audio-in-Scarlett remains the timing witness for global alignment.
|
||||
- Forbidden writers: OBS, FFmpeg sender clocks, and SRT arrival time do not own
|
||||
final sync truth.
|
||||
- Cut line: no custom transport daemon and no second compositor path until this
|
||||
FFmpeg/SRT edge fails a concrete invariant.
|
||||
|
||||
## Starfire Receiver
|
||||
|
||||
Use the Raven/Eve runtime config:
|
||||
|
||||
```powershell
|
||||
$env:MIMIR_RUNTIME_CONFIG = "E:\Projects\Mimir\config\mimir-runtime.raven-eve.example.json"
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --seconds 5
|
||||
```
|
||||
|
||||
When both senders are active, require sample arrival:
|
||||
|
||||
```powershell
|
||||
$env:MIMIR_RUNTIME_CONFIG = "E:\Projects\Mimir\config\mimir-runtime.raven-eve.example.json"
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --seconds 5 --require-samples
|
||||
```
|
||||
|
||||
The config starts two FFmpeg listener processes:
|
||||
|
||||
- `raven-display`: `srt://0.0.0.0:5200?mode=listener&latency=120000&timeout=5000000`
|
||||
- `eve-camera`: `srt://0.0.0.0:5201?mode=listener&latency=120000&timeout=5000000`
|
||||
|
||||
Each listener decodes to raw BGRA frames on stdout. Mimir reads exact frame
|
||||
boundaries and stores those frames in the normal synchronization buffers.
|
||||
|
||||
## Raven Sender
|
||||
|
||||
Run this on Raven from the logged-in desktop session:
|
||||
|
||||
```powershell
|
||||
E:\Projects\Mimir\scripts\start-raven-screen-capture-sender.ps1 -TargetHost 192.168.1.66 -Port 5200
|
||||
```
|
||||
|
||||
The script uses `gdigrab` plus `h264_nvenc`, then calls Starfire's SRT listener.
|
||||
Do not launch the capture itself through a blind SSH session unless the desktop
|
||||
capture path has been proven there; `gdigrab` captures the interactive Windows
|
||||
desktop, and service/session boundaries can turn screen capture into a black
|
||||
box with excellent logs.
|
||||
|
||||
Raven sync signal: route Raven audio or a Raven-generated chirp into the
|
||||
Scarlett alongside the microphone. Mimir should treat that audio evidence as
|
||||
the authority for aligning Raven video with the rest of the program.
|
||||
|
||||
## Eve Sender Status
|
||||
|
||||
Eve is configured as a receiver lane now, and SSH is reachable, but the actual
|
||||
camera producer is not implemented in this repo yet. The existing Eve app is a
|
||||
view/control surface for receiving Starfire video and sending touch events; it
|
||||
is not currently an AVFoundation camera broadcaster. No `ffmpeg` or obvious
|
||||
camera-capture helper is installed on the iPad path checked during setup.
|
||||
|
||||
Current next options:
|
||||
|
||||
- Add AVFoundation capture to Eve and send H.264 over SRT or MPEG-TS/TCP to
|
||||
Starfire. This keeps Eve as the source owner and matches the network-producer
|
||||
model, but needs the iPad online and a native sender cut.
|
||||
- Use a known iOS camera streaming app that can publish RTSP, SRT, NDI, or
|
||||
MPEG-TS, then point the `eve-camera` FFmpeg listener/receiver at that stream.
|
||||
This is fastest for a room test, but delegates camera authority to an app
|
||||
outside the Mimir/Eve codebase.
|
||||
- Capture Eve over USB/Continuity on Starfire and expose it as a local camera
|
||||
source. This is operationally simple if Windows sees the device, but Eve stops
|
||||
being a networked producer and the clock-domain model changes.
|
||||
|
||||
The coherent default is the AVFoundation sender, because it gives Mimir one
|
||||
clean producer per physical source and leaves sync ownership explicit.
|
||||
|
||||
## Smoke Test
|
||||
|
||||
The raw-video source has a local synthetic smoke that does not require Raven or
|
||||
Eve:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --ffmpeg-rawvideo-source-smoke
|
||||
```
|
||||
|
||||
That smoke starts FFmpeg with `testsrc2`, decodes BGRA frames through stdout,
|
||||
and verifies the sample metadata and payload size that Mimir receives.
|
||||
Loading…
Reference in a new issue