{# 设置页的"录像"一栏(2026-11-20;panel_recordings.py 的 settings_view 和 /settings/recording…,规则见 docs/面板.md"设置页:录像")。 开关默认关(原则 2);打开以后才显示画质、硬盘上限、保存位置。改了从下一局开始生效。 改了就存(2026-11-28 用户要的:去掉"保存"按钮,settings.html 的 data-autosave),结果写在那一项下面、不刷新页面; 开关、"重新检测"这类按钮照旧提交,结果写在那一项下面(rec.note,只显示一次),跳回这一栏(#h-video)。 找不到 ffmpeg、录像也没开着时整栏不显示(rec.shown):正式版不带 ffmpeg,只有测试版(0.7.0b,实验功能)有这一栏 #} {% set rec = rec_view if rec_view is defined else recording_settings() %}{# settings.html 已经取过(分类栏要知道显示不显示) #} {% from "_rec_icons.html" import ev_icon %} {% macro note(rec, where) -%} {% if rec.note and rec.note.where == where %}
{{ rec.note.text }}
{% endif %} {%- endmacro %} {% if rec.shown %}

录像 实验

录下每一局
{% if rec.strategy == 'evo' %}{# 用 OBS 录时编码器、抓法都由 OBS 管,不写 #} {% if rec.encoder and rec.enabled %}
这台电脑用 {{ rec.encoder }}编码
{% endif %} {% if rec.win10_note and rec.enabled %}
{{ rec.win10_note }}
{% endif %}{# Windows 10 上改用桌面复制(2026-11-29) #} {% endif %} {% if rec.blocked %}
{{ rec.blocked }}
{% endif %} {% if rec.recheck %}{# 检测不过时(2026-11-28):玩家更新了驱动以后点,重新检测显卡硬件编码器(panel_recordings.recheck) #}
{% endif %} {{ note(rec, "toggle") }}
{# 录制策略(2026-11-29 用户定的):Evo(自己录,默认)/ OBS(用玩家自己的 OBS 录)。开关关着时也显示(没有显卡编码器的电脑先选 OBS 再打开)。 改了就存、页面重新打开;选 OBS 时下面写 OBS 连没连上,有"从 OBS 读取"(读 OBS 的控制接口设置:端口、密码) #}
{% if rec.strategy == 'evo' %}{# 2026-11-29 用户要的:选 Evo 时提示可以换 OBS #}
如果出现不稳定的情况,请选择 OBS 方案
{% endif %} {% if rec.strategy == 'obs' %}
使用自己的 OBS 软件录制:画质、声音和其他参数请直接在 OBS 里设置
{# 2026-11-29 用户改的说法 #}
{{ rec.obs.text }}
{% endif %} {{ note(rec, "strategy") }}
{% if rec.strategy == 'obs' %}
{{ note(rec, "obs") }}
{% endif %} {% if rec.enabled %} {# 剪高光(2026-11-21 用户定的,照 Outplayed 的设置页;panel_recordings.save_highlights、highlights.py):录制模式、高光包括哪些事件 (带录像页那套图标的复选框)、折叠的"高级选项"里每种事件前后录几秒(两个滑块夹着事件的图标,往外拖是录得多,用户要的滑块)。 一起保存;录像页的"保存高光"也按这里的切 #}
高光包括
{% for e in rec.hl_events %} {% endfor %}
{# 用户 11-21 写的:英文、繁体现在认不出"击倒"那一行 #}

击倒、助攻击倒等事件还在适配多语种中……欢迎加入反馈群帮助适配!

高级选项
{% for e in rec.hl_events %}
{{ e.name }} 前 {{ '%g' | format(e.before) }} 秒 后 {{ '%g' | format(e.after) }} 秒
{% endfor %}
{{ note(rec, "highlights") }}
{% if rec.strategy == 'evo' %}{# 用 OBS 录时画质、声音、麦克风都在 OBS 里设置,这几项不显示(2026-11-29 用户定的:不显示,不是变灰) #} {# 画质:几项一起提交,改了哪一项都马上存(settings.html 的 data-autosave,2026-11-28);下面那一行随选的变(estimates 里先算好了每种组合,脚本只是查表) #}
{# 自定义码率(2026-11-28 用户要的,像 Outplayed 那样):画质选"自定义"时才显示(页面脚本切换);没选时也一起提交,记住框里的数 #}
{% if rec.codecs | length > 1 %}
RTX 40系/RX 7000 系及以后的电脑推荐使用AV1,存储空间更省
{# 不能选的原因写在这里,不写进选项:选项一长下拉框就被撑宽,左边这几行挤成一窄条(2026-11-26) #}
{% for one in rec.codecs if not one.ready %}{{ one.why }}{% if not loop.last %}
{% endif %}{% endfor %}
{% else %}{# 只有一种:不让选,提交时带上它 #} {% endif %} {# 声音两档(2026-11-21 用户定的):和画质一起保存 #}
{{ rec.estimate or '' }}
{{ note(rec, "quality") }}
{# 麦克风(2026-11-21 用户要的,像 Zoom 那样):开关;音量滑块(松手自动保存,录像时按它混进第一条音轨);"测试"录 5 秒、 录的时候音量条跟着跳,录完按滑块的音量放给自己听(Web Audio 的增益,能放大到 200%),"再听一遍"不用重录 #}
录麦克风
{{ rec.current.mic_volume }}%
{% endif %}
当前有 {{ rec.count }} 个录像,共 {{ rec.used }}{% if rec.free %},{{ rec.free }}{% endif %}。超过上限时,录完一局从最旧的删起
{{ note(rec, "limit") }}
{# 选的位置不能用时:下面"更改保存位置…"展开着,原因写在输入框下面(不写在这一行) #} {% set folder_failed = rec.note and rec.note.where == 'folder' and rec.note.error %}
保存位置
{{ rec.folder }}
{% if not folder_failed %}{{ note(rec, "folder") }}{% endif %}
更改保存位置…

已经录好的不会搬过去,还留在原来的地方。

{# 改了就存(2026-11-28):"浏览…"选好、粘贴、填完按回车或点别处;存好了页面重新打开,结果写在上面"保存位置"那一行(rec-folder-saved), 不能用写在输入框下面 #}
{% if in_app %}{% endif %}
{% if folder_failed %}{{ note(rec, "folder") }}{% endif %}
{% if rec.custom_folder %}
{% endif %}
{% endif %}
{% endif %}