This commit is contained in:
eric
2026-03-28 02:39:29 -05:00
parent 243b9d7acb
commit 4b3c6cbee4
23 changed files with 1468 additions and 173 deletions

17
obs.bat Normal file
View File

@@ -0,0 +1,17 @@
@echo off
setlocal EnableDelayedExpansion
REM Windows从本机 SRS 拉 SRT 并用 ffplay 播放(需已安装 ffmpeg 且 ffplay 在 PATH
REM 下方 SRS_SRT_URL 里的端口是 SRS 的 SRT 端口,与 Web 控制台端口config\runtime.env无关。
if not defined SRS_SRT_URL (
set "SRS_SRT_URL=srt://127.0.0.1:10080?streamid=#!::r=live/livestream,m=request^&latency=10"
)
where ffplay >nul 2>&1
if errorlevel 1 (
echo ffplay not found. Install ffmpeg and add to PATH.
exit /b 1
)
ffplay -nostats -hide_banner -fflags nobuffer -flags low_delay -framedrop -probesize 32 -analyzeduration 0 -sync ext -infbuf -vf "setpts=PTS-STARTPTS" "%SRS_SRT_URL%"
endlocal