fix: pass mediamtx config file path explicitly
This commit is contained in:
parent
4ad664ecc5
commit
a1143562c4
@ -15,6 +15,7 @@ $edgeDir = (Resolve-Path (Join-Path $controlDir "..\safesight-edge")).Path
|
||||
|
||||
# ── paths ──────────────────────────────────────────────
|
||||
$mediamtx = "C:\Software\mediamtx\mediamtx.exe"
|
||||
$mediamtxConf = "C:\Software\mediamtx\mediamtx.yml"
|
||||
$ffmpeg = "ffmpeg"
|
||||
$minio = "C:\Users\Tellme\minio\minio.exe"
|
||||
$minioData = "C:\Users\Tellme\minio\myminio"
|
||||
@ -25,7 +26,7 @@ $safesightdConfig = Join-Path $controlDir $SafesightdConfig
|
||||
$mediaServerConfig = Join-Path $edgeDir $MediaConfig
|
||||
$mediaServerExe = Join-Path $edgeDir "build\media-server.exe"
|
||||
|
||||
$rtspUrl = "rtsp://localhost:8554/cam"
|
||||
$rtspUrl = "rtsp://10.0.0.49:8554/cam"
|
||||
$defaultVideo = "C:\Users\Tellme\Pictures\人脸库\reg_008_unk_011_多人_正面_黑色鞋_白色鞋_1.mp4"
|
||||
|
||||
function Write-Banner {
|
||||
@ -72,7 +73,7 @@ function Stop-ByName {
|
||||
function Invoke-Start {
|
||||
# 1. RTSP server
|
||||
Write-Banner "1/5 RTSP Server (mediamtx)"
|
||||
Start-Detached "mediamtx" $mediamtx
|
||||
Start-Detached "mediamtx" $mediamtx @($mediamtxConf)
|
||||
Write-Host " [WAIT] 等待 RTSP 服务就绪..." -ForegroundColor DarkGray
|
||||
$ready = $false
|
||||
for ($i = 0; $i -lt 10; $i++) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user