Demo 准备
用 demoui 或 playdemo <demo> 加载录像。加载后执行基础配置:
sv_cheats 1
mirv_cvar_unhide_all
host_timescale 0
mirv_snd_timescale 1
cl_clock_correction 0
mirv_fix playerAnimState 1
这些修复需要一段 Demo 时间稳定,不要在按下录制前一刻才执行。
单通道录制
mirv_streams record name "D:\HLAE\captures\shot01"
mirv_streams add normal main
mirv_streams preview main
mirv_streams previewEnd
host_framerate 120
mirv_streams record start
片段结束后:
mirv_streams record end
host_framerate 0
音频默认随 startmovie 方式写出;确保 mirv_snd_timescale 1。也可用 mirv_streams record startMovieWav 0|1 显式控制。
添加通道
mirv_streams add depth depth
mirv_streams add matteEntity players
mirv_streams edit depth depthValMax 4096
每个流会写入独立子目录。用 mirv_streams edit <name> record 0 暂停某个流的录制,用 mirv_streams remove <name> 删除流。
FFmpeg
查看内置预设并应用到单个流:
mirv_streams settings print
mirv_streams edit main settings afxFfmpegRaw
也可全局应用:
mirv_streams settings edit afxDefault settings afxFfmpeg
有损的 YUV 预设不适合深度或 Matte。合成通道优先使用图像序列、无损视频或保留所需位深的格式。