Record broadcast composite from Mimir app
This commit is contained in:
parent
ab4707f8f9
commit
532a306e6c
6 changed files with 49 additions and 26 deletions
|
|
@ -283,12 +283,15 @@ a named invariant that the native runtime cannot protect yet.
|
|||
`Mimir.BufferSmoke --presentation-control-smoke` proves the state owner.
|
||||
- `MimirProgramRecorder` is the first app-owned recording control. The Mimir UI
|
||||
exposes `Record` / `Stop` in the Video Sources rail, tracks child-process
|
||||
status, writes the latest MP4 under `artifacts/runtime/mimir-app-recordings/`,
|
||||
status, writes the latest MP4 under `artifacts/runtime/stream-proof/`,
|
||||
and kills the process tree on stop. The current actuator deliberately delegates
|
||||
to `scripts/record-kiyo-dual-mic-composite.ps1`, so the known Kiyo plus
|
||||
Scarlett/Faust receipt is available from the app without making the script a
|
||||
second operator interface. Native program-output recording can replace that
|
||||
actuator later behind the same UI owner.
|
||||
to `scripts/record-stream-proof-output.ps1`, so the app records the same
|
||||
stream-proof composite intended for the Yggdrasil/public path: Raven program
|
||||
feed, Kiyo picture-in-picture, Starfire Scarlett audio, and NVENC/AAC
|
||||
broadcast settings. `MIMIR_RECORD_START_RAVEN=1` lets the app ask the script
|
||||
to start Raven's sender; otherwise it records from the already-running feed.
|
||||
Native program-output recording can replace that actuator later behind the
|
||||
same UI owner.
|
||||
- `MimirSceneEditorState` owns the new Mimir-window editor graph. It is not the
|
||||
OBS program output: it owns editor camera, selected node, sensor-feed panels,
|
||||
SDF text-panel nodes, model placeholders, visibility, locks, transforms, reset
|
||||
|
|
|
|||
|
|
@ -346,14 +346,16 @@ proves the boundary: alignment frames queue the cleaner DSP and input block, and
|
|||
cleaner output frames are what enter `NativeProgram` stem publication. This is
|
||||
the first hot-lane cleaner socket, not proof that the final studio denoiser is
|
||||
solved.
|
||||
`MimirProgramRecorder` now makes that receipt an app feature. The Video Sources
|
||||
rail exposes `Record` / `Stop`; the recorder owns child-process status, latest
|
||||
output path, and process-tree shutdown. Its current actuator is still
|
||||
`scripts/record-kiyo-dual-mic-composite.ps1`, which means app recording now
|
||||
produces the known Kiyo plus Scarlett/Faust MP4 under
|
||||
`artifacts/runtime/mimir-app-recordings/` without pretending the native
|
||||
program-output recorder exists yet. Later native recording should replace the
|
||||
actuator behind this owner, not add another UI truth.
|
||||
`MimirProgramRecorder` is the app feature for local broadcast-proof recording,
|
||||
not for the isolated Kiyo/Faust mic receipt. The Video Sources rail exposes
|
||||
`Record` / `Stop`; the recorder owns child-process status, latest output path,
|
||||
and process-tree shutdown. Its current actuator is
|
||||
`scripts/record-stream-proof-output.ps1`, so app recording produces the same
|
||||
stream-proof composite intended for Yggdrasil/public judgment: Raven program
|
||||
feed, Kiyo picture-in-picture, Starfire Scarlett audio, and NVENC/AAC broadcast
|
||||
settings under `artifacts/runtime/stream-proof/`. `MIMIR_RECORD_START_RAVEN=1`
|
||||
asks the app to start Raven's sender for the receipt. Later native recording
|
||||
should replace the actuator behind this owner, not add another UI truth.
|
||||
`MimirTargetedBioacousticProbePlanner` is the matching "ask the room a better
|
||||
question" owner. It consumes per-source spectral residuals and optional source
|
||||
pathology notes, then emits gain-bounded shaped probe bands for the
|
||||
|
|
|
|||
|
|
@ -166,11 +166,15 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
Fresh run `20260601-051044` measured cardioid delay 359.398 samples
|
||||
(7487.452 us) at 48 kHz and applied holdback 359.398/0.000 to
|
||||
shotgun/cardioid before cleanup.
|
||||
- `MimirProgramRecorder` exposes that receipt as a Mimir app feature. The Video
|
||||
Sources rail has `Record` / `Stop`, status text, and latest output under
|
||||
`artifacts/runtime/mimir-app-recordings/mimir-record-latest.mp4`. It currently
|
||||
delegates to `scripts/record-kiyo-dual-mic-composite.ps1`; native
|
||||
program-output recording should replace that actuator behind the same owner.
|
||||
- `MimirProgramRecorder` exposes local broadcast-proof recording as a Mimir app
|
||||
feature. The Video Sources rail has `Record` / `Stop`, status text, and latest
|
||||
output under
|
||||
`artifacts/runtime/stream-proof/mimir-program-record-latest.mp4`. It currently
|
||||
delegates to `scripts/record-stream-proof-output.ps1`, so the app records the
|
||||
same Raven + Kiyo PIP + Starfire Scarlett NVENC/AAC composite intended for
|
||||
Yggdrasil/public judgment. `MIMIR_RECORD_START_RAVEN=1` asks it to launch the
|
||||
Raven sender too. Native program-output recording should replace that
|
||||
actuator behind the same owner.
|
||||
- OBS receives final program surfaces; it does not own synchronization.
|
||||
|
||||
## Current Pressure
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ public sealed class MimirProgramRecorder : IDisposable
|
|||
this.repositoryRoot = string.IsNullOrWhiteSpace(repositoryRoot)
|
||||
? ResolveRepositoryRoot()
|
||||
: Path.GetFullPath(repositoryRoot);
|
||||
LatestOutputPath = Path.Combine(this.repositoryRoot, "artifacts", "runtime", "mimir-app-recordings", "mimir-record-latest.mp4");
|
||||
LatestOutputPath = Path.Combine(this.repositoryRoot, "artifacts", "runtime", "stream-proof", "mimir-program-record-latest.mp4");
|
||||
}
|
||||
|
||||
public bool IsRecording => process is { HasExited: false };
|
||||
|
|
@ -44,7 +44,7 @@ public sealed class MimirProgramRecorder : IDisposable
|
|||
return false;
|
||||
}
|
||||
|
||||
var scriptPath = Path.Combine(repositoryRoot, "scripts", "record-kiyo-dual-mic-composite.ps1");
|
||||
var scriptPath = Path.Combine(repositoryRoot, "scripts", "record-stream-proof-output.ps1");
|
||||
if (!File.Exists(scriptPath))
|
||||
{
|
||||
status = "record script missing";
|
||||
|
|
@ -53,9 +53,9 @@ public sealed class MimirProgramRecorder : IDisposable
|
|||
|
||||
var duration = Math.Max(1, durationSeconds ?? ReadDurationSeconds());
|
||||
LatestOutputPath = Path.GetFullPath(string.IsNullOrWhiteSpace(outputPath)
|
||||
? Path.Combine(repositoryRoot, "artifacts", "runtime", "mimir-app-recordings", "mimir-record-latest.mp4")
|
||||
? Path.Combine(repositoryRoot, "artifacts", "runtime", "stream-proof", "mimir-program-record-latest.mp4")
|
||||
: Path.IsPathRooted(outputPath) ? outputPath : Path.Combine(repositoryRoot, outputPath));
|
||||
var logRoot = Path.Combine(repositoryRoot, "artifacts", "runtime", "mimir-app-recordings");
|
||||
var logRoot = Path.Combine(repositoryRoot, "artifacts", "runtime", "stream-proof");
|
||||
Directory.CreateDirectory(logRoot);
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(LatestOutputPath) ?? logRoot);
|
||||
|
||||
|
|
@ -79,6 +79,10 @@ public sealed class MimirProgramRecorder : IDisposable
|
|||
startInfo.ArgumentList.Add(LatestOutputPath);
|
||||
startInfo.ArgumentList.Add("-LogRoot");
|
||||
startInfo.ArgumentList.Add(logRoot);
|
||||
if (IsTruthy(Environment.GetEnvironmentVariable("MIMIR_RECORD_START_RAVEN")))
|
||||
{
|
||||
startInfo.ArgumentList.Add("-StartRavenSender");
|
||||
}
|
||||
|
||||
var stdoutPath = Path.Combine(logRoot, "mimir-app-record.out.log");
|
||||
var stderrPath = Path.Combine(logRoot, "mimir-app-record.err.log");
|
||||
|
|
@ -160,6 +164,13 @@ public sealed class MimirProgramRecorder : IDisposable
|
|||
: DefaultDurationSeconds;
|
||||
}
|
||||
|
||||
private static bool IsTruthy(string? value) =>
|
||||
!string.IsNullOrWhiteSpace(value) &&
|
||||
(string.Equals(value, "1", StringComparison.OrdinalIgnoreCase) ||
|
||||
string.Equals(value, "true", StringComparison.OrdinalIgnoreCase) ||
|
||||
string.Equals(value, "yes", StringComparison.OrdinalIgnoreCase) ||
|
||||
string.Equals(value, "on", StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
private static string ResolveRepositoryRoot()
|
||||
{
|
||||
var directory = new DirectoryInfo(AppContext.BaseDirectory);
|
||||
|
|
|
|||
|
|
@ -325,3 +325,4 @@
|
|||
{"ts": "2026-06-01T05:14:25+01:00", "type": "verification", "status": "ok", "note": "Recorded a fresh 10s Kiyo + Scarlett live receipt through the actual offline Faust chain. scripts/record-kiyo-dual-mic-composite.ps1 now calls --asio-dual-mic-faust-cleaner-wav, which compiles/runs faust/mimir_alignment_actuator.dsp before faust/mimir_dual_mic_dialogue_cleaner.dsp. Fresh run artifacts/runtime/kiyo-dual-mic-composite/20260601-051044 measured cardioid delay 359.398 samples (7487.452 us), applied holdback 359.398/0.000 to shotgun/cardioid, wrote dialogue and residual WAVs, and muxed artifacts/runtime/kiyo-dual-mic-composite/kiyo-dual-mic-composite-latest.mp4. ffprobe verified 10.000 s 640x480@30 H.264 plus 10.000 s 48 kHz mono AAC."}
|
||||
{"ts": "2026-06-01T05:34:59+01:00", "type": "fix", "status": "ok", "note": "Fixed BufferSmoke NormalizePeak so offline audio receipts can amplify quiet Faust/C# diagnostic output instead of only attenuating hot samples. The earlier Kiyo+Faust receipt was valid DSP execution but the written WAV peaked around -38 dBFS because NormalizePeak returned quiet samples unchanged. Regenerated artifacts/runtime/kiyo-dual-mic-composite/kiyo-dual-mic-composite-latest.mp4 from run 20260601-051044; the Faust dialogue WAV now measures peak -0.724 dBFS and RMS -14.202 dBFS, with ffprobe verifying 10.000 s 640x480@30 H.264 plus 10.000 s 48 kHz mono AAC."}
|
||||
{"ts": "2026-06-01T12:19:43+01:00", "type": "implementation", "status": "ok", "note": "Added MimirProgramRecorder as the first app-owned recording feature. MimirRuntime now exposes Record/Stop in the Video Sources rail, tracks child-process status/output path, and stops the process tree. The current actuator delegates to scripts/record-kiyo-dual-mic-composite.ps1 so app recording produces the known Kiyo + Scarlett/Faust receipt under artifacts/runtime/mimir-app-recordings/ without making the script a second operator surface. Native program-output recording should replace that actuator behind the same owner."}
|
||||
{"ts": "2026-06-01T12:25:06+01:00", "type": "correction", "status": "ok", "note": "Corrected the app recording feature ownership after user rejected the isolated Kiyo/Faust mic receipt as half-assed. MimirProgramRecorder now delegates to scripts/record-stream-proof-output.ps1, writes artifacts/runtime/stream-proof/mimir-program-record-latest.mp4, and records the same Raven + Kiyo PIP + Starfire Scarlett NVENC/AAC composite used for Yggdrasil/public stream judgment. MIMIR_RECORD_START_RAVEN=1 asks the app recorder to launch Raven's sender; otherwise it records from an already-running feed. The earlier record-kiyo-dual-mic-composite delegate is no longer the app recorder actuator."}
|
||||
|
|
|
|||
|
|
@ -60,10 +60,12 @@ invariants:
|
|||
- `MimirProgramRecorder` owns the first app-level recording control. The Video
|
||||
Sources rail exposes `Record` / `Stop`, status text, latest output path, and
|
||||
process-tree shutdown. Its current actuator delegates to
|
||||
`scripts/record-kiyo-dual-mic-composite.ps1`, so the known Kiyo plus
|
||||
Scarlett/Faust receipt is available from the app without turning the script
|
||||
into a second operator interface. Native program-output recording should
|
||||
replace that actuator behind the same owner.
|
||||
`scripts/record-stream-proof-output.ps1`, so the app records the same Raven
|
||||
+ Kiyo PIP + Starfire Scarlett NVENC/AAC composite intended for
|
||||
Yggdrasil/public judgment under `artifacts/runtime/stream-proof/`.
|
||||
`MIMIR_RECORD_START_RAVEN=1` asks the app to launch Raven's sender too.
|
||||
Native program-output recording should replace that actuator behind the
|
||||
same owner.
|
||||
- Fast stereo depth belongs to Fensalir's D3D12 compute/resource authority.
|
||||
`research/d3d12-stereo-depth-provenance-2026-05-29.md` records libSGM as
|
||||
the permissive north-star reference for a future SGM-shaped stereo
|
||||
|
|
|
|||
Loading…
Reference in a new issue