Move desktop launchers to PowerShell wrappers
This commit is contained in:
parent
0bd1621b47
commit
bf4afe42b3
6 changed files with 54 additions and 6 deletions
|
|
@ -15,7 +15,7 @@
|
|||
- Receiver OBS scene has `Neighbor PC - System Audio` on SRT port `5102`.
|
||||
- Sender script uses `-nostdin` and repo-root logs so desktop launchers stay alive and diagnostics land in `C:\Meta\LocalCastBridge\logs`.
|
||||
- Sender video config is `1920x1080` for the interactive desktop. The `1024x768` SSH session size is not the streaming target.
|
||||
- Desktop launchers use absolute paths for winget-installed tools because interactive `cmd.exe` did not resolve `SoundVolumeView`.
|
||||
- Desktop `.cmd` launchers delegate to PowerShell wrappers so paths with spaces and apostrophes are handled in one place.
|
||||
|
||||
## Temporary
|
||||
|
||||
|
|
|
|||
|
|
@ -73,19 +73,19 @@ C:\Users\Madman's Lullaby\Desktop\Stop LocalCast Sender.cmd
|
|||
|
||||
Start launcher:
|
||||
|
||||
- runs `scripts\sender-start.ps1`
|
||||
- runs `scripts\start-localcast-desktop.ps1`
|
||||
- uses `config\localcast.json`
|
||||
- passes the winget FFmpeg alias path explicitly
|
||||
- starts Voicemeeter
|
||||
- calls `SoundVolumeView.exe` by absolute path because the winget alias is not
|
||||
reliably available in interactive `cmd.exe`
|
||||
- calls `SoundVolumeView.exe` by absolute path inside PowerShell because the
|
||||
winget alias is not reliably available in interactive `cmd.exe`
|
||||
- sets Windows default render to `Voicemeeter VAIO3 Input`
|
||||
- sets Windows default capture to `Voicemeeter Out B3`
|
||||
- writes FFmpeg logs under `C:\Meta\LocalCastBridge\logs`
|
||||
|
||||
Stop launcher:
|
||||
|
||||
- runs `scripts\sender-stop.ps1`
|
||||
- runs `scripts\stop-localcast-desktop.ps1`
|
||||
- stops FFmpeg processes whose command line contains `srt://`
|
||||
- restores Windows default render to `Focusrite USB Audio\Device\Speakers\Render`
|
||||
- closes `voicemeeter_x64.exe`
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Get-Content .\state\evidence.jsonl -Tail 8
|
|||
- Receiver OBS scene collection has `Neighbor PC - Video`, `Neighbor PC - Focusrite`, and `Neighbor PC - System Audio` Media Sources added.
|
||||
- Sender has Voicemeeter plus SoundVolumeView installed for system-output loopback.
|
||||
- Sender script was patched after failed transmission: live FFmpeg commands now include `-nostdin`, logs go under `C:\Meta\LocalCastBridge\logs`, and interactive video capture size is `1920x1080`.
|
||||
- Madman's desktop launchers call `SoundVolumeView.exe` and `ffmpeg.exe` by absolute winget-link path.
|
||||
- Madman's desktop launchers call PowerShell wrappers: `scripts\start-localcast-desktop.ps1` and `scripts\stop-localcast-desktop.ps1`.
|
||||
- SSH-launched video capture fails with `gdigrab` error 5; test video from Madman's interactive desktop launcher.
|
||||
|
||||
## Current Pressure
|
||||
|
|
|
|||
28
scripts/start-localcast-desktop.ps1
Normal file
28
scripts/start-localcast-desktop.ps1
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$root = "C:\Meta\LocalCastBridge"
|
||||
$voicemeeter = "C:\Program Files (x86)\VB\Voicemeeter\voicemeeter_x64.exe"
|
||||
$soundVolumeView = "C:\Users\Madman's Lullaby\AppData\Local\Microsoft\WinGet\Links\SoundVolumeView.exe"
|
||||
$ffmpeg = "C:\Users\Madman's Lullaby\AppData\Local\Microsoft\WinGet\Links\ffmpeg.exe"
|
||||
$config = Join-Path $root "config\localcast.json"
|
||||
$senderStart = Join-Path $root "scripts\sender-start.ps1"
|
||||
|
||||
Set-Location $root
|
||||
|
||||
if (Test-Path -LiteralPath $voicemeeter) {
|
||||
Start-Process -FilePath $voicemeeter
|
||||
} else {
|
||||
Write-Warning "Voicemeeter was not found at $voicemeeter"
|
||||
}
|
||||
|
||||
if (Test-Path -LiteralPath $soundVolumeView) {
|
||||
& $soundVolumeView /SetDefault "VB-Audio Voicemeeter VAIO\Device\Voicemeeter VAIO3 Input\Render" 0
|
||||
& $soundVolumeView /SetDefault "VB-Audio Voicemeeter VAIO\Device\Voicemeeter VAIO3 Input\Render" 1
|
||||
& $soundVolumeView /SetDefault "VB-Audio Voicemeeter VAIO\Device\Voicemeeter Out B3\Capture" 0
|
||||
& $soundVolumeView /SetDefault "VB-Audio Voicemeeter VAIO\Device\Voicemeeter Out B3\Capture" 1
|
||||
} else {
|
||||
Write-Warning "SoundVolumeView was not found at $soundVolumeView"
|
||||
}
|
||||
|
||||
& $senderStart -Config $config -FfmpegPath $ffmpeg
|
||||
|
||||
19
scripts/stop-localcast-desktop.ps1
Normal file
19
scripts/stop-localcast-desktop.ps1
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
$ErrorActionPreference = "Stop"
|
||||
|
||||
$root = "C:\Meta\LocalCastBridge"
|
||||
$soundVolumeView = "C:\Users\Madman's Lullaby\AppData\Local\Microsoft\WinGet\Links\SoundVolumeView.exe"
|
||||
$senderStop = Join-Path $root "scripts\sender-stop.ps1"
|
||||
|
||||
Set-Location $root
|
||||
|
||||
& $senderStop
|
||||
|
||||
if (Test-Path -LiteralPath $soundVolumeView) {
|
||||
& $soundVolumeView /SetDefault "Focusrite USB Audio\Device\Speakers\Render" 0
|
||||
& $soundVolumeView /SetDefault "Focusrite USB Audio\Device\Speakers\Render" 1
|
||||
} else {
|
||||
Write-Warning "SoundVolumeView was not found at $soundVolumeView"
|
||||
}
|
||||
|
||||
Get-Process voicemeeter_x64 -ErrorAction SilentlyContinue | Stop-Process -Force
|
||||
|
||||
|
|
@ -7,3 +7,4 @@
|
|||
{"ts": "2026-05-18T11:38:25+00:00", "type": "fix", "status": "ok", "note": "Transmission failure traced to three issues: stale OBS SRT source state, sender live launcher splitting/closing FFmpeg due Start-Process/stdin handling, and SSH-launched gdigrab seeing a 1024x768 remote desktop with capture error 5. Patched sender-start with quoted argument string, -nostdin, repo-root logs, and set sender video config to 1024x768; OBS restarted and listening on UDP 5100-5102."}
|
||||
{"ts": "2026-05-18T11:39:19+00:00", "type": "decision", "status": "ok", "note": "Ambisonic AquaSynth path should use one clocked multichannel capture feeding a declared ambisonic bus; four heterogeneous mics must not be treated as raw first-order A-format without geometry and calibration."}
|
||||
{"ts": "2026-05-18T11:43:08+00:00", "type": "fix", "status": "ok", "note": "Madman's interactive launcher could not resolve winget aliases for SoundVolumeView, so desktop CMD files now use absolute winget-link paths. Sender video config restored to 1920x1080 because 1024x768 was only the SSH session display and captured a slice."}
|
||||
{"ts": "2026-05-18T11:45:18+00:00", "type": "fix", "status": "ok", "note": "Replaced path-heavy desktop CMD launchers with PowerShell wrappers start-localcast-desktop.ps1 and stop-localcast-desktop.ps1 after cmd.exe parsed Voicemeeter/SoundVolumeView paths incorrectly on Madman's interactive desktop."}
|
||||
|
|
|
|||
Loading…
Reference in a new issue