From c09a9997101c8234f7d523acab887dbe6afe8fe8 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Mon, 20 Jul 2026 14:20:41 +0800 Subject: [PATCH] fix: show ffmpeg window so errors are visible --- scripts/dev-env.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/dev-env.ps1 b/scripts/dev-env.ps1 index 0a0dac2..b23fcb8 100644 --- a/scripts/dev-env.ps1 +++ b/scripts/dev-env.ps1 @@ -36,17 +36,18 @@ function Write-Banner { } function Start-Detached { - param([string]$Name, [string]$Exe, [string[]]$Args) + param([string]$Name, [string]$Exe, [string[]]$Args, [switch]$Visible) $found = (Test-Path $Exe) -or (Get-Command $Exe -ErrorAction SilentlyContinue) if (-not $found) { Write-Host " [SKIP] $Name : 未找到 $Exe" -ForegroundColor Yellow return $null } Write-Host " [START] $Name" -ForegroundColor Green + $style = if ($Visible) { "Normal" } else { "Minimized" } if ($Args -and $Args.Count -gt 0) { - $proc = Start-Process -FilePath $Exe -ArgumentList $Args -WindowStyle Minimized -PassThru + $proc = Start-Process -FilePath $Exe -ArgumentList $Args -WindowStyle $style -PassThru } else { - $proc = Start-Process -FilePath $Exe -WindowStyle Minimized -PassThru + $proc = Start-Process -FilePath $Exe -WindowStyle $style -PassThru } Start-Sleep -Milliseconds 500 return $proc @@ -94,7 +95,7 @@ function Invoke-Start { } } if ($ffArgs) { - Start-Detached "ffmpeg" $ffmpeg $ffArgs + Start-Detached "ffmpeg" $ffmpeg $ffArgs -Visible } # 3. Media server (runs on RK3588, not local)