启动 CS2
打开 HLAE.exe,选择 File -> Launch CS2:
- Game 指向
...\Counter-Strike Global Offensive\game\bin\win64\cs2.exe。 - 为 moviemaking config 选择独立父目录,避免覆盖日常配置。
- 选择分辨率,按需添加自定义启动参数。
- 点击 Launch。控制台出现 Advancedfx 信息即表示 Hook 成功。
专用启动器会处理 -afxDisableSteamStorage 和配置目录。只有在排错或开发时才使用 Custom Loader。
最小录制配置
加载 Demo 并找到片段后,在控制台执行:
mirv_streams record screen enabled 1
mirv_streams record fps 120
mirv_streams record name "D:\HLAE\captures\test"
mirv_streams record startMovieWav 1
开始和停止:
mirv_streams record start
mirv_streams record end
默认输出未压缩 TGA 图像序列。若 FFmpeg 已正确安装,可应用内置预设:
mirv_streams settings edit afxDefault settings afxFfmpeg
先录 3 至 5 秒确认输出。更高的录制 FPS、分辨率和通道数会明显增加耗时与存储需求。
多通道起点
需要主画面和深度时:
mirv_streams add normal main
mirv_streams edit main capture beforeUi
mirv_streams add depth depth
mirv_streams preview depth
mirv_streams previewEnd
预览正常后再正式录制。不同流可分别指定编码设置,避免把深度通道压成有损的普通视频。