UE小:PixelStreamingInfrastructure最简使用指南(win)
https://github.com/EpicGamesExt/PixelStreamingInfrastructure/releases/download/v4.5.2-coturn-windows/turnserver.zip 到 D:\YourProject\PixelStreamingInfrastructure-UE5.5-4.0.6\SignallingWebServer\platfo
首先修改成淘宝镜像源
npm config set registry https://registry.npmmirror.com
然后到你的引擎的根目录双击这个Engine\Plugins\Media\PixelStreaming\Resources\WebServers\get_ps_servers.bat
接着下载
https://github.com/EpicGamesExt/PixelStreamingInfrastructure/releases/download/v4.5.2-coturn-windows/turnserver.zip 到 D:\YourProject\PixelStreamingInfrastructure-UE5.5-4.0.6\SignallingWebServer\platform_scripts\cmd\
然后在YourProject层执行个run_setup.bat
@echo off
REM 设置代码页为 UTF-8
chcp 65001 >nul
REM 获取当前目录
set CURRENT_DIR=%~dp0
REM 构建 setup.bat 的完整路径
set SETUP_BAT_PATH=%CURRENT_DIR%PixelStreamingInfrastructure-UE5.5-4.0.6\SignallingWebServer\platform_scripts\cmd\setup.bat
REM 检查 setup.bat 是否存在
if exist "%SETUP_BAT_PATH%" (
echo 正在启动 setup.bat...
call "%SETUP_BAT_PATH%"
) else (
echo 错误: setup.bat 文件未找到!
echo 路径: %SETUP_BAT_PATH%
pause
exit /b 1
)
REM 暂停以便查看输出
pause
为了方便同时启动UE以及pixelstreaming我建议使用pm2
首先先创建一个文件夹,然后
npm init -y
npm install pm2 --save
ecosystem.config.js
module.exports = {
apps: [
{
name: "SignallingWebServer",
script: "cmd.exe", // 使用 cmd.exe 运行 .bat 文件
args: "/c .\\PixelStreaming\\PixelStreamingInfrastructure-UE5.5\\SignallingWebServer\\platform_scripts\\cmd\\start.bat",
interpreter: "none",
cwd: __dirname,
watch: false,
autorestart: false,
},
{
name: "JSUE",
script: ".\\UE_Shipping\\Windows\\JSUE.exe",
args: "-RenderOffscreen -PixelStreamingIP=127.0.0.1 -PixelStreamingPort=8888",
interpreter: "none",
cwd: __dirname,
watch: false,
autorestart: false,
},
],
};
start_services.bat
@echo off
chcp 65001 >nul
pm2 start ecosystem.config.js
pause
解释一下,ecosystem.config.js是用来驱动pm2的命令行参数文件,执行比较复杂的命令时可以用到,简单的可以直接pm2 start直接启动
火山引擎开发者社区是火山引擎打造的AI技术生态平台,聚焦Agent与大模型开发,提供豆包系列模型(图像/视频/视觉)、智能分析与会话工具,并配套评测集、动手实验室及行业案例库。社区通过技术沙龙、挑战赛等活动促进开发者成长,新用户可领50万Tokens权益,助力构建智能应用。
更多推荐
所有评论(0)