Scaffold local OBS streaming bridge

This commit is contained in:
Meta Vens 2026-05-18 10:56:01 +01:00
commit beac84ae23
18 changed files with 1159 additions and 0 deletions

28
scripts/sender-stop.ps1 Normal file
View file

@ -0,0 +1,28 @@
param(
[string]$LogDirectory = ".\logs"
)
$ErrorActionPreference = "Stop"
$logs = Resolve-Path -LiteralPath $LogDirectory -ErrorAction SilentlyContinue
if (-not $logs) {
Write-Host "No log directory found at $LogDirectory"
return
}
$ffmpegProcesses = Get-CimInstance Win32_Process |
Where-Object {
$_.Name -ieq "ffmpeg.exe" -and
$_.CommandLine -like "*srt://*"
}
if (-not $ffmpegProcesses) {
Write-Host "No LocalCastBridge-looking ffmpeg SRT processes found."
return
}
foreach ($process in $ffmpegProcesses) {
Stop-Process -Id $process.ProcessId -Force
Write-Host "Stopped ffmpeg PID=$($process.ProcessId)"
}