@echo off if "%1"=="" ( echo Usage: start_edge.bat ^ ^ echo Example: start_edge.bat 1 127.0.0.1 exit /b 1 ) set SUFFIX=%1 set ORIGIN=%2 if "%ORIGIN%"=="" set ORIGIN=127.0.0.1 set /a HLS_PORT=8888 + %SUFFIX% set /a API_PORT=9997 + %SUFFIX% echo Starting Edge Node %SUFFIX%... echo HLS: %HLS_PORT% echo API: %API_PORT% echo Pull from origin: %ORIGIN% type edge_template.yml > edge%SUFFIX%.yml echo. >> edge%SUFFIX%.yml mediamtx edge%SUFFIX%.yml