Add stream proof recording harness
This commit is contained in:
parent
0d72b8f29f
commit
39039ae9f0
5 changed files with 311 additions and 6 deletions
|
|
@ -58,6 +58,45 @@ The static viewer lives on the root GameCult site:
|
|||
https://gamecult.org/livestream
|
||||
```
|
||||
|
||||
## Local Recording Before Public Push
|
||||
|
||||
Before pushing a live program to Yggdrasil, record the same simple stream-proof
|
||||
shape locally and judge sync from the artifact:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\record-stream-proof-output.ps1 -StartRavenSender -DurationSeconds 20
|
||||
```
|
||||
|
||||
The recording harness listens for a Raven muxed A/V SRT feed on a private test
|
||||
port, overlays Kiyo Pro as picture-in-picture, mixes Raven Realtek loopback with
|
||||
Starfire's Scarlett capture, applies conservative FFmpeg denoise filters, and
|
||||
writes an MP4 under `artifacts\runtime\stream-proof\`.
|
||||
|
||||
The current routing contract is explicit:
|
||||
|
||||
- Starfire Realtek/default render is the chirp/speaker emission lane.
|
||||
- Raven Realtek/default render loopback is the co-streamer game/program lane.
|
||||
It is packaged with Raven's NVENC video feed back to Starfire.
|
||||
- Starfire Scarlett carries the monitored final mix/return. The streamer hears
|
||||
that on direct monitor/headphones, and Raven's Scarlett monitor return is
|
||||
routed into Starfire Scarlett channel 1.
|
||||
- The proof recording is allowed to mix those lanes for human sync judgment, but
|
||||
it must not collapse their authority. Starfire Realtek proves chirp emission,
|
||||
Raven Realtek proves the co-streamer/game program path, and Scarlett proves
|
||||
the monitored return path.
|
||||
|
||||
This is a bridge recording, not public broadcast truth. It exists so humans can
|
||||
judge audio/video sync and tell Mimir which offsets to apply before the RTMP/HLS
|
||||
edge is involved. Offset knobs are explicit:
|
||||
|
||||
```powershell
|
||||
powershell -ExecutionPolicy Bypass -File .\scripts\record-stream-proof-output.ps1 `
|
||||
-StartRavenSender `
|
||||
-RavenOffsetSeconds 0.000 `
|
||||
-KiyoOffsetSeconds 0.000 `
|
||||
-MicOffsetSeconds 0.000
|
||||
```
|
||||
|
||||
## Scaling Rule
|
||||
|
||||
Viewer capacity is approximately:
|
||||
|
|
|
|||
177
scripts/record-stream-proof-output.ps1
Normal file
177
scripts/record-stream-proof-output.ps1
Normal file
|
|
@ -0,0 +1,177 @@
|
|||
param(
|
||||
[int]$RavenPort = 5204,
|
||||
[int]$DurationSeconds = 20,
|
||||
[int]$StartupTimeoutSeconds = 20,
|
||||
[int]$Width = 1280,
|
||||
[int]$Height = 720,
|
||||
[int]$FrameRate = 30,
|
||||
[string]$OutputPath = "artifacts\runtime\stream-proof\stream-proof-output.mp4",
|
||||
[string]$LogRoot = "artifacts\runtime\stream-proof",
|
||||
[string]$FfmpegPath = "ffmpeg",
|
||||
[switch]$StartRavenSender,
|
||||
[string]$RavenHost = "madman's lullaby@192.168.1.84",
|
||||
[string]$RavenRepo = "C:\Meta\Mimir",
|
||||
[string]$StarfireHost = "192.168.1.66",
|
||||
[string]$KiyoVideoDevice = "USB Video Device",
|
||||
[string]$StarfireScarlettAudioDevice = "Analogue 1 + 2 (2- Focusrite USB Audio)",
|
||||
[int]$KiyoWidth = 640,
|
||||
[int]$KiyoHeight = 480,
|
||||
[int]$KiyoFrameRate = 30,
|
||||
[int]$KiyoCornerWidth = 320,
|
||||
[int]$KiyoMargin = 28,
|
||||
[double]$RavenOffsetSeconds = 0.0,
|
||||
[double]$KiyoOffsetSeconds = 0.0,
|
||||
[double]$MicOffsetSeconds = 0.0,
|
||||
[switch]$NoStarfireScarlett,
|
||||
[switch]$DryRun
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$absoluteOutputPath = if ([System.IO.Path]::IsPathRooted($OutputPath)) {
|
||||
$OutputPath
|
||||
} else {
|
||||
Join-Path $repo $OutputPath
|
||||
}
|
||||
$outputDirectory = Split-Path -Parent $absoluteOutputPath
|
||||
New-Item -ItemType Directory -Force -Path $outputDirectory | Out-Null
|
||||
$absoluteLogRoot = if ([System.IO.Path]::IsPathRooted($LogRoot)) {
|
||||
$LogRoot
|
||||
} else {
|
||||
Join-Path $repo $LogRoot
|
||||
}
|
||||
New-Item -ItemType Directory -Force -Path $absoluteLogRoot | Out-Null
|
||||
$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
|
||||
$stdoutLog = Join-Path $absoluteLogRoot "stream-proof-record-$timestamp.out.log"
|
||||
$stderrLog = Join-Path $absoluteLogRoot "stream-proof-record-$timestamp.err.log"
|
||||
|
||||
$ravenEndpoint = "srt://0.0.0.0:${RavenPort}?mode=listener&latency=120000&timeout=5000000"
|
||||
$ravenSender = "${RavenRepo}\scripts\start-raven-av-sender.ps1"
|
||||
|
||||
if ($StartRavenSender) {
|
||||
$taskName = "MimirRavenAvSender$RavenPort"
|
||||
$remoteCmd = "${RavenRepo}\scripts\run-raven-av-$RavenPort.cmd"
|
||||
$remoteCommand = "powershell.exe -NoProfile -ExecutionPolicy Bypass -File $ravenSender -TargetHost $StarfireHost -Port $RavenPort"
|
||||
$taskTime = (Get-Date).AddMinutes(1).ToString("HH:mm")
|
||||
Write-Host "Starting Raven muxed A/V sender on ${RavenHost} through interactive task ${taskName}: $remoteCommand"
|
||||
if (-not $DryRun) {
|
||||
ssh $RavenHost "cmd /c echo $remoteCommand ^> $remoteCmd" | Out-Null
|
||||
ssh $RavenHost "schtasks /Delete /TN $taskName /F" | Out-Null
|
||||
ssh $RavenHost "schtasks /Create /TN $taskName /SC ONCE /ST $taskTime /TR $remoteCmd /F /IT" | Out-Host
|
||||
ssh $RavenHost "schtasks /Run /TN $taskName" | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Could not start Raven muxed A/V sender task on $RavenHost."
|
||||
}
|
||||
Start-Sleep -Milliseconds 1500
|
||||
}
|
||||
}
|
||||
|
||||
$arguments = @(
|
||||
"-hide_banner",
|
||||
"-y",
|
||||
"-thread_queue_size", "1024",
|
||||
"-itsoffset", $RavenOffsetSeconds.ToString([Globalization.CultureInfo]::InvariantCulture),
|
||||
"-i", $ravenEndpoint,
|
||||
"-thread_queue_size", "1024",
|
||||
"-rtbufsize", "256M",
|
||||
"-itsoffset", $KiyoOffsetSeconds.ToString([Globalization.CultureInfo]::InvariantCulture),
|
||||
"-f", "dshow",
|
||||
"-video_size", "${KiyoWidth}x${KiyoHeight}",
|
||||
"-framerate", $KiyoFrameRate.ToString(),
|
||||
"-i", "video=$KiyoVideoDevice"
|
||||
)
|
||||
|
||||
if (-not $NoStarfireScarlett) {
|
||||
$arguments += @(
|
||||
"-thread_queue_size", "1024",
|
||||
"-rtbufsize", "256M",
|
||||
"-itsoffset", $MicOffsetSeconds.ToString([Globalization.CultureInfo]::InvariantCulture),
|
||||
"-f", "dshow",
|
||||
"-i", "audio=$StarfireScarlettAudioDevice"
|
||||
)
|
||||
}
|
||||
|
||||
$scaledKiyoHeight = [Math]::Max(1, [int][Math]::Round($KiyoCornerWidth * ($KiyoHeight / [double]$KiyoWidth)))
|
||||
$overlayX = $KiyoMargin
|
||||
$overlayY = $KiyoMargin
|
||||
|
||||
if ($NoStarfireScarlett) {
|
||||
$filter = "[0:v]scale=${Width}:${Height},setsar=1,hqdn3d=1.2:1.0:3.0:2.0[base];" +
|
||||
"[1:v]scale=${KiyoCornerWidth}:${scaledKiyoHeight},setsar=1,hqdn3d=1.4:1.1:3.4:2.2[pip];" +
|
||||
"[base][pip]overlay=${overlayX}:${overlayY}:format=auto[v];" +
|
||||
"[0:a]aresample=async=1:first_pts=0,afftdn=nr=8:nf=-35[a]"
|
||||
} else {
|
||||
$filter = "[0:v]scale=${Width}:${Height},setsar=1,hqdn3d=1.2:1.0:3.0:2.0[base];" +
|
||||
"[1:v]scale=${KiyoCornerWidth}:${scaledKiyoHeight},setsar=1,hqdn3d=1.4:1.1:3.4:2.2[pip];" +
|
||||
"[base][pip]overlay=${overlayX}:${overlayY}:format=auto[v];" +
|
||||
"[0:a]aresample=async=1:first_pts=0,afftdn=nr=8:nf=-35[ravenAudio];" +
|
||||
"[2:a]aresample=async=1:first_pts=0,afftdn=nr=10:nf=-38,volume=1.0[heroMic];" +
|
||||
"[ravenAudio][heroMic]amix=inputs=2:duration=longest:normalize=0[a]"
|
||||
}
|
||||
|
||||
$arguments += @(
|
||||
"-filter_complex", $filter,
|
||||
"-map", "[v]",
|
||||
"-map", "[a]",
|
||||
"-t", $DurationSeconds.ToString(),
|
||||
"-r", $FrameRate.ToString(),
|
||||
"-c:v", "h264_nvenc",
|
||||
"-preset", "p4",
|
||||
"-tune", "ll",
|
||||
"-rc", "cbr",
|
||||
"-b:v", "4500k",
|
||||
"-maxrate", "4500k",
|
||||
"-bufsize", "9000k",
|
||||
"-g", ($FrameRate * 2).ToString(),
|
||||
"-pix_fmt", "yuv420p",
|
||||
"-c:a", "aac",
|
||||
"-b:a", "160k",
|
||||
"-ar", "48000",
|
||||
"-movflags", "+faststart",
|
||||
$absoluteOutputPath
|
||||
)
|
||||
|
||||
Write-Host "Stream-proof recording:"
|
||||
Write-Host " Raven input: $ravenEndpoint"
|
||||
Write-Host " Kiyo PIP: $KiyoVideoDevice ${KiyoWidth}x${KiyoHeight}@$KiyoFrameRate -> ${KiyoCornerWidth}x${scaledKiyoHeight}"
|
||||
Write-Host " Raven audio: Realtek/default render loopback in muxed NVENC/SRT feed"
|
||||
Write-Host " Starfire Scarlett: $(if ($NoStarfireScarlett) { 'disabled' } else { $StarfireScarlettAudioDevice })"
|
||||
Write-Host " sync role: Starfire Realtek emits chirps; Raven Realtek carries co-streamer game/program audio; Scarlett carries monitored return for judging"
|
||||
Write-Host " Offsets: raven=${RavenOffsetSeconds}s kiyo=${KiyoOffsetSeconds}s mic=${MicOffsetSeconds}s"
|
||||
Write-Host " Output: $absoluteOutputPath"
|
||||
Write-Host " stdout: $stdoutLog"
|
||||
Write-Host " stderr: $stderrLog"
|
||||
|
||||
if ($DryRun) {
|
||||
Write-Host ($FfmpegPath + " " + ($arguments -join " "))
|
||||
exit 0
|
||||
}
|
||||
|
||||
$startInfo = [System.Diagnostics.ProcessStartInfo]::new()
|
||||
$startInfo.FileName = $FfmpegPath
|
||||
$startInfo.UseShellExecute = $false
|
||||
$startInfo.RedirectStandardOutput = $true
|
||||
$startInfo.RedirectStandardError = $true
|
||||
foreach ($argument in $arguments) {
|
||||
[void]$startInfo.ArgumentList.Add($argument)
|
||||
}
|
||||
|
||||
$process = [System.Diagnostics.Process]::Start($startInfo)
|
||||
if (-not $process) {
|
||||
throw "Could not start FFmpeg recorder."
|
||||
}
|
||||
|
||||
$stdoutTask = $process.StandardOutput.BaseStream.CopyToAsync([System.IO.File]::Open($stdoutLog, [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write, [System.IO.FileShare]::Read))
|
||||
$stderrTask = $process.StandardError.BaseStream.CopyToAsync([System.IO.File]::Open($stderrLog, [System.IO.FileMode]::Create, [System.IO.FileAccess]::Write, [System.IO.FileShare]::Read))
|
||||
$timeoutMs = [Math]::Max(1, $DurationSeconds + $StartupTimeoutSeconds) * 1000
|
||||
if (-not $process.WaitForExit($timeoutMs)) {
|
||||
try { $process.Kill($true) } catch {}
|
||||
throw "FFmpeg recorder timed out after $($DurationSeconds + $StartupTimeoutSeconds)s. Check $stderrLog."
|
||||
}
|
||||
|
||||
$stdoutTask.GetAwaiter().GetResult()
|
||||
$stderrTask.GetAwaiter().GetResult()
|
||||
if ($process.ExitCode -ne 0) {
|
||||
throw "FFmpeg recorder failed with exit code $($process.ExitCode). Check $stderrLog."
|
||||
}
|
||||
|
|
@ -16,6 +16,10 @@ param(
|
|||
|
||||
$ErrorActionPreference = "Stop"
|
||||
|
||||
function Quote-CmdArgument([string]$Value) {
|
||||
return '"' + $Value.Replace('"', '\"') + '"'
|
||||
}
|
||||
|
||||
New-Item -ItemType Directory -Force -Path $LogRoot | Out-Null
|
||||
$repo = Split-Path -Parent $PSScriptRoot
|
||||
$timestamp = Get-Date -Format "yyyyMMdd-HHmmss"
|
||||
|
|
@ -56,13 +60,19 @@ $ffmpegArgs = @(
|
|||
"-f", "mpegts",
|
||||
$endpoint
|
||||
)
|
||||
$command = "& `"$captureScript`" -Output - -SampleRate $AudioSampleRate -Channels $AudioChannels | & `"$FfmpegPath`" $($ffmpegArgs -join ' ')"
|
||||
$quotedFfmpegArgs = $ffmpegArgs | ForEach-Object { Quote-CmdArgument $_ }
|
||||
$command = (Quote-CmdArgument $captureScript) +
|
||||
" -Output - -SampleRate $AudioSampleRate -Channels $AudioChannels | " +
|
||||
(Quote-CmdArgument $FfmpegPath) +
|
||||
" " +
|
||||
($quotedFfmpegArgs -join " ")
|
||||
|
||||
Write-Host "Raven muxed A/V sender:"
|
||||
Write-Host " ffmpeg: $FfmpegPath"
|
||||
Write-Host " target: $endpoint"
|
||||
Write-Host " video: $Source $videoSize@$Framerate via h264_nvenc"
|
||||
Write-Host " audio: Realtek/default render loopback ${AudioChannels}ch ${AudioSampleRate}Hz -> AAC"
|
||||
Write-Host " audio: Raven Realtek/default render loopback ${AudioChannels}ch ${AudioSampleRate}Hz -> AAC"
|
||||
Write-Host " sync role: Raven Realtek is co-streamer game/program loopback packaged with NVENC; Starfire Realtek owns chirp emission"
|
||||
Write-Host " stdout: $stdoutLog"
|
||||
Write-Host " stderr: $stderrLog"
|
||||
|
||||
|
|
@ -72,8 +82,8 @@ if ($DryRun) {
|
|||
}
|
||||
|
||||
Start-Process `
|
||||
-FilePath "powershell" `
|
||||
-ArgumentList @("-NoProfile", "-ExecutionPolicy", "Bypass", "-Command", $command) `
|
||||
-FilePath "cmd.exe" `
|
||||
-ArgumentList @("/d", "/c", $command) `
|
||||
-WindowStyle Hidden `
|
||||
-RedirectStandardOutput $stdoutLog `
|
||||
-RedirectStandardError $stderrLog `
|
||||
|
|
|
|||
|
|
@ -4,8 +4,16 @@ param(
|
|||
[int]$HeadlessHeight = 720,
|
||||
[string]$CaptureFrame = "",
|
||||
[string]$NightwingHost = "nightwing",
|
||||
[switch]$StartRavenSender,
|
||||
[string]$RavenHost = "madman's lullaby@192.168.1.84",
|
||||
[string]$RavenRepo = "C:\Meta\Mimir",
|
||||
[string]$StarfireHost = "192.168.1.66",
|
||||
[string]$WitnessUrl = "ws://192.168.1.66:8796/eve/periwinkle",
|
||||
[string]$ConfigPath = "E:\Projects\Mimir\config\mimir-runtime.stream-proof.local.json",
|
||||
[switch]$ProgramOutput,
|
||||
[string]$SharedTextureName = "Global\MimirFensalirProgramTexture",
|
||||
[string]$SharedFenceName = "Global\MimirFensalirProgramFence",
|
||||
[int]$SharedTextureRingCount = 1,
|
||||
[switch]$DryRun
|
||||
)
|
||||
|
||||
|
|
@ -16,10 +24,19 @@ New-Item -ItemType Directory -Force -Path $logDir | Out-Null
|
|||
|
||||
if ($DryRun) {
|
||||
Write-Host "MIMIR_RUNTIME_CONFIG=$ConfigPath"
|
||||
if ($ProgramOutput) {
|
||||
Write-Host "FENSALIR_PROGRAM_OUTPUT_D3D12=1"
|
||||
Write-Host "FENSALIR_PROGRAM_OUTPUT_NAME=$SharedTextureName"
|
||||
Write-Host "FENSALIR_PROGRAM_OUTPUT_FENCE_NAME=$SharedFenceName"
|
||||
Write-Host "FENSALIR_PROGRAM_OUTPUT_RING_COUNT=$SharedTextureRingCount"
|
||||
}
|
||||
Write-Host "Would stage Nightwing witness tools to $NightwingHost and start --track-eyes publisher at $WitnessUrl"
|
||||
if ($StartRavenSender) {
|
||||
Write-Host "Would start Raven muxed A/V sender on ${RavenHost}: ${RavenRepo}\scripts\start-raven-av-sender.ps1 -TargetHost $StarfireHost -Port 5200"
|
||||
}
|
||||
Write-Host "Would start local Raven A/V demux: scripts\start-raven-av-demux.ps1"
|
||||
Write-Host "Would launch: dotnet run --project $repo\src\Mimir.App\Mimir.App.csproj"
|
||||
Write-Host "Raven muxed A/V sender: scripts\start-raven-av-sender.ps1 -TargetHost 192.168.1.66 -Port 5200"
|
||||
Write-Host "Program layout: raven-display full-frame, kiyo-pro-rgb picture-in-picture"
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
|
@ -84,7 +101,28 @@ if ($LASTEXITCODE -ne 0) {
|
|||
|
||||
& (Join-Path $repo "scripts\start-raven-av-demux.ps1")
|
||||
|
||||
if ($StartRavenSender) {
|
||||
$taskName = "MimirRavenAvSender5200"
|
||||
$ravenSender = "${RavenRepo}\scripts\start-raven-av-sender.ps1"
|
||||
$remoteCmd = "${RavenRepo}\scripts\run-raven-av-5200.cmd"
|
||||
$taskTime = (Get-Date).AddMinutes(1).ToString("HH:mm")
|
||||
ssh $RavenHost "cmd /c echo powershell.exe -NoProfile -ExecutionPolicy Bypass -File $ravenSender -TargetHost $StarfireHost -Port 5200 ^> $remoteCmd" | Out-Null
|
||||
ssh $RavenHost "schtasks /Delete /TN $taskName /F" | Out-Null
|
||||
ssh $RavenHost "schtasks /Create /TN $taskName /SC ONCE /ST $taskTime /TR $remoteCmd /F /IT" | Out-Host
|
||||
ssh $RavenHost "schtasks /Run /TN $taskName" | Out-Host
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Could not start Raven muxed A/V sender task on $RavenHost."
|
||||
}
|
||||
Start-Sleep -Milliseconds 1500
|
||||
}
|
||||
|
||||
$env:MIMIR_RUNTIME_CONFIG = $ConfigPath
|
||||
if ($ProgramOutput) {
|
||||
$env:FENSALIR_PROGRAM_OUTPUT_D3D12 = "1"
|
||||
$env:FENSALIR_PROGRAM_OUTPUT_NAME = $SharedTextureName
|
||||
$env:FENSALIR_PROGRAM_OUTPUT_FENCE_NAME = $SharedFenceName
|
||||
$env:FENSALIR_PROGRAM_OUTPUT_RING_COUNT = [string]$SharedTextureRingCount
|
||||
}
|
||||
$args = @("run", "--project", (Join-Path $repo "src\Mimir.App\Mimir.App.csproj"))
|
||||
if ($Headless) {
|
||||
$args += "--"
|
||||
|
|
@ -101,5 +139,8 @@ if ($Headless) {
|
|||
|
||||
Write-Host "MIMIR_RUNTIME_CONFIG=$ConfigPath"
|
||||
Write-Host "Starting stream proof: Leap + Kiyo Pro + Raven screen/audio, Nightwing Eye/Move witness claims"
|
||||
Write-Host "Raven sender expected: scripts\start-raven-av-sender.ps1 -TargetHost 192.168.1.66 -Port 5200"
|
||||
if ($ProgramOutput) {
|
||||
Write-Host "Program output texture: $SharedTextureName"
|
||||
}
|
||||
Write-Host "Program layout: raven-display full-frame, kiyo-pro-rgb picture-in-picture"
|
||||
dotnet @args
|
||||
|
|
|
|||
|
|
@ -90,6 +90,11 @@ if (args.Any(arg => string.Equals(arg, "--scene-editor-smoke", StringComparison.
|
|||
return RunSceneEditorSmoke();
|
||||
}
|
||||
|
||||
if (args.Any(arg => string.Equals(arg, "--program-surface-default-smoke", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
return RunProgramSurfaceDefaultSmoke();
|
||||
}
|
||||
|
||||
if (args.Any(arg => string.Equals(arg, "--audio-stem-publication-smoke", StringComparison.OrdinalIgnoreCase)))
|
||||
{
|
||||
return RunAudioStemPublicationSmoke();
|
||||
|
|
@ -3446,6 +3451,39 @@ static int RunSceneEditorSmoke()
|
|||
: 1;
|
||||
}
|
||||
|
||||
static int RunProgramSurfaceDefaultSmoke()
|
||||
{
|
||||
var config = MimirProgramSurfaceConfigStore.CreateDefault();
|
||||
var editor = new MimirSceneEditorState();
|
||||
var ravenDisplay = NewVideoBuffer("raven-display", MimirStreamOrigin.Network, 1_000_000_000, 1920, 1080, MimirVideoPixelFormat.Bgra8, 1, "raven-sync");
|
||||
var kiyoPro = NewVideoBuffer("kiyo-pro-rgb", MimirStreamOrigin.LocalDevice, 1_000_000_000, 640, 480, MimirVideoPixelFormat.Yuy2, 2);
|
||||
editor.SyncSensorFeeds([kiyoPro, ravenDisplay]);
|
||||
editor.ApplyProgramSurfaceConfig(config);
|
||||
|
||||
var ravenPlacement = editor.PlacementForSource("raven-display");
|
||||
var kiyoPlacement = editor.PlacementForSource("kiyo-pro-rgb");
|
||||
var selected = editor.SelectedNode?.SourceId ?? "";
|
||||
var ravenFullFrame = ravenPlacement is { CenterX: 0.5f, CenterY: 0.5f, Width: 1.0f, Height: 1.0f, Layer: 0 };
|
||||
var kiyoCorner = kiyoPlacement is { Layer: 1 } &&
|
||||
kiyoPlacement.Value.CenterX < 0.35f &&
|
||||
kiyoPlacement.Value.CenterY < 0.35f &&
|
||||
kiyoPlacement.Value.Width > 0.1f &&
|
||||
kiyoPlacement.Value.Width < 0.4f &&
|
||||
kiyoPlacement.Value.Height > 0.1f &&
|
||||
kiyoPlacement.Value.Height < 0.4f;
|
||||
|
||||
Console.WriteLine(
|
||||
$"program-surface-default-smoke selected={selected} " +
|
||||
$"raven={ravenPlacement?.CenterX:0.000},{ravenPlacement?.CenterY:0.000} {ravenPlacement?.Width:0.000}x{ravenPlacement?.Height:0.000} layer={ravenPlacement?.Layer} " +
|
||||
$"kiyo={kiyoPlacement?.CenterX:0.000},{kiyoPlacement?.CenterY:0.000} {kiyoPlacement?.Width:0.000}x{kiyoPlacement?.Height:0.000} layer={kiyoPlacement?.Layer}");
|
||||
|
||||
return string.Equals(selected, "kiyo-pro-rgb", StringComparison.Ordinal) &&
|
||||
ravenFullFrame &&
|
||||
kiyoCorner
|
||||
? 0
|
||||
: 1;
|
||||
}
|
||||
|
||||
static int RunAudioStemPublicationSmoke()
|
||||
{
|
||||
var publication = new MimirObsStemPublicationState(MimirObsPublicationConfigurations.AlignmentActuatorStemBus);
|
||||
|
|
|
|||
Loading…
Reference in a new issue