Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
Release 2.0.0: OBS compatibility, new icons and bilingual UI guides
Veyra Goal Agent9286e803ffd6
diff --git a/README.md b/README.mdindex 7bae8a4b..e342eecc 100644--- a/README.md+++ b/README.md@@ -1,166 +1,119 @@# Veyra-<p align="center"><img src="assets/veyra-logo.png" alt="Veyra" width="200"></p>+<p align="center"><img src="assets/veyra-app-icon.png" alt="Veyra" width="160"></p>-[English](README_EN.md) | 简体中文+简体中文 | [English](README_EN.md)-<p align="center">- <a href="https://github.com/Likely7/Veyra-NRVideo/blob/main/REAMDE%20MP4.mp4">- <img src="assets/readme-demo.gif" alt="Veyra 演示视频" width="960">- </a>-</p>---Windows 视频播放器与采集卡增强工具。支持视频、图片、采集卡实时预览和 PS5 局域网串流,可组合使用超分辨率、NR 画面增强与补帧。--[下载 1.4.4 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.4) · [更新记录](docs/RELEASE_NOTES_1.4.4.md) · [反馈问题](https://github.com/Likely7/Veyra-NRVideo/issues)--## 1.4.4 更新--**补帧闪烁**:三个独立成因都已修掉——文件播放跳帧、重复呈现同一帧、采集丢帧,都不再清空 NR/补帧时域历史(此前每次都要重新预热)。--**帧同步重做**:删掉实测无差异的三个模式选择器,改为低延迟队列/显示同步/输出上限三项独立控件;**输出上限现在决定补帧实际生成多少**,不再是算完再丢(原生 DLSS 6X 实测生成帧 −71%、功耗 221→174 W;真超分档只降约 4 W)。补帧页同时新增“严格补帧节奏”开关(默认关闭=1.4.0 的宽松规则),并修掉它与相邻控件重叠的排版问题。--**采集卡与管理**:修复“选 1080p YUY2 却打开 4K RGB24”的格式串档;新增输入色彩空间/范围选择与 Elgato 4K60 Pro MK.2 专用 HDR 元数据入口;采集链路回调、缓冲与音频端点变化的韧性修复。--**界面与字幕**:修复专业模式快速滚动的白影/重叠;增强页与补帧页重排;字幕默认保留设置字号,双行不再自动缩小;全屏新增锁定,鼠标晃动不再弹出控制条。--**已知边界**:真 1080p→4K 超分+NR 下 DLSS 4X/6X 仍有长间隔,XeSS 4X 重负载连续性仍待解决;软件提交 FPS 不等于屏幕刷新率或肉眼流畅度。本版不宣称“补帧受限”已根治。[完整更新、实测数据与已知问题](docs/RELEASE_NOTES_1.4.4.md)。--## 下载与运行--1. 在 [Releases](https://github.com/Likely7/Veyra-NRVideo/releases) 下载 **Veyra-1.4.4-win64-portable.zip**,不要下载 Source code。-2. 完整解压到一个可写文件夹,双击 **Veyra.exe**。无需安装 SDK、Python 或开发工具。- 首次启动 NR、超分和内部补帧均关闭,确认基础画面后按需开启;导入旧设置会恢复原来的开关。-3. 使用当前显卡驱动。要使用 NVIDIA NR、DLSS、RTX Video SR 和 NVENC,需兼容的 NVIDIA RTX 显卡;本版本主要在 RTX 5070 上验证。--系统要求:Windows 11 x64、DirectX 12。便携包含当前功能所需运行组件,显卡驱动和采集卡驱动由系统提供。8K 超分和原生高分辨率增强需要更多显存,不保证每个组合都能实时运行。--升级时先退出旧版,解压到新目录。需要保留设置时,复制旧目录下的 `runtime_local/*.v1` 与 `veyra.ini`;不要用旧目录整体覆盖新版运行组件。--## 使用教程-如果这个项目对你有所帮助,欢迎请作者喝杯咖啡!你的支持是持续维护的最大动力--<img width="276" height="374" alt="7baf2084b2310a7e685c5355bf9307d3" src="https://github.com/user-attachments/assets/1438c8f7-08b4-46fd-ad5e-6d83c46cdec2" />--BUG反馈与新功能+<p align="center"><img src="docs/images/2.0.0/professional-mode.png" alt="Veyra 2.0.0 专业模式" width="1200"></p>-<img width="318" height="476" alt="屏幕截图 2026-09-19 095641" src="https://github.com/user-attachments/assets/a4479395-1456-48c1-98d4-e343a2102c3b" />+Windows 视频、图片、采集卡与串流增强工具。在同一处理链组合超分辨率、NR 画面增强、调色、RTX Video HDR 与补帧。社区增强能力保留实验性质。+[下载 2.0.0 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.0) · [完整更新(中文 / English)](docs/RELEASE_NOTES_2.0.0.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)-### 视频与图片+## 2.0.0 重点-专业模式顶部点击 **截图**,保存处理后的完整画面到系统“图片”文件夹下的 `Veyra Screenshots`,SDR 保存为 PNG,HDR 保存为保留浮点高亮的 JPEG XR(`.jxr`),需支持 HDR 的看图软件。+- **全新界面**:首页、极简、专业列表、节点、调色、导出和设置重新组织;支持简中、繁中、English、日本語。+- **节点编辑与多层 NR**:连线编排处理顺序,NR/调色独立参数;列表与节点各自保存配置、会话和预设。+- **PC / Xbox 串流**:Moonlight/Sunshine 协议 PC 串流、非官方实验 Xbox 接入,与 PS5、采集卡、屏幕捕获共用增强。+- **导出页重做**:可编辑顺序队列、剪辑、MP4/MKV、多音轨/内嵌字幕、取消重试和完成提示音。+- **增强与兼容**:NR 双版本、DLSS/XeSS/FSR 补帧入口、采集优化及带重启确认的 OBS 游戏采集开关。详细新功能与修复见 Release。-点击底栏“打开”选择文件。底栏提供播放、进度、音量、字幕和全屏;切换到专业模式后,鼠标位于画面上时可用滚轮缩放。+## 下载、启动与升级-### 采集卡+1. 下载 **Veyra-2.0.0-win64-portable.zip**,完整解压到可写新目录,运行 **veyra_qml_ui.exe**。Source code 和依赖源码包不用于直接运行。+2. Windows 11 x64、DirectX 12;无需安装 Qt、Python 或开发 SDK。显卡/采集卡驱动仍需安装。后端各有硬件要求,主要实测显卡为 RTX 5070。+3. 先关闭效果确认基础画面和声音,再逐项开启。8K、多层 NR 和补帧会增加显存与处理时间,不保证所有组合实时运行。+4. **1.4.4 教程不再适用。** 2.0 使用独立配置目录,保留旧版用于回退;不要直接复制旧 `veyra.ini`、整个 `runtime_local` 或混装 DLL 覆盖新版。-1. 连接设备,关闭其他软件对同一采集卡的占用。-2. 点击“采集”,选择设备、分辨率、帧率、像素格式及音频设备。-3. 在“音频监听”中按来源选择 `[DirectShow]` 或 `[WASAPI]`;默认是不监听音频。WASAPI 端点用 Windows 设备 ID 保存,只连接你明确选中的输入,不会自动切到麦克风或系统回录。-4. 先关闭增强确认基础画面,再按需打开 NR、超分和补帧。同一模式下可优先试 YUY2 / NV12。-5. 若主机游戏为30fps、采集卡输出60fps,在专业模式的内容节奏中选择60转30;真正60fps内容使用原始采集节奏。+## 新版操作-### PS5 串流+### 片源与页面-1. PS5 和电脑连接同一局域网,优先网线。在 PS5 **设置 → 系统 → 远程游玩**中启用远程游玩。-2. 点击软件 **PS5** 并搜索主机。搜不到时,在 PS5 **设置 → 网络 → 连接状态 → 查看连接状态**找到 IPv4 地址,手动填写。-3. 填入 **PSN Account ID**,不是昵称或 Online ID。实验性“登录 PSN”可打开索尼网页;完成登录后复制最终跳转网址,再点击“从剪贴板提交登录结果”获取 ID。-4. 首次配对仍需 PS5 **远程游玩 → 关联设备**的八位配对码。成功后选已保存主机直接连接,不需每次重新配对。-5. 手柄连接 **电脑**,DualSense 优先 USB。兼容设备支持触摸板、陀螺仪、震动及自适应扳机,效果取决于设备、连接方式和游戏。“仅观看”不转发 PC 手柄,也不保证同账号下 PS5 直连手柄与串流会话共存。+首页选择 **打开视频、采集卡、PS5 串流、PC 串流、Xbox 串流、屏幕捕获**;本地视频/图片也可拖入。底部导航切换首页、极简、专业、调色、导出和设置;隐藏时移到下沿唤出。-输入最高可选 1080p;2K / 4K / 8K 是本地超分目标,不是主机原生串流分辨率。H.264 / H.265 可选,码率请求范围 5–100Mbps,不保证主机实际达到请求值。自动解码优先硬解、失败回退软解,也可手动指定。+- **极简**以画面为主,悬浮条控制片源、进度、音量和全屏,可在设置中隐藏。+- **专业列表**右侧为画质、补帧、色彩、声音、显示;顶部处理顺序可定位设置,底部显示输入/输出、GPU 耗时和负载。+- 文件画面点击暂停/继续,左右键跳转 5 秒;双击或点按钮切全屏。全屏移到顶沿可切换极简/专业,列表全屏按 **Home** 打开快速调节,**Ctrl+L** 锁定控制条。快捷键可在设置修改。+- 顶部 **截图** 保存处理画面;预设菜单保存、管理、导入自己的配置,不强加内置画质预设。-主机和 PSN 凭据加密保存在 **%LOCALAPPDATA%/Veyra/remoteplay**,绑定当前 Windows 用户,升级不需搬运;不要分享这个目录。退出 PSN 不删除主机配对。首次免配对码注册、外网串流未实现。+### 列表模式-**实验 HDR**:H.265 HDR 在 Windows HDR 开启时可保留 HDR 输出,也可同时开启 NR、超分和补帧。NR / RTX Video SR 处理映射副本,再与原 HDR 基底合成,属于 HDR 保留增强,不是原生 HDR NR 模型;SDR 显示器仍先映射为 SDR。真实 PS5 HDR 与 Sony 登录仍待进一步验收。+顶部选 **列表**,按需开启超分、NR、RTX Video HDR。NR 最多四层,独立调整内部尺寸、强度等参数;总开关关闭全部 NR,重开恢复各层原状态。-### 增强与补帧+列表的 **NR 全局保护区域**排除区域内全部 NR 层效果,保留非 NR 处理结果,可用于 HUD/字幕。调色页提供基础调整、曲线、混色器、色轮、LUT 与颜色预设。-光流可选 NVIDIA NVOF、AMD FidelityFX 和 **GPU DIS · FAST 实验**,默认 NVOF。GPU DIS 供效果对比,本机 1080p 合成测试明显慢于 NVOF,不保证提升性能。+补帧页选可用后端/倍率,并核对内容节奏、显示同步、低延迟队列、输出上限。原画/增强对比期间补帧暂停,退出恢复。提交 FPS 不等于物理屏幕显示帧数或端到端延迟。-专业模式中分别开启 NR、超分和补帧。超分下方选择算法及目标尺寸;补帧页选择 DLSS 或 XeSS 及可用倍率。建议从实时 NR、较低 RTX Video SR 档位和2X补帧开始,结合对比画面与实时状态调整。+### 节点模式:编排自己的处理链-处理跟不上时降低画质、倍率或目标尺寸。四个阶段卡显示光流、NR、超分、补帧的 GPU 耗时;曲线显示光流、NR、超分、残差合成、补帧的总增强处理耗时;展开后的第一项另列画面额外延迟估计。两者口径不同,都不是按键到屏幕的实测延迟。+专业页顶部选 **节点**。这是实际执行的处理链,不只是示意图。-音画同步自动跟随软件处理链路,采集卡音视频共同的输入延迟不会重复补偿。轻微耗时波动不会逐帧停放声音;持续欠速时实时预览跳过过期的补帧或源帧增强机会,保持媒体时间前进。导出仍完整处理,不采用预览跳帧策略。+1. 从输入到输出保持有效连接。空白处右键或点 **添加节点**。+2. 拖动输出端口到输入端口,或依次点击两端。节点拖到线上可插入;拖离主链或按住 **Alt** 松手可断开。+3. 在节点内直接调参数,NR/调色可独立设置、按允许顺序放在超分前后。右键可删除、复制、重置;复制产生独立的**未连接副本**,接入前不运行。+4. **中键平移、滚轮缩放**;适配视图/自动排列整理布局。“草稿未运行”表示编辑链未连通或不合法,不代表所有可见节点都生效。+5. 光流在输入后计算并共享,超分为单实例;RTX Video HDR 在补帧前,补帧固定末端,DLSS/XeSS/FSR 选一个后端。不是任意分支混合图。+6. 列表和节点分别保存参数、预设、会话。切回列表恢复原列表配置,节点链保留;切换重建处理链,可能短暂停顿。-鼠标在设置上停留约半秒即可查看说明。默认超分→NR→补帧;“低延迟模式”改为 NR→超分→补帧,默认关闭,仅影响预览。可能降低耗时,也可能增加拖影或边缘瑕疵。+**2.0.0 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。-### Smooth Motion(NVIDIA App AI 插帧)+### 采集与串流-只用 Smooth Motion 时,在软件中将补帧倍率设为**关闭补帧**,再到 **NVIDIA App → 图形 → 当前使用的 Veyra.exe → AI 插帧 → 开**,应用后重启播放器。NR、超分可以照常使用;专业模式的补帧页也提供展开说明。+| 来源 | 操作要点 |+|---|---|+| 采集卡 | 选设备、格式、尺寸、帧率和音频输入;关闭其他程序占用。PQ/HLG/709、Limited/Full 匹配实际信号。美乐威 Pro Capture 有专用低延迟选项。 |+| PS5 | 主机启用远程游玩,搜索或手填 IP,使用 PSN Account ID 和主机八位配对码;已保存主机可重连。 |+| PC | 主机自行安装配置 Sunshine;Veyra 发现/添加主机、PIN 配对、选应用或桌面连接。Sunshine 不随包安装。 |+| Xbox | 按设备码流程登录,选开启远程功能的主机。非官方实验功能,服务、账号与主机限制可能影响连接。 |+| 屏幕 | 选窗口/显示器,避免捕获 Veyra 自身形成递归。 |-只想用 DLSS / XeSS 时,在 NVIDIA App 关掉 AI 插帧并重启,再选择软件补帧。也允许两者同时开启,不作拦截;叠加效果未验证,可能增加重影、延迟或 GPU 负担。软件的“关闭补帧”和总增强开关不会关闭驱动功能。+暂停采集/串流冻结预览并保留会话,不会暂停主机游戏。实卡、网络、HDR、手柄需按设备验证。-软件 FPS、耗时与队列不包含驱动生成部分;截图、导出不包含驱动中间帧。额外音画延迟、直播捕获结果需自行验证。本机用户已反馈 Smooth Motion 有效且稳定,不代表所有显卡和驱动均已验收。+### 导出-### 导出与运行组件+切到**列表**确认效果,再打开导出页。添加文件后可排序、逐项修改、设置剪辑、MP4/MKV 与编码质量;音轨/内嵌字幕可保留全部或指定。-在专业模式选择图片保存或视频导出、格式与输出位置。1.4.1 已取消导出资格门禁和结束逐帧扫描;编码与封装失败仍报告真实错误,可取消任务。内嵌字幕暂不保留;不要让多个实例同时导出到同一个目标文件。XeSS 目前仅用于预览;视频导出使用已支持的 DLSS 路径。+“保留全部”遇到封装不支持的轨道会跳过并提示;明确指定不支持轨道则报错。可暂停、取消重试,完成可响铃。默认 VBR 8 Mbps、导出时关闭当前播放以释放 GPU,可修改。实时补帧不代表所有后端支持离线补帧,以导出页接受的配置为准。-允许自行替换 DLL:退出软件后,NVIDIA 文件放在 `runtime/experimental/`,XeSS / XeLL 放在 `runtime_local/intel/experimental/`,保留文件名。软件不锁定哈希或签名;清单仅记录发布包原件,替换版的接口与硬件兼容性不作保证。卸载整个软件只需退出后删除解压目录。+### OBS 与设置-### NR 运行版本+OBS 游戏采集前,开启 **设置 → 通用与外观 → OBS 游戏采集兼容**。立即保存,选“是”重启生效,“否”下次生效;导出时需等任务结束。兼容模式 UI 软件绘制,部分阴影/模糊简化,视频增强仍用 GPU。游戏采集抓**视频**;录完整界面用 Windows 10 (1903+) 窗口采集。-专业模式 → 增强 → NR 运行版本,可选 NVIDIA 原版、RTX 40/50 社区版或 **RTX 30 兼容 · 实验**。选择版本后再手动开启 NR。切换会短暂停顿,失败恢复上一套设置。+设置还包含语言/缩放、快捷键、GPU 监控显卡、音频设备、组件信息。反馈附显卡/驱动、素材、效果组合、发生时间及 `logs/veyra-qml.log`,崩溃附 `.dmp`;分享前检查私人信息。-两种社区组件分别在 `runtime/experimental/nr-community/` 和 `nr-ampere/`,无需覆盖原版;均为修改文件,签名状态 `HashMismatch`。三种运行版本已在 RTX5070 验证切换和 NR 执行。1.4.1 的 RTX30/40 修复经受影响用户反馈可用,具体性能与画质仍取决于显卡、素材和设置。NR 运行版本与 DLSS 补帧分别设置;RTX30/40 最高 6X 由补帧兼容层提供。+## 已知边界-### OBS 直播与录制+RTSS/游戏加加适配已撤回,OBS 开关不代表这些工具兼容。RTX 30/40 社区 NR/补帧、FSR 4 ML 实卡、部分 NR TDR/显存增长与跨设备串流仍有未验证或未解决项,详见 Release。社区运行库不代表厂商认证或完整官方 DLSS 5 集成。-添加“窗口采集”,选择 Veyra,并将“捕获方式”手动设为 **Windows 10(1903及以上)**。不要依赖“自动”:它可能选中 BitBlt,导致只捕获 UI、视频区域没有画面。本机已通过切换到该 Windows 捕获方式恢复视频。+## 架构-软件里的“直播兼容 · 实验”只切换显示交换链,不能解决 BitBlt 捕获问题,默认关闭即可。其他录屏软件优先选 Windows Graphics Capture / WGC;未验证所有录屏软件及补帧输出的捕获节奏。+```mermaid+flowchart TD+ UI[Qt Quick / QML 页面] --> Bridge[共享 Bridge / 配置 / 会话 / 预设]+ Sources[文件 / 采集卡 / PS5 / PC / Xbox / 屏幕] --> Source[FrameSource:帧、时间戳、色彩]+ Bridge --> Graph[共享 EnhanceGraph:有效处理链]+ Source --> Graph+ Graph --> Effects[多 NR / 单 SR / 调色 / Video HDR]+ Effects --> Live[实时预览:可选末端补帧]+ Live --> Present[原生 D3D12 视频窗口]+ Effects --> Export[列表离线导出 / 截图]+ Export --> Sink[编码封装 / 图片保存]+ Bridge --> Queue[导出队列:每任务配置快照]+ Queue --> Export+```-## 技术路线与边界+QML 管界面,视频由原生 D3D12 呈现。列表/节点共用引擎,未连接草稿不运行;导出不是录制预览窗口。-<img width="332" height="576" alt="123" src="https://github.com/user-attachments/assets/3cd48fca-2f7b-418a-8b0e-0848f6bde556" />+## 开源与构建--C++20、Win32、D3D12;文件由 FFmpeg 处理,采集使用 DirectShow,视频导出使用 NVENC。各入口共享增强管线,采集保留最新帧,光流提供估算的运动信息。--NR 与 DLSS 帧生成属于 **community experimental / 社区实验集成**,不是 NVIDIA 官方认证或完整游戏原生集成。采集画面没有游戏引擎的原生深度和运动数据,效果可能存在拖影或细节变化。AMD NR 暂未提供;FRUC 已移除;HDR 适用范围见下文;AV1 / ProRes 导出尚不支持。实卡兼容性与长期稳定性仍需持续验证。--## 开发与许可--[构建说明](docs/BUILD.md) · [组件清单](docs/RUNTIME_COMPONENTS_1.4.4.md) · [第三方许可](THIRD_PARTY_NOTICES.md)--Veyra 原有源码采用 [GPLv3](LICENSE);含串流的组合程序同时适用 [AGPLv3 与上游 OpenSSL 例外](licenses/remoteplay/CHIAKI_AGPL3_OPENSSL.txt)。应用源码对应版本标签,Release 另附串流依赖与 FFmpeg 对应源码包,普通用户无需下载。SDK、模型和运行时不进入源码仓库;Release 组件按各自许可与实验发布范围单独提供。--## HDR 与 5.1--<p align="center"><img src="docs/images/1.4.2/rtx-video-hdr-comparison.jpg" alt="用户提供 RTX Video HDR 关闭与开启对比" width="720"></p>-<p align="center"><small>用户拍摄对比:上图关闭,下图开启。照片仅展示该设备下的观感,不是原始 HDR 像素或显示器亮度测量。</small></p>--保留原生 HDR 能力,1.4.2 新增 SDR 转 RTX Video HDR。真实 HDR 屏、5.1 扬声器和不同采集卡仍须逐台验收。1.4.0 起采集 Dolby/DTS 可解码到 PCM,不等于压缩码流直通。--RTX Video HDR 开关在专业模式的增强设置,可调整对比度、饱和度、中间灰和峰值亮度。HDR 预览需要 HDR 显示器并开启 Windows HDR;SDR 屏保持 SDR,HDR 导出不要求 HDR 屏。这是视频版技术,不是游戏 RTX HDR。--帧同步位于专业模式 → 运动,默认关闭,可选低排队、均匀呈现、NVIDIA Reflex(实验)。补帧开启时 Reflex 回退低排队,XeSS 保持自身调度。它控制排队和呈现节奏,不提高 GPU 算力。[实测与边界](docs/FRAME_PACING_ACCEPTANCE_2026-09-18.md)。--- **HDR 输入 / 增强**:文件、P010/P016 采集与 PS5 HDR;支持明确标记的 BT.2020 NCL / PQ 或 HLG。Windows HDR 开启时,可组合 NR、DLSS SR / RTX Video SR、DLSS / XeSS 补帧。NR / Video SR 使用 SDR 代理和 HDR 基底合成,压缩高光和近黑区域的增强会衰减;不把 SDR 结果逆造为原始 HDR。HLG 使用 1000nit / gamma 1.2 参考转换。-- **SDR 显示开关**:采集卡面板的“转为 SDR 显示”默认关闭,控制所有实时预览。打开后将 HDR 映射为 SDR,增强照常可用;播放中切换无需重连,可能短暂停顿。关闭后跟随显示器 HDR 状态。截图跟随当前画面,视频导出保持原有 HDR 规则。-- **采集颜色**:默认使用设备元数据。设备漏报时,在采集面板选择手动 PQ 或 HLG,且必须选择 P010/P016。10bit 本身不代表 HDR;RGB / YUY2 HDR 及 BT.2020 constant-luminance 暂不支持。-- **HDR 导出 / 截图**:视频选择 HEVC,输出 Main10 / BT.2020 / PQ;HLG 也统一输出 PQ。支持 NR、超分和内部 DLSS 补帧。XeSS 仍只支持预览;H.264 不承载此 HDR 导出。截图为 FP16 scRGB JPEG XR。导出不虚构或沿用处理前的峰值元数据;普通 PNG/JPEG 保持 SDR。-- **5.1 音频**:文件解码与采集 PCM 保留声道位置,共用一套音频时钟、补偿和音量处理。采集优先尝试设备真实提供的多声道模式。Windows 输出设备须配置成 5.1;仅支持立体声时明确降混,在详细状态中显示输入 / 输出声道数。PS5 保持上游提供的立体声,不伪装成 5.1;本轮不提供 Dolby/DTS 压缩码流直通或 Atmos 对象音频。--本机 RTX 5070 已验证 GPU 输出、HDR 文件导出及多声道软件数据;真实 HDR 屏观感、5.1 扬声器定位和各采集卡仍需实机验收。各组合记录及边界见 [施工记录](docs/HDR_MULTICHANNEL_EXECUTION_2026-09-14.md)。新安装默认仍关闭全部效果。--## 致谢--感谢 [Magpie Experimental](https://github.com/SAOG0721/Magpie/tree/experimental) 在 NR 残差合成、光流与增强处理链方面提供的研究启发;感谢 [chiaki-ng](https://github.com/streetpea/chiaki-ng) 提供 PS5 串流基础,以及 [XeSS-GPU-Motion](https://github.com/gggz114514-oss/XeSS-GPU-Motion) 的 GPU DIS 光流实现。--其他依赖、来源与许可证见 [第三方说明](THIRD_PARTY_NOTICES.md)。+Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.0 构建与对应源码](docs/BUILD_2.0.0.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。## 支持与反馈-如果这个项目帮到了你,可以请作者喝杯咖啡(微信扫码);有问题或想第一时间拿到 beta 版,欢迎进群反馈。-<p align="center">- <img src="docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220"> - <img src="docs/images/1.4.4/community-group.png" alt="Veyra 交流群 / bug 反馈 / beta 测试" width="220">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220"></p>-<p align="center"><small>左:微信赞助(自愿,不影响任何功能的可用性) 右:Veyra 交流群——bug 反馈与 beta 版本发布</small></p>++左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。diff --git a/README_EN.md b/README_EN.mdindex 58264000..f212e76b 100644--- a/README_EN.md+++ b/README_EN.md@@ -1,188 +1,120 @@# Veyra-<p align="center"><img src="assets/veyra-logo.png" alt="Veyra" width="200"></p>+<p align="center"><img src="assets/veyra-app-icon.png" alt="Veyra" width="160"></p>-English | [简体中文](README.md)+[简体中文](README.md) | English-<p align="center">- <a href="https://github.com/Likely7/Veyra-NRVideo/blob/main/REAMDE%20MP4.mp4">- <img src="assets/readme-demo.gif" alt="Veyra demo video" width="960">- </a>-</p>--<p align="center">The demo plays automatically; click it to open the original MP4.</p>--A Windows video player and capture-card enhancement tool. Play videos, process images, and preview capture devices with optional super resolution, NR enhancement, and frame generation.--[Download 1.4.4 Portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.4) · [Release Notes](docs/RELEASE_NOTES_1.4.4.md) · [Report an Issue](https://github.com/Likely7/Veyra-NRVideo/issues)--## 1.4.4 Update--**Frame-generation flicker:** all three independent causes are fixed. File-playback frame skips, repeated presents and capture drops no longer wipe the NR / frame-generation temporal history, which used to force a provider warm-up every time.--**Frame pacing redesigned:** the three mode selectors that measured identically are gone, replaced by three independent controls (low-latency queue, display sync, output cap). The **output cap now decides how many frames are actually generated** instead of dropping finished ones (native DLSS 6X: generated frames −71%, power 221→174 W; the true-upscale tier only drops about 4 W). The frame-generation page also gains a strict FG-cadence switch (default off = the 1.4.0 admission rule), and the row that used to overlap its neighbours is fixed.--**Capture:** fixed the format mix-up behind "selected 1080p YUY2 but opened 4K RGB24"; added input color-space / range selection plus an Elgato 4K60 Pro MK.2 HDR metadata path, along with callback, buffer-pool and audio-endpoint recovery hardening.+<p align="center"><img src="docs/images/2.0.0/professional-mode.png" alt="Veyra 2.0.0 professional mode" width="1200"></p>-**UI and subtitles:** fixed white ghosting and duplicated rows when scrolling the professional panel quickly; re-laid out the enhancement and frame-generation pages; subtitles keep their configured size instead of shrinking when they wrap to two lines; fullscreen can be locked so mouse movement no longer pops the control bar.+A Windows enhancement player for videos, images, capture cards and streaming. Super-resolution, NR, colour grading, RTX Video HDR and frame generation share one engine. Community enhancements remain experimental.-**Known limits:** true-upscale 1080p→4K with NR still shows long gaps at DLSS 4X/6X, and XeSS 4X continuity under heavy load is still open. Submitted FPS is not physical display refresh or a guarantee of smooth motion; this release does not claim the FG limitation is fully resolved. See the [complete changes, measurements and known issues](docs/RELEASE_NOTES_1.4.4.md).+[Download 2.0.0 portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.0) · [Full changelog: Chinese / English](docs/RELEASE_NOTES_2.0.0.md) · [Issues](https://github.com/Likely7/Veyra-NRVideo/issues)-## Features+## Highlights-| Feature | Options |-| --- | --- |-| Playback and capture | H.264 / HEVC / AV1 and compatible MOV/ProRes video, PNG / JPEG images, DirectShow / UVC capture cards |-| Super resolution | DLSS SR and RTX Video SR; 1440p / 4K / 8K targets with aspect ratio preserved |-| NR enhancement | Experimental NVIDIA NR; realtime and native modes, style, intensity, and region protection |-| Frame generation | DLSS up to 6X; experimental XeSS preview with runtime-supported multipliers |-| Smooth Motion | NVIDIA App driver-based frame generation, enabled manually; in-app setup guide |-| Controls | Live settings, restore defaults, original/processed comparison, split view, preview zoom |-| Export | PNG / JPEG images; NVENC H.264 / HEVC video |-| Diagnostics | Completed source/generated frames, presentation submissions, stage timings, software latency |+- **Rebuilt interface:** Home, Cinema, Professional List, Nodes, Colour, Export and Settings; Simplified/Traditional Chinese, English and Japanese.+- **Node editing and layered NR:** executable connections, independent NR/colour parameters, separate List/Node configurations, sessions and presets.+- **PC / Xbox streaming:** Moonlight/Sunshine-compatible PC streaming and unofficial experimental Xbox support, alongside PS5, capture cards and screen capture.+- **New export workflow:** editable ordered queue, trimming, MP4/MKV, multiple audio/embedded subtitle tracks, cancellation/retry and completion sound.+- **Enhancement and compatibility:** two NR runtime choices, DLSS/XeSS/FSR options, capture improvements and a persistent OBS Game Capture switch with restart confirmation. Full details are in the Release.-Daily mode focuses on watching. Professional mode expands the controls, diagnostics, and export tools without reopening the video. The application currently uses a Chinese interface.+## Install and upgrade-Features introduced in 1.2.0 include HDR file/capture enhancement, HDR10 export and HDR screenshots, retained 5.1 PCM, and a live Convert to SDR display switch. Fresh installations still disable all enhancements. Affected users have confirmed the 1.4.1 RTX30/40 repairs; other hardware combinations require individual testing.+Download **Veyra-2.0.0-win64-portable.zip**, extract into a new writable folder and run **veyra_qml_ui.exe**. Source archives are for developers. Windows 11 x64 and DirectX 12 are required; Qt and approved runtimes are included, while GPU/capture drivers are installed separately. Backend hardware requirements vary; most local tests used an RTX 5070.-## Download and Run+Start with effects off, check picture/sound, then enable effects individually. High resolution, layered NR and frame generation increase GPU/VRAM requirements.-1. Download **Veyra-1.4.4-win64-portable.zip** from [Releases](https://github.com/Likely7/Veyra-NRVideo/releases). The Source code archives are for developers.-2. Extract the entire archive into a writable directory and run **Veyra.exe**. No SDK, Python, or development tools are needed.- NR, upscaling and internal frame generation start disabled. Enable them as needed; importing old preferences restores their switches.-3. Use a current GPU driver. NVIDIA NR, DLSS, RTX Video SR, and NVENC require compatible NVIDIA RTX hardware; this version was primarily tested on an RTX 5070.+**The 1.4.4 UI guide is obsolete.** Version 2.0 uses separate settings. Retain the old version for rollback; do not overwrite the new package with old `veyra.ini`, an entire `runtime_local` folder or mixed DLLs.-Requirements: Windows 11 x64 and DirectX 12. Required application runtimes are included; GPU and capture-device drivers are supplied by the system. 8K upscaling and native-resolution enhancement need more VRAM and may not run in real time.+## Using 2.0-To upgrade, close the old version and extract into a new directory. To retain settings, copy the old `runtime_local/*.v1` files and `veyra.ini`. Do not overwrite the new runtime directories with the old ones.+### Sources and pages-## PS5 Streaming+Home offers files, capture card, PS5, PC, Xbox and screen capture. Files/images can also be dropped into the window. Move to the bottom edge to reveal navigation between Home, Cinema, Professional, Colour, Export and Settings.-1. Connect the PS5 and PC to the same LAN, preferably by Ethernet. Enable **Settings → System → Remote Play** on the console.-2. Open **PS5** in Veyra and search. If discovery fails, enter the IPv4 address from **Settings → Network → Connection Status → View Connection Status**.-3. Enter the **PSN Account ID**, not a nickname or Online ID. Experimental PSN sign-in opens Sony's website. Complete sign-in, copy the final redirect URL, then submit it through Veyra's clipboard button.-4. Initial pairing still requires the eight-digit code from **Remote Play → Link Device**. Afterwards select the saved console and connect without pairing again.-5. Connect the gamepad to the **PC**; USB is preferred for DualSense. Touchpad, gyro, vibration and adaptive triggers depend on device, connection and game. View-only disables PC input forwarding; it does not guarantee same-account coexistence with a PS5-connected controller.+- Cinema prioritises the picture with a floating source/transport/audio/fullscreen bar, optionally hidden in settings.+- Professional List has Picture, Frame generation, Colour, Sound and Display tabs. The order strip locates effects; bottom panels report source/output, GPU stage time and load.+- Click a file's picture to pause/resume; left/right arrows seek five seconds. Double-click or use the fullscreen button. The fullscreen top-edge bar switches Cinema/Professional; **Home** opens quick controls in fullscreen List mode, **Ctrl+L** locks controls. Shortcuts are configurable.+- Use Screenshot and the preset menu to save pictures and personal settings. No imposed built-in quality presets.-Stream input is up to 1080p. 2K / 4K / 8K are local upscaling targets. H.264 / H.265 and 5–100Mbps bitrate requests are available; console output may differ. Auto decoding tries hardware then software; manual choices are available.+### List mode-Pairing and PSN credentials are encrypted in **%LOCALAPPDATA%/Veyra/remoteplay**, bound to the Windows user and retained across upgrades. Do not share this directory. Signing out retains console pairing. Pinless first registration and Internet streaming are not implemented.+Select List at the top of Professional. Enable SR, NR or RTX Video HDR as needed. Up to four NR layers have independent internal resolution, strength and parameters. The master switch disables all layers and restores their previous enabled states.-**Experimental HDR:** Windows HDR output can retain HDR with NR, SR and FG enabled. NR / RTX Video SR process an SDR proxy and composite changes onto the retained HDR base; this is not a native HDR NR model. SDR displays still use tone mapping. Real PS5 HDR and Sony authorization need further validation.+List mode's global NR protection region excludes every NR layer inside it while retaining non-NR effects, useful for HUDs/subtitles. Colour controls include basic adjustments, curves, mixer, wheels, LUTs and colour presets.-## Quick Guide+Choose a supported FG backend/multiplier and check cadence, display sync, low-queue mode and output cap. Original/enhanced comparison temporarily pauses FG; leaving it resumes FG. Submitted FPS is not physical display FPS or end-to-end latency.-### Videos and Images+### Node mode — build a processing chain-Choose Open on the bottom bar. Playback, seeking, volume, subtitles, and fullscreen are available there. In Professional mode, use the mouse wheel over the picture to zoom.+Select Nodes at the top of Professional. This is an executable chain editor:-### Capture Cards+1. Keep a valid connected path from input to output. Right-click blank canvas or choose Add node.+2. Drag an output port to an input port, or click the two ports in order. Drop a node on a wire to insert; drag it away or release with **Alt** held to disconnect.+3. Edit parameters inside nodes. NR/colour nodes have independent settings and supported positions before/after SR. Right-click to delete, duplicate or reset. A duplicate is an independent **disconnected copy** until connected.+4. **Middle-drag to pan, wheel to zoom.** Fit/auto-layout organise the graph. “Draft not running” means invalid/disconnected edits, not that every visible node executes.+5. Optical flow is shared after input; SR is a single instance. RTX Video HDR stays before final FG; select one DLSS/XeSS/FSR backend. This is not an arbitrary branching/mixing graph.+6. List and Node settings, presets and sessions are separate. Returning to List restores its settings and retains the node graph. Switching rebuilds processing and may briefly pause the picture.-1. Connect the device and close other applications using the same capture card.-2. Choose Capture, then select the device, resolution, frame rate, pixel format, and audio input.-3. In Audio monitoring, choose a `[DirectShow]` device or an explicit `[WASAPI]` endpoint; the default is no audio monitoring. WASAPI stores the Windows endpoint ID and connects only to the selected input; it does not fall back to a microphone or system loopback.-4. Confirm the picture with enhancement disabled, then enable NR, upscaling, or frame generation. Try YUY2 / NV12 when the device offers the same desired mode.-5. For a 30fps console game carried over 60fps capture, select the 60-to-30 content cadence setting in Professional mode. Keep the original cadence for actual 60fps content.+**2.0.0 Node mode does not support offline export or List mode's global NR protection region.** Switch to List and verify its effects before exporting; graphs are not silently converted.-### Enhancement and Frame Generation+### Capture and streaming-Enable NR, super resolution, and frame generation independently in Professional mode. Select the upscaling method and target size beneath the super-resolution switch. The frame-generation page offers DLSS / XeSS and the supported multipliers.+| Source | Setup |+|---|---|+| Capture card | Select device, format, resolution, rate and audio input. Close competing apps. Match PQ/HLG/709 and Limited/Full to the signal. Magewell Pro Capture has a dedicated low-latency option. |+| PS5 | Enable Remote Play, discover/enter IP, use PSN Account ID and the console's eight-digit pairing code; reconnect saved hosts. |+| PC | Install/configure Sunshine yourself; discover/add the host, PIN-pair, select app/desktop and connect. Sunshine is not bundled. |+| Xbox | Follow device-code sign-in and select a console with remote features enabled. Unofficial/experimental; account, service and console restrictions apply. |+| Screen | Select a window/display; avoid recursively capturing Veyra itself. |-Start with realtime NR, a lower RTX Video SR quality, and 2X frame generation. Compare the image and watch the diagnostics. Reduce quality, multiplier, or target size if processing falls behind. The main chart reports enhancement GPU processing time; estimated extra picture delay is separate in the detailed view. Frame generation does not reduce game input latency.+Pausing capture/streaming freezes the preview while keeping the session, not the host game. Physical hardware, networks, HDR and controllers need individual validation.-Audio synchronization follows the software processing chain without counting the capture card's shared input delay twice. Small timing fluctuations no longer stop audio on each frame. Sustained GPU overload skips expired preview opportunities while audio and media time continue; reduce workload to retain more video frames.+### Export-Hover over settings for help. Default order is Upscale → NR → Frame generation. Optional Low latency mode uses NR → Upscale → Frame generation for preview only; it may reduce cost but increase ghosting or edge artifacts.+Use **List mode**, confirm effects, then open Export. Add/reorder files, edit individual jobs, trim, select MP4/MKV and encoding quality, and keep all or selected audio/subtitle tracks.-### Smooth Motion (NVIDIA App)+Keep all skips unsupported tracks with a notice; explicitly choosing an incompatible track is an error. Pause/cancel/retry and completion sound are available. Defaults are VBR 8 Mbps and closing playback on export to free GPU resources, both adjustable. Live FG does not imply every backend supports offline FG; follow accepted export settings.-To use Smooth Motion alone, set Veyra's frame-generation multiplier to **Off**, then enable **Smooth Motion** for the current **Veyra.exe** in **NVIDIA App → Graphics** and restart the player. NR and super resolution can stay enabled. The professional frame-generation panel includes an expandable guide.+### OBS and settings-For internal DLSS / XeSS only, disable Smooth Motion in NVIDIA App and restart before selecting internal generation. Stacking both is also allowed without blocking; its quality and performance have not been validated, and ghosting, latency or GPU load may increase. Veyra's generation and master-enhancement switches do not disable driver generation.+For OBS Game Capture, enable **Settings → General & appearance → OBS Game Capture compatibility**. Saved immediately: Yes restarts now; No applies next launch. Finish exports before restarting. Software UI rendering simplifies some shadows/blur; video enhancement stays on GPU. Game Capture targets **video**; use Windows 10 (1903+) Window Capture for the whole UI.-Software FPS, timings and queues exclude driver-generated work. Screenshots and exports do not include driver-generated intermediate frames. A/V timing and recording capture require separate verification. A user reported effective, stable operation on this machine; this is not validation of every GPU or driver.+Settings include language/scale, shortcuts, monitoring GPU, audio devices and component info. Report GPU/driver, media, effects, time and `logs/veyra-qml.log`; include a crash `.dmp` if available. Review private data before sharing.-### Export and Runtime Replacement+## Limitations-Use Professional mode to save an image or export a video, then choose the format and destination. XeSS is preview-only; supported video frame-generation export uses DLSS.+RTSS/GamePP adaptation was cancelled; the OBS switch does not certify their compatibility. RTX 30/40 community NR/FG, FSR 4 ML hardware, some NR TDR/VRAM-growth reports and cross-device streaming retain unresolved/unverified cases. See the Release. Community runtimes are not vendor certification or a complete official DLSS 5 integration.-You may replace DLLs while Veyra is closed. NVIDIA components belong in `runtime/experimental/`; XeSS / XeLL belong in `runtime_local/intel/experimental/`. Keep the filenames. Veyra does not enforce hash or signature locks; manifests describe the shipped files only. Replacement versions may have incompatible APIs or hardware requirements. To uninstall, close Veyra and delete its extracted directory.+## Architecture-### NR Runtime Selection--In Professional mode, select the NVIDIA original, community RTX40/50, or **RTX30 compatibility · Experimental** runtime, then enable NR. Switching briefly interrupts playback; failed changes restore the previous configuration. Community variants are included separately in `runtime/experimental/nr-community/` and `nr-ampere/`; both have Authenticode status `HashMismatch`.--All three runtime paths were tested on RTX5070. Affected users report the 1.4.1 RTX30/40 repairs working; performance and image quality depend on the GPU, content and settings. NR runtime selection is separate from DLSS frame generation. A dedicated FG compatibility layer provides up to 6X on RTX30/40.--### OBS Streaming and Recording--Add a **Window Capture** source, select Veyra, and explicitly set **Capture Method** to **Windows 10 (1903 and up)**. Automatic may choose BitBlt, capturing the controls but missing the GPU-rendered video. Switching to the Windows capture method restored video in the reported local test.--Veyra's experimental broadcast compatibility switch only changes the presentation swapchain; it does not fix BitBlt capture. Leave it off unless testing a specific capture issue. In other recording applications, prefer Windows Graphics Capture / WGC. Compatibility with every recorder and the capture cadence of generated frames have not been verified.--## Technical Approach and Limits--```text-Video / image / capture card / PS5 -> color handling -> SR -> NR -> frame generation -> display / export+```mermaid+flowchart TD+ UI[Qt Quick / QML pages] --> Bridge[Shared Bridge / settings / sessions / presets]+ Sources[Files / capture / PS5 / PC / Xbox / screen] --> Source[FrameSource: frames, timestamps, colour]+ Bridge --> Graph[Shared EnhanceGraph: valid chain]+ Source --> Graph+ Graph --> Effects[Multiple NR / single SR / colour / Video HDR]+ Effects --> Live[Live preview: optional final FG]+ Live --> Present[Native D3D12 video window]+ Effects --> Export[List offline export / screenshots]+ Export --> Sink[Encoding and muxing / image files]+ Bridge --> Queue[Export queue: per-job settings snapshot]+ Queue --> Export```-C++20, Win32, and D3D12. FFmpeg handles media files, DirectShow handles capture, and NVENC handles video encoding. Inputs share one enhancement graph; capture retains the latest frame, and optical flow supplies estimated motion.--NR and DLSS frame generation are **community-experimental integrations**, not NVIDIA certification or complete native game integration. Captured pixels lack game-engine depth and motion data; ghosting and altered detail are possible. AMD NR is unavailable, FRUC has been removed, and AV1 / ProRes export are unsupported; development HDR support is scoped below. Capture compatibility and long-term stability remain under testing.--## Development and License+QML renders UI; native D3D12 renders video. List/Nodes share the engine, disconnected drafts do not execute, and export does not record the preview window.-[Build Instructions](docs/BUILD.md) · [Runtime Components](docs/RUNTIME_COMPONENTS_1.4.4.md) · [Third-Party Notices](THIRD_PARTY_NOTICES.md)+## Source and build-Original Veyra source is [GPLv3](LICENSE); the combined streaming program also falls under [AGPLv3 and the upstream OpenSSL exception](licenses/remoteplay/CHIAKI_AGPL3_OPENSSL.txt). Application source matches the release tag. The combined source ZIP includes RemotePlay and patched FFmpeg dependency source archives; it is not needed to run the player. SDKs, models, and runtimes are excluded from this source repository. Release components retain their separate licenses and experimental distribution boundaries.+Original code: GPL-3.0. The combined Chiaki streaming application is also subject to AGPL-3.0 and its OpenSSL exception (licenses/remoteplay). [Third-party notices](THIRD_PARTY_NOTICES.md), [2.0.0 build/source](docs/BUILD_2.0.0.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.-Stage cards and the main chart report enhancement GPU processing times. Extra picture delay is estimated separately in the detailed view; neither is measured button-to-screen latency. Files can be processed ahead. Sustained overload skips expired preview frame opportunities to keep media time advancing and audio continuous; export retains complete processing.--### Experimental GPU DIS motion--Select GPU DIS · FAST in the optical-flow menu to compare results. NVOF remains-the default. This implementation was substantially slower than NVOF on our RTX-5070 in a 1080p synthetic test; a performance improvement is not promised.--Version 1.4.1 removes export qualification gates and the final frame-by-frame-scan; encoding and muxing errors are still reported. Embedded subtitles are not preserved. Avoid simultaneous exports from-multiple instances to the same target file.--In Professional mode, click **Screenshot** in the top toolbar to save the latest processed full-resolution picture under **Pictures / Veyra Screenshots**: PNG for SDR and floating-point JPEG XR (`.jxr`) for HDR output. Use an HDR-capable viewer. Application UI and window zoom are excluded.--## HDR and 5.1--<p align="center"><img src="docs/images/1.4.2/rtx-video-hdr-comparison.jpg" alt="User RTX Video HDR off/on comparison" width="720"></p>-<p align="center"><small>User camera comparison: top off, bottom on. This illustrates one setup; it is not raw HDR pixels or a luminance measurement.</small></p>--Native HDR support is retained. Version 1.4.2 adds SDR conversion using RTX Video HDR. Since 1.4.0, supported Dolby/DTS capture streams can be decoded to PCM; this is not compressed bitstream passthrough. Individual HDR displays, 5.1 endpoints, and capture cards still require hardware acceptance.--Enable RTX Video HDR under Professional mode > Enhancement, with contrast, saturation, middle gray and peak brightness controls. HDR preview requires an HDR display with Windows HDR enabled; SDR displays retain SDR, and HDR export needs no HDR display. This is the video technology, not game RTX HDR.--Frame pacing under Professional mode > Motion defaults to Off. Choose Low Queue, Uniform Presentation or experimental NVIDIA Reflex. With FG, Reflex falls back to Low Queue; XeSS retains provider scheduling. These options control queuing and cadence, not GPU throughput. See the [latency report](docs/FRAME_PACING_ACCEPTANCE_2026-09-18.md).--- Files, P010/P016 capture and PS5 can use explicitly described BT.2020 NCL PQ/HLG input. Windows HDR enables retained HDR output with NR, DLSS SR / RTX Video SR and DLSS / XeSS FG. NR / Video SR use an SDR proxy plus the retained HDR base, with reduced changes near black and compressed highlights. This is not native HDR NR inference. HLG uses a 1000-nit, gamma-1.2 reference conversion.-- Capture defaults to device color metadata. Manual PQ / HLG is available for devices that omit it, requiring P010/P016. Ten-bit storage alone does not identify HDR. RGB/YUY2 HDR and BT.2020 constant-luminance input are unsupported.-- HDR video export uses HEVC Main10 / BT.2020 / PQ, including HLG-to-PQ conversion and optional NR, SR and internal DLSS FG. XeSS remains preview-only. HDR export requests with H.264 selected use HEVC Main10. HDR screenshots use lossless scRGB FP16 JPEG XR. Original mastering/peak metadata is not invented or reused after processing.-- File and capture PCM preserve speaker positions through one audio clock, compensation and volume path. Capture tries actual multichannel device formats first. Configure the Windows endpoint for 5.1; stereo endpoints receive an explicit downmix. Detailed status reports input/output channel counts. PS5 remains stereo. Compressed Dolby/DTS passthrough and Atmos object audio are not implemented.--RTX 5070 GPU output, HDR export and software channel isolation have local test evidence. HDR display appearance, real 5.1 speaker positioning and individual capture cards require hardware acceptance. See the [execution record](docs/HDR_MULTICHANNEL_EXECUTION_2026-09-14.md). Fresh-install effects remain off.--The capture panel also offers **Convert to SDR display**, off by default. It controls all live previews, maps HDR to SDR without changing input metadata or disabling enhancement, and can be toggled during playback without reconnecting. Disabling it follows the display HDR state. Screenshots follow the preview; video export retains its existing HDR policy.--## Acknowledgments--Thanks to [Magpie Experimental](https://github.com/SAOG0721/Magpie/tree/experimental) for research insights into NR residual composition, optical flow, and enhancement pipelines; to [chiaki-ng](https://github.com/streetpea/chiaki-ng) for the PS5 streaming foundation; and to [XeSS-GPU-Motion](https://github.com/gggz114514-oss/XeSS-GPU-Motion) for its GPU DIS optical-flow implementation.--See [Third-Party Notices](THIRD_PARTY_NOTICES.md) for other dependencies, sources, and licenses.--## Support and feedback--If this project helped you, you can buy the author a coffee (WeChat QR below). For bugs, or to get beta builds first, join the group.+## Support<p align="center">- <img src="docs/images/1.4.0/donate-wechat.jpg" alt="WeChat donation" width="220">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="WeChat donation" width="220"> - <img src="docs/images/1.4.4/community-group.png" alt="Veyra community group / bug reports / beta builds" width="220">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra community group 4" width="220"></p>-<p align="center"><small>Left: WeChat donation (voluntary; no feature is ever gated behind it) - Right: Veyra community group for bug reports and beta builds.</small></p>++Left: optional donation, no feature restrictions. Right: community group; QR valid **before 2026-10-09** as shown. Check repository updates after expiry.diff --git a/apps/veyra-qml/main.cpp b/apps/veyra-qml/main.cppindex 229f857f..8a6b4f24 100644--- a/apps/veyra-qml/main.cpp+++ b/apps/veyra-qml/main.cpp@@ -11,6 +11,11 @@// window to match. That keeps the layout in QML (where it belongs) and the// pixels in D3D12 (where the latency budget lives).#include <QApplication>+#include <QProcess>+#include <QIcon>+#include <QImage>+#include <QPixmap>+#include "../veyra/resource.h"#include <QQmlApplicationEngine>#include <QQmlContext>#include <QQuickItem>@@ -360,7 +365,7 @@ LONG WINAPI crashFilter(EXCEPTION_POINTERS* info) {}} // namespace-int main(int argc, char** argv) {+static int runApplication(int argc, char** argv, QString& restartProgram, QStringList& restartArgs) {// ExportJobManager relaunches the owning executable with an inherited mapping.// Dispatch before Qt or the video HWND exists, as the Win32 shell does.if (argc > 1 && std::strcmp(argv[1], "--export-worker") == 0) {@@ -393,16 +398,24 @@ int main(int argc, char** argv) {// preference file is read here, from the same data directory the bridge uses.// "Auto" leaves Qt following the Windows display scale.int uiScale = 0;+ bool obsGameCapture = false;{int count = 0;LPWSTR* args = CommandLineToArgvW(GetCommandLineW(), &count);std::filesystem::path dir = veyra::runtime::localDataDirectory() / L"user-data-2.0.0";- for (int i = 1; args && i + 1 < count; ++i)- if (std::wstring(args[i]) == L"--data-dir") dir = args[i + 1];+ bool obsGameCaptureArg = false;+ for (int i = 1; args && i < count; ++i) {+ if (std::wstring(args[i]) == L"--data-dir" && i + 1 < count) dir = args[++i];+ else if (std::wstring(args[i]) == L"--obs-game-capture") obsGameCaptureArg = true;+ }if (args) LocalFree(args);QFile prefs(QString::fromStdWString((dir / L"qml-preferences.v1.json").wstring()));- if (prefs.open(QIODevice::ReadOnly))- uiScale = QJsonDocument::fromJson(prefs.readAll()).object().value(QStringLiteral("uiScale")).toInt();+ if (prefs.open(QIODevice::ReadOnly)) {+ const auto saved = QJsonDocument::fromJson(prefs.readAll()).object();+ uiScale = saved.value(QStringLiteral("uiScale")).toInt();+ obsGameCapture = saved.value(QStringLiteral("obsGameCapture")).toBool();+ }+ obsGameCapture = obsGameCapture || obsGameCaptureArg;if (uiScale == 100 || uiScale == 125 || uiScale == 150) {qputenv("QT_ENABLE_HIGHDPI_SCALING", "0");qputenv("QT_SCALE_FACTOR", QByteArray::number(uiScale / 100.0));@@ -411,14 +424,38 @@ int main(int argc, char** argv) {uiScale = 0;}}+ // OBS 32.1.2 shares capture state across DXGI swapchains. Keeping Qt off+ // DXGI prevents its resize/destruction from freeing the video's capture+ // resources on another thread. This opt-in affects UI drawing only;+ // the native D3D12 video and enhancement pipeline are unchanged.+ if (obsGameCapture) {+ QQuickWindow::setSceneGraphBackend(QStringLiteral("software"));+ veyra::log::info("app", "OBS game capture compatibility: software UI; native D3D12 video unchanged");+ }QApplication app(argc, argv);+ // Qt does not automatically use the executable's Win32 icon for its windows.+ // Load the same embedded multi-size resource for the taskbar and Alt+Tab.+ QIcon appIcon;+ for (const int size : {16, 20, 24, 32, 40, 48, 64, 96, 128, 256}) {+ const auto handle = static_cast<HICON>(LoadImageW(GetModuleHandleW(nullptr),+ MAKEINTRESOURCEW(IDI_VEYRA), IMAGE_ICON, size, size, 0));+ if (!handle) {+ veyra::log::error("app-icon", std::format("LoadImageW size={} error={}", size, GetLastError()));+ continue;+ }+ const auto image = QImage::fromHICON(handle);+ DestroyIcon(handle);+ if (!image.isNull()) appIcon.addPixmap(QPixmap::fromImage(image));+ }+ app.setWindowIcon(appIcon);+ veyra::log::info("app-icon", std::format("embedded window icon sizes={}", appIcon.availableSizes().size()));// The interface draws with Direct3D 12, like the video. Qt's default is Direct3D 11,// and a D3D11 device in the process changed how overlays treat it: RivaTuner (MSI// Afterburner) then crashed in d3d11.dll inside its own hooks while drawing its OSD on// the XeSS swapchain through D3D11On12 (field dumps 2026-10-01). 1.4.4 drew its UI with// GDI and had no D3D11 device; the overlays coexisted. VEYRA_UI_RHI=d3d11 restores// Qt's default; without a usable D3D12 device Qt keeps it too.- {+ if (!obsGameCapture) {wchar_t forced[16]{};GetEnvironmentVariableW(L"VEYRA_UI_RHI", forced, 16);const bool wantD3d11 = _wcsicmp(forced, L"d3d11") == 0;@@ -429,6 +466,7 @@ int main(int argc, char** argv) {}app.setProperty("veyraLogFile", QString::fromStdWString(logPath.wstring()));app.setProperty("veyraUiScale", uiScale);+ app.setProperty("veyraObsGameCapture", obsGameCapture);// Frameless windows have no menu, yet DefWindowProc turns a bare Alt tap into// SC_KEYMENU and enters modal menu tracking: the next mouse click is eaten and// input stalls for about two seconds. Qt has already handled the key itself@@ -800,6 +838,30 @@ int main(int argc, char** argv) {// be verified end to end by a test rather than by a person clicking around;// it is not a user-facing feature.const int rc = app.exec();+ if (rc == 42) {+ restartProgram = QCoreApplication::applicationFilePath();+ // Preserve the selected profile, not transient capture/open/test flags.+ const auto args = QCoreApplication::arguments();+ for (int i = 1; i + 1 < args.size(); ++i) {+ if (args[i] == QStringLiteral("--data-dir")) {+ restartArgs << args[i] << args[i + 1];+ ++i;+ }+ }+ restartArgs << QStringLiteral("--page") << QStringLiteral("set");+ }if (g_video) { DestroyWindow(g_video); g_video = nullptr; }return rc;}++int main(int argc, char** argv) {+ QString program;+ QStringList arguments;+ const int result = runApplication(argc, argv, program, arguments);+ if (result != 42) return result;+ // Player, QML engine and QApplication have all been destroyed.+ if (QProcess::startDetached(program, arguments)) return 0;+ MessageBoxW(nullptr, L"设置已保存,但自动重启失败。请重新打开软件。\nSettings saved. Automatic restart failed; please reopen Veyra.",+ L"Veyra", MB_OK | MB_ICONERROR);+ return 1;+}diff --git a/assets/veyra-app-icon.png b/assets/veyra-app-icon.pngnew file mode 100644index 00000000..3489680dBinary files /dev/null and b/assets/veyra-app-icon.png differdiff --git a/assets/veyra.ico b/assets/veyra.icoindex f6130c12..a606305b 100644Binary files a/assets/veyra.ico and b/assets/veyra.ico differdiff --git a/docs/BUILD_2.0.0.md b/docs/BUILD_2.0.0.mdnew file mode 100644index 00000000..5bc77316--- /dev/null+++ b/docs/BUILD_2.0.0.md@@ -0,0 +1,33 @@+# Veyra 2.0.0 build and corresponding source++The portable application is `veyra_qml_ui.exe`, C++20, Windows x64, Qt Quick 6.8.3 with native D3D12 video. Legacy Win32 sources remain for history/tools; they are not the new UI executable.++## Sources and licences++Download both `Veyra-2.0.0-source.zip` and `Veyra-2.0.0-dependency-source.zip` from the same Release. The first is the tagged application source; the second contains the unchanged, hash-verified patched FFmpeg/dav1d and Remote Play source archives previously supplied with 1.4.4, plus Moonlight and its recursive submodules, Xbox WebRTC dependencies/patches/ports, OpenSSL, Qt 6.8.3 source modules and SBOM, and FidelityFX 2.3.0 source. Historical archive version names identify provenance, not a request to build the old application. See each source manifest for hashes.++Veyra's original code is GPL-3.0. The combined application with Chiaki Remote Play is also subject to AGPL-3.0 and its OpenSSL exception; retain `licenses/remoteplay/CHIAKI_AGPL3_OPENSSL.txt`. Qt is dynamically linked and replaceable; LGPL/GPL and bundled third-party notices are supplied. Xbox libdatachannel/libjuice use MPL-2.0; Moonlight is GPL-3.0. See THIRD_PARTY_NOTICES and the dependency archives, not this summary alone, for exact terms.++Qt sources are from https://download.qt.io/archive/qt/6.8/6.8.3/submodules/ and verified against published SHA256 files. No Qt library patch was applied. The source modules include their configure/build scripts; shipped binary SBOMs record the Qt build configuration/provenance. Build an ABI-compatible shared Qt and replace the app-local DLLs/plugins for relinking/debugging modifications.++## Toolchain and dependencies++- Visual Studio 2022 x64 C++ build tools, Windows SDK, CMake/Ninja and Python for build-time source checks. Qt 6.8.3 MSVC2022 x64 (Qt Quick/Controls, Widgets, Network, SVG).+- Patched FFmpeg 9.0.1 with dav1d: follow `scripts/ffmpeg/README.md`, preserve the 32→256 H.264 slice patch and verify `veyra-local-build.json`. Do not substitute stock FFmpeg merely because DLL names match.+- Remote Play: `scripts/remoteplay/dependency-lock.json`, its stage/patch scripts and `cmake/VeyraRemotePlay.cmake`. Source archive includes pinned Chiaki with recursive dependencies and the required metadata/MSVC patches.+- Moonlight: `scripts/moonlight/dependency-lock.json`, `verify-moonlight-stage.py`, pinned moonlight-common-c plus ENet/nanors. Build shared OpenSSL dependency consistently with other static libraries.+- Xbox: `scripts/xbox/dependency-lock.json`, `scripts/xbox/vcpkg-overlay` including libjuice IPv4 wake-up patch, x64-windows-static; install command is in the lock. Dependency source includes both libjuice extracted variants; the overlay recipe/patch defines the intended patched build.+- Obtain NVIDIA/Intel/Magewell SDKs yourself under their terms. They are not part of source Git/archive. DLSS SDK 310.7 build interface, Optical Flow SDK 5.0.7, RTX Video SDK 1.1.0, nv-codec-headers, XeSS 3.0.2 and FidelityFX SDK 1.1.4/2.3.0 are selected by the existing CMake options. The shipped FG runtime is separately audited as 310.9.1.++## Configure and build++Use the `x64-release` preset with explicit dependency locations; adapt paths to your machine. Enable `VEYRA_BUILD_QML_UI`, `VEYRA_ENABLE_REMOTEPLAY`, `VEYRA_ENABLE_MOONLIGHT` and `VEYRA_ENABLE_XBOX`. Set `VEYRA_FFMPEG_ROOT`, `VEYRA_DLSS_SDK_ROOT`, `VEYRA_NVOF_SDK_ROOT`, `VEYRA_XESS_ROOT`, `VEYRA_FIDELITYFX_ROOT`, `VEYRA_FIDELITYFX2_ROOT`, `VEYRA_NVENC_HEADERS_ROOT`, `VEYRA_RP_CHIAKI_SOURCE_DIR`, `VEYRA_MOONLIGHT_SOURCE_DIR` and `CMAKE_PREFIX_PATH` (Qt + dependency install prefixes). Other optional backend requirements are checked by the CMake modules.++```powershell+cmake --preset x64-release -S . -B E:/build/veyra -DVEYRA_BUILD_QML_UI=ON -DVEYRA_ENABLE_REMOTEPLAY=ON -DVEYRA_ENABLE_MOONLIGHT=ON -DVEYRA_ENABLE_XBOX=ON+cmake --build E:/build/veyra --target veyra_qml_ui --parallel 4+```++The abbreviated command requires the dependency variables above to have been configured; it does not download SDKs. Use `windeployqt --release --qmldir qml` for Qt DLLs/QML plugins and keep the built QML/shader folders beside the executable. For the audited release layout, see `scripts/package-qml-release.py` and `docs/RELEASE_2.0.0_RUNTIME_LOCK.json`. These are publisher identity checks, not runtime DLL locks. New source builds do not require immutable acceptance guards tied to the author's historical checkout.++Run the QML data/quick/easing and i18n targets plus relevant engine/export/streaming tests. Software tests do not replace real hardware, physical HDR, controller or long-term stability checks.diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.mdindex 82438021..2a519c95 100644--- a/docs/CURRENT_STATUS.md+++ b/docs/CURRENT_STATUS.md@@ -1,5 +1,10 @@# 当前项目状态 / Current Status+## 2026-10-02 2.0.0 发布更新++用户已确认 OBS 兼容并授权发布 GitHub 2.0.0、更新中英文 README 和新版操作教程。当前发布内容以 README、RELEASE_NOTES_2.0.0.md、BUILD_2.0.0.md 及 RELEASE_2.0.0_PUBLIC_2026-10-02.md 为准。以下未发布/未授权等旧阶段表述保留作历史,不覆盖本次授权;硬件未验边界仍保留。++## 2.0.0 总览(2026-10-01,合并 `main` 时对齐)**代码位置与状态**diff --git a/docs/OBS_RESIZE_CRASH_2026-10-02.md b/docs/OBS_RESIZE_CRASH_2026-10-02.mdnew file mode 100644index 00000000..c224bc24--- /dev/null+++ b/docs/OBS_RESIZE_CRASH_2026-10-02.md@@ -0,0 +1,31 @@+# OBS 游戏采集 + 调整窗口大小崩溃(2026-10-02)++状态:发布阻断,未修复、未做修复后验收。用户要求先不构建,后续构建和打包暂停;图标版先前编译已完成,尚未交付。++## 本机事实++- 用户在现有 2.0.0 本地便携包使用 OBS 游戏采集,调整窗口大小后崩溃。OBS 32.1.2,RTX 5070,驱动 32.0.16.1656。+- 17:38:02 PID 36744:访问违例,nvwgf2umx.dll+0x769587。+- 17:40:38 PID 11364:访问违例,d3d11.dll+0x72888,读取空地址;故障线程 1728 是应用日志中的视频呈现线程。该线程此前刚完成 present-sink resize。+- 同时 UI 线程 18324 持续调整窗口;OBS 日志频繁出现 d3d12 capture freed、d3d12_init_11on12、shared texture capture successful,尺寸对应 QML 主窗口。+- 17:40:38 的异常上下文原始栈地址包含 graphics-hook64.dll+0x2d26/+0x2f8b/+0x5d85/+0x5fa2;这是地址扫描,不是完成符号解析和展开的调用栈。最初旧工具扫描的是转储生成线程上下文,后续已改读 ExceptionStream 中的异常上下文,保留两次输出供追溯。+- 进程包含 OBS graphics-hook64.dll、NVIDIA nvspcap64.dll;不能排除多钩子共存因素。无证据把故障归因于新图标:用户运行的仍是旧图标原包。++## 源码对照及假设++对照 OBS 32.1.2 原版 dxgi-capture.cpp:static dxgi_swap_data 为进程共享状态;hook_resize_buffers 无条件清空捕获状态并调用 data.free,未按当前捕获的 swap 做过滤;hook_present 也访问该状态。d3d12-capture.cpp 的 static d3d12_data 持有 D3D11On12 设备/上下文,free 释放后归零。Veyra 的 QML UI 与视频在不同线程使用独立交换链。++因此首要假设是 UI resize 与视频 Present 同时经过 OBS 共享采集状态,引起生命周期冲突。与现场日志及异常上下文一致,但尚未通过带符号栈/隔离复现确认,不宣称 OBS 是唯一责任方。++参考:https://github.com/obsproject/obs-studio/blob/32.1.2/plugins/win-capture/graphics-hook/dxgi-capture.cpp+参考:https://github.com/obsproject/obs-studio/blob/32.1.2/plugins/win-capture/graphics-hook/d3d12-capture.cpp++## 后续验证要求++- 保留用户 OBS 场景和设置,使用独立 Veyra 配置;对比无捕获、OBS 游戏采集、OBS Windows 图形捕获,覆盖首页/播放、连续拖动大小、最大化/还原和关闭。+- 区分 UI 与视频 Present/Resize 所在线程,补符号化异常调用栈;在用户同意相关设置变化后隔离 NVIDIA 叠加共存因素。+- 不通过吞掉访问违例、每帧等待 GPU、禁用用户拖动、盲切 D3D11 或恢复取消的 RTSS 分支冒充修复。+- 如采用串行协调,必须覆盖 Qt UI 与视频的 Present/Resize/销毁,以及补帧内部 Present;仅给 Veyra resize 加锁不足以保护第三方钩子。此方案尚未实现。+- 本轮只诊断/存证,没有改动呈现链路或运行用户应用复现;用户要求先不构建。++证据目录:E:/项目/Veyra/tests/obs-resize-20261002。原始 Windows WER 全转储留在系统原位置,未移动/删除。包中日志和小转储已复制存证。diff --git a/docs/RELEASE_2.0.0_LOCAL_TEST_2026-10-02.md b/docs/RELEASE_2.0.0_LOCAL_TEST_2026-10-02.mdnew file mode 100644index 00000000..8a06bec2--- /dev/null+++ b/docs/RELEASE_2.0.0_LOCAL_TEST_2026-10-02.md@@ -0,0 +1,33 @@+# Veyra 2.0.0 — 本地稳定性测试包++本包使用正式版本号 2.0.0,从 main `aafdeb061e45ae8cdaebfaf68e16c3d589771c05` 全量构建;包含当前主线的 QML 界面、多语言、导出队列、多音轨/字幕、PC 与 Xbox 串流等功能。没有加入已取消的游戏加加 / RTSS 适配改动,没有公开发布。++## 运行++1. 完整解压到新的可写目录,运行 **veyra_qml_ui.exe**。不要覆盖旧版本;不需要安装 Qt、SDK 或开发工具。+2. 先保持增强效果关闭,确认文件或采集卡的画面、声音,再逐项开启 NR、超分、补帧。+3. 本版设置与旧版分开保存。PS5、PC、Xbox 的配对或登录身份不随便携包分发;不要把自己的配置、账号目录再打进分享包。++## 稳定性测试建议++按实际日常素材连续播放,分别试效果全关、NR、超分和常用补帧方式;反复暂停/继续、拖进度、切全屏、换片源。关注显存是否持续上涨、音画是否逐渐偏移,以及关闭程序能否正常退出。++再试导出队列、取消后重试、MP4/MKV 音轨和字幕;采集卡及 PS5/PC/Xbox 串流需要对应设备实测。出现异常时记录时间、显卡/驱动、素材规格和开关组合,保留 `logs/veyra-qml.log` 及同目录的 `veyra-crash-*.dmp`。日志和转储可能包含本机路径,不自动上传。++## 已知边界++- **RTSS / 游戏加加注入兼容问题未修复。** 本机已见 RTSS 下打开视频时设备丢失;D3D11 界面对照在 XeSS 下崩溃。测试本包时请关闭它们对 Veyra 的注入;这不代表适配已完成。+- 历史反馈的 RTX 4070S NR TDR、部分 5060 Ti 显存增长没有在本轮修复。短测通过不代表长时间、所有显卡或所有采集设备稳定。+- 社区 NR、补帧优化内核、30/40 系兼容、FSR 4 ML 和串流仍保留各自的实验边界。版本号 2.0.0 不代表 NVIDIA/Intel/AMD/Microsoft 官方认证。+- 组件页的“已加载”来自静态清单,不能替代实际启用日志。逐文件身份见 `release-runtime-manifest.json`;它是发行者审计清单,不限制用户自行替换运行库。+- 随附 `veyra-source.zip` 仅是本次 Veyra 源码快照;公开分发前仍需补齐新增依赖的完整对应源码和构建材料。本轮没有公开上传。++自动回归与实际运行结果另附 `STABILITY_REPORT.md`。未测试的项目不会写成通过。++## 本次更新:OBS 兼容与新图标++设置 → 通用与外观新增“OBS 游戏采集兼容”(默认关闭)。修改立即保存;需要切换当前绘制模式时弹出“需要重启软件”,选“是”正常退出并重新启动,选“否”保留当前会话、下次启动生效。重启会停止当前播放/串流;正在导出时请等导出完成再重启。++兼容模式以软件绘制 UI,部分阴影/模糊简化,D3D12 视频与 NR/SR/FG 保持原路径。OBS 游戏采集针对视频,录完整界面请使用 Windows 10 (1903+) 窗口采集。用户已确认此前候选有效;四种增强组合合计 720 次缩放短测通过,不代表长期或跨硬件全部稳定。++本包整合圆角渐变黑底新 EXE 图标及 Qt 窗口/任务栏图标。源码基于上述 main 加本地隔离修复,不是未修改的 main 快照。未公开发布。diff --git a/docs/RELEASE_2.0.0_LOCAL_TEST_EN_2026-10-02.md b/docs/RELEASE_2.0.0_LOCAL_TEST_EN_2026-10-02.mdnew file mode 100644index 00000000..e79aa2eb--- /dev/null+++ b/docs/RELEASE_2.0.0_LOCAL_TEST_EN_2026-10-02.md@@ -0,0 +1,23 @@+# Veyra 2.0.0 — local stability test package++Full build of main `aafdeb061e45ae8cdaebfaf68e16c3d589771c05`, with the current QML interface, languages, export queue, audio/subtitle track support, PC streaming and experimental Xbox streaming. This local package uses version 2.0.0. It has not been published and does not contain the cancelled overlay compatibility changes.++Extract into a new writable folder and run **veyra_qml_ui.exe**. Keep your previous version intact. Qt, approved enhancement runtimes and applicable notices are included; developer tools are not required.++Start with effects disabled, then test your usual NR, super-resolution and frame-generation combinations. Check playback, pause/resume, seeking, fullscreen, source changes and clean shutdown. Also test export cancellation/retry and MP4/MKV audio/subtitle tracks. Watch for increasing VRAM usage, audio drift, freezes and crashes during longer sessions.++RTSS/GamePP injection remains incompatible: device loss and a separate D3D11/XeSS crash were observed. Disable their injection into Veyra for this test. Historical NR/TDR and VRAM growth reports remain unresolved. Short tests do not establish long-term or cross-hardware stability; physical capture devices and streaming hosts need their own validation.++Preserve the incident time, settings, GPU/driver version, `logs/veyra-qml.log` and any `veyra-crash-*.dmp`. These may contain local paths; nothing is uploaded automatically. Account credentials and personal settings are excluded from this package.++Experimental/community components do not imply official vendor certification. Runtime manifests audit the distributed files and do not lock user replacements. The component page uses static manifest metadata, not authoritative live module status. The separate Veyra source snapshot is not yet a complete dependency source distribution for public release.++See the separate `STABILITY_REPORT.md` for measured results and untested cases.++## Updated OBS compatibility and application icon++Settings → General & appearance includes OBS Game Capture compatibility (off by default). Changes are saved immediately. Yes in the restart prompt closes the player cleanly and relaunches it; No keeps the current session and applies the setting next time. Restart stops playback/streaming and is deferred while an export is running.++Software UI rendering avoids competing UI DXGI swapchains and simplifies some shadows/blur. Native D3D12 video and NR/SR/FG are unchanged. Game Capture targets video; use Windows 10 (1903+) Window Capture for the complete interface. The user confirmed the preceding candidate; 720 local resize operations passed across four enhancement configurations. This is not long-term or cross-hardware certification.++Includes the rounded gradient-black EXE icon and Qt window/taskbar icon. Built from the stated main plus local isolated fixes; not an unchanged main snapshot. No public release.diff --git a/docs/RELEASE_2.0.0_OBS_RESTART_2026-10-02.md b/docs/RELEASE_2.0.0_OBS_RESTART_2026-10-02.mdnew file mode 100644index 00000000..2e901f75--- /dev/null+++ b/docs/RELEASE_2.0.0_OBS_RESTART_2026-10-02.md@@ -0,0 +1,18 @@+# 2.0.0 OBS 开关、重启确认与本地包++2026-10-02 用户确认前一 OBS 候选有效,要求增加是/否重启确认、保存设置并构建新 2.0.0 包。当前在 codex/release-2.0.0-20261002 整合已验 OBS 五文件 UI 改动及此分支图标;main 和 OBS 分支保持不变,不 commit/merge/push/公开 Release。++独立 guard 的不可变基线保持原样;仅增加本次明确授权的 bridge 头/源、SettingsPage 和翻译表四条 allowlist。无 engine/runtime/shader/CMake 改动。++开关调用 setPreference 成功保存后,仅在所选值与当前模式不同时弹 VConfirm;否关闭弹窗且不回滚设置。是调用 restartApplication,正在导出则提示等待,其他情况记忆位置并退出事件循环。runApplication 的 UI/engine/QApplication 对象销毁后,外层 main 才用 QProcess::startDetached 启动同一 EXE。保留 --data-dir、返回设置页,不继承单次 --obs-game-capture 或自动打开/测试参数;启动失败显示本机错误框。未声称自动恢复串流。++构建:release-2.0.0-build.py build-obs-restart-v2.log veyra_qml_ui veyra_ui_i18n_tests 成功。初次 git apply 因图标同位置插入而冲突(检查阶段,未应用),随后逐项保留图标并整合 OBS 改动;build-obs-restart.log 仅是旧图标状态无增量构建,不当作修复验收。++测试脚本 obs-restart-test.py 在 baseline-app 隔离副本临时加 QML Timer,调用真实开关信号和是/否按钮信号,检查持久化与重启后 active 状态,不是鼠标点击测试。初版查找从 Window 而非 contentItem 进入,未找到开关;修正夹具,不改产品。失败证据 obs-restart 保留;修正版 obs-restart-v2。++产物统一 E:/项目/Veyra:build/tests/logs/tmp/archives/release-2.0.0-20261002;新包 releases/2.0.0-obs-20261002。旧包、测试者候选和用户配置保留。验收最终结果另补。+++最终设置回归:obs-restart-v3 的 no / enable / disable 全部通过,保存值分别 true/true/false,父进程退出 0,子进程完成对应后端启动并退出。v2 的 enable 已在 console.log 出现 CHILD_PASS,但夹具仅查看父 app.log 而误判;v3 改用父子共用 console.log,未改产品。UI 日志确认每次窗口图标 10 尺寸成功加载。i18n 1864 条、0 failures;git diff --check 和范围 guard 通过。++用户前轮已验收 OBS 兼容视频和缩放;本轮保持该模式机制不变,仅增加确认、正常生命周期重启及图标。没有再将早先 720 次缩放写成新二进制重新完成了 720 次。diff --git a/docs/RELEASE_2.0.0_PUBLIC_2026-10-02.md b/docs/RELEASE_2.0.0_PUBLIC_2026-10-02.mdnew file mode 100644index 00000000..cfcb7062--- /dev/null+++ b/docs/RELEASE_2.0.0_PUBLIC_2026-10-02.md@@ -0,0 +1,13 @@+# 2.0.0 GitHub publication — 2026-10-02++User explicitly authorised GitHub publication and complete 1.4.4→2.0.0 release notes, Chinese then English, with features before bug fixes. README rewritten for the new UI, especially nodes, and architecture updated. New logo and two explicitly supplied images are authorised public assets; image files copied byte-for-byte, donation image URL unchanged, both support images width=220. QR expiry follows supplied image: before 2026-10-09.++Branch codex/release-2.0.0-20261002 includes user-accepted OBS compatibility, persistent restart confirmation and new icon. Existing product EXE hash 454f59caa55c06f44c915122b878356bfd896ea66f86db11d2e8503441066656 remains unchanged by documentation/package work. Original desktop, old guards, old releases, OBS worktree and user settings retained.++Remote nrvideo/main advanced to 56c73c7 with only an old README HDR section removal. Incorporate its history without force-push; rewritten README supersedes old operating instructions. Target Likely7/Veyra-NRVideo, v2.0.0. Public source is the final tagged commit. No proprietary SDK/DLL/model is added to Git.++Dependency source: Veyra-2.0.0-dependency-source.zip, 14825 manifest entries, SHA256 a293552434381a71169c1c27658f07202d67243ca82e748936b9db15077ce0de. Includes hash-verified legacy FFmpeg/RemotePlay materials and newly linked sources/patches/Qt. Qt downloads verified with upstream SHA256. Build instructions clarify combined AGPL/OpenSSL exception, original GPL and replaceable shared Qt.++Publication artifacts: E:/项目/Veyra/releases/2.0.0-final-20261002. External final publication receipt records tag/commit, asset URLs, sizes and SHA256 plus remote body/image checks; do not infer publication from this preparation record. Runtime identities remain the approved lock; no new runtime versions. Previous unit/export/OBS evidence is attributed to its actual stage, not claimed as universal final-binary testing.++Auto-review rejected the earlier monolithic documentation-writing shell command without a specific reason beyond policy. Splitting file copying and explicit text patches succeeded; no task remains blocked by that rejection.diff --git a/docs/RELEASE_2.0.0_RUNTIME_LOCK.json b/docs/RELEASE_2.0.0_RUNTIME_LOCK.jsonnew file mode 100644index 00000000..58932ddb--- /dev/null+++ b/docs/RELEASE_2.0.0_RUNTIME_LOCK.json@@ -0,0 +1,523 @@+{+ "schema": 1,+ "enforcedAtRuntime": false,+ "provenance": "Approved 2.0.0 beta runtime set; 29 kernels checked against preserved 1.4.5.3 extraction and manifest. The release ZIP and extraction DLL identities were also verified. No runtime binary is included in Git.",+ "files": [+ {+ "name": "nvngx_dlss.dll",+ "path": "runtime/experimental/nvngx_dlss.dll",+ "size": 58977904,+ "sha256": "BE6E434A94CA32499515EB62CA0E6C274526055D568D0426E4C652DCDFB6EE6E",+ "fileVersion": "310.7.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-dlss-sdk-310.7.0-rel",+ "experimental": false,+ "removable": true,+ "source": "official-dlss-sdk-310.7.0-rel",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssg.dll",+ "path": "runtime/experimental/nvngx_dlssg.dll",+ "size": 7460976,+ "sha256": "FF6E90EB78B827927DFF5B4ECC6B1C870C2E9BCA29ED9F48C7D348CC9E170B82",+ "fileVersion": "310.9.1.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-dlss-sdk-310.9.1-rel",+ "experimental": true,+ "removable": true,+ "source": "official-dlss-sdk-310.9.1-rel",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssnr.dll",+ "path": "runtime/experimental/nvngx_dlssnr.dll",+ "size": 165840496,+ "sha256": "F95FEB54137EA11979F9B4EC4F00AFD84B5C98A5624D3388FBF6A87714A39FCC",+ "fileVersion": "310.8.3.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "user-approved-community-Lecram-310.8.3-RTX50-runtime",+ "experimental": true,+ "removable": true,+ "source": "community Lecram 310.8.3 (RankFTW/rhi-repo dlssnr-310.8.Lecram)",+ "authenticode": "HashMismatch"+ },+ {+ "name": "nvngx_vsr.dll",+ "path": "runtime/experimental/nvngx_vsr.dll",+ "size": 19140144,+ "sha256": "C3D88EEA5FF7A548EDEFA66414CF6E77464D0947277C904F324DD23ABF58A1ED",+ "fileVersion": "1.6.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1-G, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-rtx-video-sdk-1.1.0",+ "experimental": false,+ "removable": true,+ "source": "official-rtx-video-sdk-1.1.0",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssnr.dll",+ "path": "runtime/experimental/nr-ampere/nvngx_dlssnr.dll",+ "size": 165830144,+ "sha256": "6EB209E764F39872625DEBD6ABAF45E2BB6322F6F270F781F70C059AE30B3927",+ "fileVersion": "310.8.2.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "user-approved-community-SF-v2-310.8.2-RTX20-RTX50-compatible-runtime",+ "experimental": true,+ "removable": true,+ "source": "community SF-v2 310.8.2 (RankFTW/rhi-repo dlssnr-310.8.SF-v2)",+ "authenticode": "NotSigned"+ },+ {+ "name": "nvngx_truehdr.dll",+ "path": "runtime/experimental/nvngx_truehdr.dll",+ "size": 3955752,+ "sha256": "9A80575F247190C05FE80EAC0C4BAA1D0D4D932348F26808310B5EC4BF9EEB4B",+ "fileVersion": "1.1.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1-G, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "official-rtx-video-sdk-1.1.0",+ "experimental": true,+ "removable": true,+ "source": "official-rtx-video-sdk-1.1.0",+ "authenticode": "Valid"+ },+ {+ "name": "nvngx_dlssg.dll",+ "path": "runtime/experimental/fallback-dlssg-310.7/nvngx_dlssg.dll",+ "size": 7519856,+ "sha256": "135EAF0733C1E37381A8C28ABCF7A862404A54132B81787C04E35D09EFC5E36F",+ "fileVersion": "310.7.0.0",+ "signer": "CN=NVIDIA Corporation, OU=1005bk6, O=NVIDIA Corporation, L=Santa Clara, S=California, C=US",+ "classification": "fallback-official-dlss-sdk-310.7.0-rel",+ "experimental": true,+ "removable": true,+ "source": "official-dlss-sdk-310.7.0-rel (manual fallback, not loaded)",+ "authenticode": "Valid"+ },+ {+ "name": "k4000.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4000.ptx",+ "size": 71483,+ "sha256": "A58AD1C5F8AB5E82EFD2E15AAEB178113C1720C3EBD8164CA10474B50E1D342A",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4002.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4002.ptx",+ "size": 89932,+ "sha256": "78CDADD921AFB74B78B1A2B2798FAE069577AA94931DBCC15C34F1ADBB6AF1FB",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4004.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4004.ptx",+ "size": 48446,+ "sha256": "E23F640D68ECAF1FB417BAEFB18D11A90185B4E6E692467177ED4420B6BD3B35",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4006.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4006.ptx",+ "size": 98810,+ "sha256": "599EC85597282CFA04F3EA88F727D11D9A1ECA0B508E6CEC2A90750B6798FA29",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4008.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4008.ptx",+ "size": 17301,+ "sha256": "8B9F317546591EF6EF13909EDB8C551304ADE391129E9FA8D7ABD73ED63F0D51",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4010.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4010.ptx",+ "size": 25248,+ "sha256": "F721C9D6B1970E3FEDA8663364F7E17BB4DE4E6BF280A3742E43420D8764463B",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4012.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4012.ptx",+ "size": 51047,+ "sha256": "70666762066C77B0458A4A551DB4F590664B51F164F5ED372A69FA0EDDB72C52",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4014.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4014.ptx",+ "size": 25546,+ "sha256": "673FD239C9F6D5614CC1E4A3E4FCCC2A816AD691812741B91E4259E64C052406",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4016.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4016.ptx",+ "size": 23534,+ "sha256": "03B91710C6B11DD9DEF1E988474A1EE2FCAD11C6AF73E90B220EB62A098B8563",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4018.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4018.ptx",+ "size": 23550,+ "sha256": "DB1BE36D8786F255920754EA484B48F5FA1D7C1DCC3B69CFD5467850674768E2",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4020.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4020.ptx",+ "size": 19689,+ "sha256": "7710B2556F76CD501F578D0E1C4FB5039E7E18D94EFBAEB568011C74E93E2243",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4022.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4022.ptx",+ "size": 14510,+ "sha256": "3216F263AEB8C4AC2A1565FDC95D99A371DE6718015EDCB42E753CDF1307268E",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4024.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4024.ptx",+ "size": 54172,+ "sha256": "C3973E1A88E48471ABEA699433E6097287E800B65467258EA4FECBD9D4CC0293",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4026.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4026.ptx",+ "size": 29428,+ "sha256": "B02762FB2452BFDB979AE7987B60176B67249CC762CDDC4F498FAAFBF78FF676",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4028.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4028.ptx",+ "size": 29428,+ "sha256": "26C0CF15C83CC36A651AB68FE2C85E03F7C0092594ED03A765C8C66347622C31",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4030.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4030.ptx",+ "size": 25258,+ "sha256": "BB110524EDE676DD0093B5E59AB0F2F8A15E27D19DEF02660B03E2A4F23E1572",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4032.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4032.ptx",+ "size": 25161,+ "sha256": "047B040D832ABE919AA268DF27E38A149D6B91016266FB240B9E54C53355D57A",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4039.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4039.ptx",+ "size": 9753,+ "sha256": "9F14F5C67B9ABF2CA9B17B415072D540CAFCFBC682CBA8BA5C2F4D2A308A8F75",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4042.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4042.ptx",+ "size": 43249,+ "sha256": "5E2D0C7E1A9F208624FDDA3B8A529979142FD1C3CD746964F7F755F13E587286",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4044.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4044.ptx",+ "size": 76235,+ "sha256": "13B50F00F512B91BDF90AD9F273F5CB8DFE4366ADEB9EA7FDA073F528C694FD2",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4046.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4046.ptx",+ "size": 76639,+ "sha256": "81045733D05A039EB34930C5EF96182125A2BB9CAB1DDAA4ADB874C364D8CAB4",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4048.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4048.ptx",+ "size": 44469,+ "sha256": "AB908E60BF574E301129A9689E78AD458EF9E90F4B430AF5E50FC400FABF3D74",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4050.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4050.ptx",+ "size": 79988,+ "sha256": "988373CF94A46BC2E04B0C161FF336C4D59CCC016CEE4270B27626A611B49F53",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4058.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4058.ptx",+ "size": 49154,+ "sha256": "6845C21149ABE8D8E05755765C224DB2970D5F444A113FD8F390775EB1CF2900",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4059.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4059.ptx",+ "size": 16879,+ "sha256": "338A1DEB8D7FAA21553214C9F071906CE6BB85946E27A78C7D75C5CFF1E1A989",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4060.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4060.ptx",+ "size": 55507,+ "sha256": "8A7B13C21931EE40647D8D177FFCCE9629588569C40DF5345E424C32E42AFB61",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "k4062.ptx",+ "path": "runtime/experimental/dlssg-kernels/k4062.ptx",+ "size": 53773,+ "sha256": "564DDD342268739E0447AE711A2B21EAA5135F4069D063C25EA516145DE1EE4D",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "OutputPull.ptx",+ "path": "runtime/experimental/dlssg-kernels/OutputPull.ptx",+ "size": 22605,+ "sha256": "C7C1951069FECC2A5D37D899FAD1F487FEEB616922E30B411A737DD17227249E",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "OutputPushFine.ptx",+ "path": "runtime/experimental/dlssg-kernels/OutputPushFine.ptx",+ "size": 20733,+ "sha256": "F8D9777F2ADA7D3959DCE515510CA7CBD2194A13AC721EBEDF52ED0F019523BF",+ "fileVersion": "",+ "authenticode": "NotSigned",+ "classification": "community-DLSSG-Transfusion-1.4.5.3-sm86-optimized-kernels",+ "experimental": true,+ "removable": true,+ "source": "SilyNoMeta/DLSSG-Transfusion v1.4.5.3 release binary (no licence granted; see THIRD_PARTY_NOTICES.md)"+ },+ {+ "name": "amd_fidelityfx_loader_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_loader_dx12.dll",+ "size": 26376,+ "sha256": "E2D85AA05A9BD9ED8B38935FDF5199372CCA6F74C12015143BB6F945EE1608AA",+ "fileVersion": "2.3.0.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-loader",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-loader",+ "authenticode": "Valid"+ },+ {+ "name": "amd_fidelityfx_framegeneration_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_framegeneration_dx12.dll",+ "size": 40085776,+ "sha256": "02297BEEDD285E822D3A64F314CF00FAF378DCEC0EDC47FF0C4DD71B3A8C2F18",+ "fileVersion": "4.0.1.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-framegeneration",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-framegeneration",+ "authenticode": "Valid"+ },+ {+ "name": "amd_fidelityfx_upscaler_dx12.dll",+ "path": "runtime_local/amd/fidelityfx/amd_fidelityfx_upscaler_dx12.dll",+ "size": 28761864,+ "sha256": "D0DCCCC74A43C44BA435B7A369B456E0970D8A4464E4BD683119B374F2C9FB46",+ "fileVersion": "4.1.1.2740",+ "signer": "CN=Advanced Micro Devices, O=Advanced Micro Devices, S=California, C=US",+ "classification": "official-amd-fidelityfx-sdk-2.3.0-upscaler",+ "experimental": true,+ "removable": true,+ "source": "official-amd-fidelityfx-sdk-2.3.0-upscaler",+ "authenticode": "Valid"+ },+ {+ "name": "libxell.dll",+ "path": "runtime_local/intel/experimental/libxell.dll",+ "size": 415368,+ "sha256": "D2030DCD694FDA8F2EC7E044B13E6DB8F0B56D4BA9113A5EFAD334E3F3DED8C7",+ "fileVersion": "1.3.2.10",+ "signer": "CN=Intel Corporation, O=Intel Corporation, S=California, C=US",+ "classification": "official-intel-xess-sdk-3.0.2",+ "experimental": true,+ "removable": true,+ "source": "official-intel-xess-sdk-3.0.2",+ "authenticode": "Valid"+ },+ {+ "name": "libxess_fg.dll",+ "path": "runtime_local/intel/experimental/libxess_fg.dll",+ "size": 22957432,+ "sha256": "EC5E0C65E075570C6EDE72618BB666D0BE0C2E10B2EA9762C0FE8CB8E375AB27",+ "fileVersion": "1.3.1.78",+ "signer": "CN=Intel Corporation, O=Intel Corporation, S=California, C=US",+ "classification": "official-intel-xess-sdk-3.0.2",+ "experimental": true,+ "removable": true,+ "source": "official-intel-xess-sdk-3.0.2",+ "authenticode": "Valid"+ },+ {+ "name": "LibMWCapture.dll",+ "path": "runtime/magewell/LibMWCapture.dll",+ "size": 241664,+ "sha256": "360259C46A0F62713EF9FCAD2B403596EF007AC04D9B37A1E9C949C8459B92F9",+ "fileVersion": "3.3.1.1596",+ "classification": "official-Magewell-Capture-SDK-3.3.1.1596",+ "source": "Magewell Capture SDK Windows 3.3.1.1596",+ "experimental": true,+ "removable": true,+ "authenticode": "NotSigned"+ }+ ]+}diff --git a/docs/RELEASE_2.0.0_STABILITY_2026-10-02.md b/docs/RELEASE_2.0.0_STABILITY_2026-10-02.mdnew file mode 100644index 00000000..4dd4914f--- /dev/null+++ b/docs/RELEASE_2.0.0_STABILITY_2026-10-02.md@@ -0,0 +1,43 @@+> 追加:用户实测 OBS 游戏采集 + 窗口缩放发生访问违例,属于发布阻断。之前测试结果仅覆盖当时场景,不能证明 OBS 兼容。见 OBS_RESIZE_CRASH_2026-10-02.md。后续构建/打包按用户要求暂停。++# Veyra 2.0.0 本地稳定性验证 — 2026-10-02++结论:本机短时回归通过,可交付用户继续稳定性测试;不是跨显卡、实卡采集或长期稳定性保证。没有公开发布,没有包含已取消的 RTSS/GamePP 修复。++## 构建与文件身份++- 产品源码:main `aafdeb061e45ae8cdaebfaf68e16c3d589771c05`,产品文件逐项与基线一致,仅新增打包/测试脚本和文档。+- 独立 Release 构建:497/497 编译链接成功;Qt 6.8.3,PS5/PC/Xbox 功能开启,保留 patched FFmpeg。+- ZIP:`Veyra-2.0.0-win64-portable.zip`,414092210 字节。+- ZIP SHA256:`2eb3d93f50cca8c67442e4d5d409bc19397240a15682eb46f7e484e701f5d8e4`。+- 程序 SHA256:`858fb8f63d9b7dc5dff2c8bc1981a6fa997912160617a48b4bfd76a6f220d783`。+- 1507 个清单文件哈希通过,独立解压后再次全量一致。42 个增强/采集运行文件核对来源身份;13 个 DLL 的签名和数字版本符合既有批准清单。+- 包含运行必需组件、许可证及说明;不包含个人配置、凭据、测试程序、私有测试视频或开发 SDK。开发 PATH 清空后实际启动成功。++## 本轮实际结果++| 项目 | 结果 | 范围 |+| --- | --- | --- |+| 全量构建 | 通过 | 21 个应用/测试目标 |+| 单元/组件组 | 19/19 通过 | 调度、HDR 状态、采集格式/颜色、预览几何、音频时序、QML 数据/组件、语言、串流协议/模型等 |+| QML 组件 | 29 项通过 | 仍有既有测试夹具销毁期 undefined 警告,不能称零警告 |+| 真实导出 | 10/10 通过 | MP4/MKV、轨道选择/保留、剪辑、PGS 负例/跳过、取消重试、队列;ffprobe 核查生成视频和轨道数 |+| 打包验证器 | 10/10 通过 | 包括损坏文件、遗漏许可证、自引用、未列文件、大小写冲突、路径越界、链接和私有文件负例 |+| 实际便携程序 | 通过,退出码 0 | 242.4 秒,RTX 5070,4K H.264;用户同时操作页面及播放,期间启用 NR |+| 正常退出 | 通过 | 图、NGX、源、GPU 有序释放;本轮无 ERROR/崩溃日志 |++产品运行有用户交互、暂停及设置变化,不能称为持续满负载四分钟。137 个处理计时样本中 NR GPU P95 最高约 7.8 ms,说明 NR 确实执行;补帧计时为零,不计作补帧验收。显存约 1080–2109 MiB,末次 1968 MiB;过程中启用 NR 和改变设置,不能据此判定泄漏或保证长期无增长。++## 未验与已知限制++- 本轮未实际启用 DLSS/XeSS/FSR 补帧,没有完成它们的长时共存/稳定性测试;超分、HDR 实屏、听音和屏幕端到端延迟也不由上述结果证明。+- RTSS/GamePP 注入未修复。实际验证进程没有载入它们;既有 NVIDIA 叠加模块仍在。测试本包请关闭 RTSS/GamePP 对 Veyra 的注入。+- 历史 NR TDR、部分设备显存增长,以及真实采集卡、PS5/Sunshine/Xbox、30/40 系与 AMD/Intel 实机仍需各自验收。+- windeployqt 提示找不到 dxcompiler/dxil DLL;本轮 D3D12 界面和 NR 实際播放已通过,但不能外推所有驱动环境。+- 源码 ZIP 是 Veyra 源码/打包材料快照,非完整第三方依赖对应源码集合。公开分发前需补齐新增依赖源码;本轮仅本地交付。++## 本地证据++- 构建:`E:/项目/Veyra/logs/release-2.0.0-20261002/build-release.log`+- 测试:`E:/项目/Veyra/tests/release-2.0.0-20261002/`,包含 unit-regression、export-regression、product-stability、extracted-identity.json。+- 不带测试定时器的可用程序:`E:/项目/Veyra/releases/2.0.0-local-20261002/Veyra-2.0.0-win64-portable/veyra_qml_ui.exe`。本轮四分钟定时退出仅通过启动参数传入,双击正式包没有定时退出。diff --git a/docs/RELEASE_NOTES_2.0.0.md b/docs/RELEASE_NOTES_2.0.0.mdindex f5f9eec2..97f1bfc1 100644--- a/docs/RELEASE_NOTES_2.0.0.md+++ b/docs/RELEASE_NOTES_2.0.0.md@@ -1,98 +1,124 @@-# Veyra 2.0.0 Beta+# Veyra 2.0.0-这是 **2.0.0 Beta 测试包**,用于在 RTX 50 / 40 / 30 系实机上验证补帧解锁与新增的抗闪烁功能。+从 1.4.4 升级:全新 QML 界面、节点处理、多层 NR、PC/Xbox 串流与新的导出工作流。以下按“新增与改进 → 修复 → 已知边界”排列。English follows the Chinese section.-**本包是测试候选,不是正式发布。** 已知未验证项写在最后一节,请先读。+## 中文-## 本版主要变化+### 新功能与重要改进-### 补帧运行库升到 310.9.1,40/30 系解锁改用 DLSSG-Transfusion+**1. 全新界面与操作**-- `nvngx_dlssg.dll` 从 310.7 换成官方 NVIDIA DLSS SDK **310.9.1**- (`FF6E90EB…170B82`,7,460,976 字节,Authenticode **Valid / NVIDIA**)。-- 超分 `nvngx_dlss.dll` **仍固定 310.7**,本版不升级。-- 310.7 的补帧运行库保留在包里:`runtime/experimental/fallback-dlssg-310.7/nvngx_dlssg.dll`。- 30/40 系补帧打不开或画面异常时,退出软件,把它复制到上一级 `runtime/experimental/` 覆盖同名文件,- 软件就会回到 1.4.4 的 310.7 解锁方案(按文件身份自动识别)。覆盖前先把原来的 310.9.1 文件备份,- 想换回时再复制回去。+- 新首页、最近使用/继续上次、极简观影、专业列表、节点画布、独立调色、导出和设置页;统一暗色外观、图标、字体、菜单、确认框、滚动条与动效。+- 全新圆角渐变黑底 Logo,EXE 与 Qt 窗口/任务栏图标统一。README 用新版专业模式截图替换旧动图,并重写操作教程。+- 简体中文、繁体中文、English、日本語,支持跟随系统;设置包含界面缩放、启动尺寸、快捷键、音频设备和单显卡 GPU 占用监控。+- 极简悬浮播放条可隐藏;全屏自动隐藏控制、顶部极简/专业切换、Home 快速调节与控制锁定。文件画面点击暂停、双击全屏、左右键跳转。+- 文件比例/旋转信息、适应/原始/填充、原画/增强分屏、按住 V 对比、强制 SDR 预览、截图、字幕/音轨入口和高级字幕设置接入新界面。-### NR 运行库+**2. 节点模式与多层增强**-- 默认位置换成社区 **Lecram 310.8.3**(RTX 50):本机同帧 NR 输出与 NVIDIA 310.8.0.0 逐字节相同,- 原生 4K 下 NR 耗时约 −2.3%、功耗约 −4.7W。-- RTX 30 位置换成社区 **SF-v2 310.8.2**(自带 20/30 系 FP16 路线);对这一版不再把 Ampere 改报为- Blackwell。**30 系实际效果未验证。**-- 社区 RTX 40/50 版(984BEE0F)不变。+- 新增真实节点处理链:添加、端口拖拽/点击连接、拖到线上插入、拖离断开、右键删除/复制/重置、中键平移、滚轮缩放、适配视图与自动排列。+- NR 最多四层,每层独立 Feature 实例、内部尺寸与参数;列表总开关支持恢复各层开关状态。调色可多实例,NR/调色可在允许拓扑中穿插于超分前后。+- 复制节点保留参数并旁置为未连接副本;编辑草稿与最后有效运行链区分,非法/断线状态明确提示,不将可见节点冒充运行节点。+- 列表/节点参数、会话和预设独立保存;切换恢复各自状态。个人预设支持内容选项、导入/导出、启动默认,取消强加内置预设。+- 输入后共享光流、单个超分、Video HDR 在补帧前、单个末端补帧;不是任意分支混合图。**节点离线导出延期,2.0.0 只支持列表离线导出。**+- 列表提供全局 NR 保护区域(含形状参数),排除区域内全部 NR 层并保留非 NR 处理;节点不提供保护区域。+- 调色补齐曲线、八色混色器、色轮、黑白/校准、组旁路/复位、逐参数复位、LUT 文件导入、颜色预设和原图对比。-### 预设+**3. 增强后端、补帧与诊断**-- 预设格式升到 v24(稳定器参数与每层抗闪烁档位)。只有用到这两项时才写 v24,其余仍写旧版本,- 1.4.4 可以继续读。修复了 Beta 前一版的问题:多层 NR 预设保存后读不回来。-- 40 系与 30 系的补帧解锁改为移植 SilyNoMeta/DLSSG-Transfusion(MIT,tag `v1.4.5.3-rtx20-30-40`)的- 310.9.1 补丁:在 NGX 初始化前写入 provider 的进程内存,架构门槛、Ada 立即数、count/index- validator、Blackwell 内核 fatbin 重建、容器就地重定向、DL1/DL2 网络内核替换、输出图像内核替换、- valid-warp 质量策略。-- **所有写入都会记账并在释放时逐字节回滚并读回验证**;NvAPI 只改 provider 自己的- `GetProcAddress` 导入槽,没有 Detours、没有全局钩子、不改磁盘文件、不重签名。-- 优化内核以 **29 个运行时 `.ptx` 文件**随包提供(`runtime/experimental/dlssg-kernels/`),- 不从 EXE 内部加载。缺文件只关闭优化,不影响播放。来源与授权状态见 `THIRD_PARTY_NOTICES.md`。+- NR 提供 Lecram / SF-v2 社区运行版本选择并全链切换;新配置按显卡分档选择(RTX20/30/40 SF-v2,RTX50 Lecram),保留实验边界。+- DLSS FG 运行库升级 310.9.1,接入记录来源的 Transfusion 兼容路径;50 系原生路径保留,30/40 系实卡仍待验证。DLSS 倍率按能力提供 2/3/4/6×。+- XeSS 选项与 SDK 能力对齐,支持适用环境中的 2/3/4×;FSR 3.1 与 FSR 4 ML 分开显示,FSR 为 2×,FSR 4 限 AMD 且需实际匹配 provider,不把回退 3.1 标成 4。+- 超分增加 5K/6K/7K 尺寸选项与独立运动输入设置;运动估算质量、AMD 半分辨率光流、内容节奏、同步/低队列/输出上限在新版页面可调。+- 输出稳定器/抗闪烁控制、逐层 NR/节点 GPU 最近一秒平均耗时、帧时间折线、处理预算与排队诊断。软件提交 FPS 不等于物理显示帧数。+- 崩溃转储、设备移除/DRED 停止点、加载模块、采集驱动帧龄、显存回收诊断与分阶段重建 watchdog;这些诊断不等于已根治 TDR/显存增长。-### 新增:输出稳定器(抗闪烁,默认关闭)+**4. 更多来源与采集优化**-- 位置:最后一层 NR 与残差合成之后、超分与补帧之前,所以只会平滑 NR 的输出,**不会影响生成帧**。-- 做法:比较源画面与上一帧的 3×3 亮度;没有明显变化的像素沿用上一帧输出,明显变化的位置直接用- 新结果。**不重投影、不用光流**,运动区域因此不会拖影。-- 默认关闭(强度 0)。关闭时该 pass 根本不分配、不派发,与没有这个功能的版本逐字节一致。-- 入口:专业模式 → 质量页 → 「输出稳定器 · 抗闪烁」。-- 本机合成测试:静止画面的逐帧差异降低 **99.65%**,运动块不拖影,强度 0 不派发,debug layer 零错误。+- PC 串流:Moonlight/Sunshine 协议、发现/手填主机、PIN 配对、应用列表、身份保存、键鼠/手柄输入与统计。主机 Sunshine 自行安装。+- Xbox:账号设备码登录、主机会话与原生 WebRTC、首页/弹窗入口;非官方实验功能,不保证所有服务/主机环境可用。+- 串流接入硬件 AV1/HEVC 解码、配对保持与高码率默认配置;PS5、PC、Xbox 共用现有增强链,不另造三套效果器。+- 美乐威 Pro Capture SDK 低延迟入口;普通采集路径保留。原生格式采集上传减少拷贝,MJPEG 多解码器并行并直接写 NV12;高负载下减少额外排队。+- 已有特定 KUHAIMI 27P/RTX5070 静态测试中,2K60 NV12 采集回调至 Present 返回约 1.95→0.90 ms,4K30 约 3.2→1.47 ms;**只代表该软件内部区间,不是采集卡固有延迟或屏幕端到端延迟,不外推所有设备。**-### 新增:NR 时间域抗闪烁四档+**5. 新导出工作流**-在 NR 层的「时间域防闪烁」打开后,可以选择档位(专业模式 → NR 层 → 实验):+- 多文件可编辑顺序队列、每任务独立设置快照、剪辑范围/缩略图、MP4/MKV、码率直接输入、预计体积与单项剩余时间。+- 多音轨与内嵌字幕保留全部/指定轨道;自动保留时跳过不支持封装的轨道并提示,手选不兼容轨道则明确失败。+- 暂停、取消、重试、完成提示音;默认 VBR 8 Mbps。默认开始导出即关闭当前播放/采集/串流以释放 GPU,可关闭此选项。+- 离线导出完整处理源帧;节点模式不导出,FSR/XeSS 实时补帧不等于新增对应离线补帧支持。-| 档位 | 行为 |-| --- | --- |-| 静态累积 | 只在画面基本静止处累积;有运动立即发布新值。最不易拖影 |-| 光流累积 · 默认 | 光流重投影 + 80 ms EMA。**与旧版「时间域防闪烁」完全一致** |-| 光流累积+ | 增加 60 ms 起效 / 180 ms 释放的记忆,并拒绝方向相反的修正 |-| 低频时域重建 | 对半分辨率残差做时域滤波,当前帧高频原样保留 |+**6. OBS 游戏采集兼容**-默认档位是「光流累积」,因此**旧配置的行为不变**。+- 设置 → 通用与外观新增持久化开关(默认关闭),保存后询问“是/否”重启。是正常释放播放器后重新启动,否下次生效;导出时提示等待。+- 软件绘制 UI 避免 UI 与视频 DXGI 交换链竞争,视频/NR/SR/FG 仍走原 GPU 链;部分界面阴影和模糊简化。+- 游戏采集针对视频,完整 UI 使用 Windows 10 (1903+) 窗口采集。该开关不是 RTSS/游戏加加适配。-### 修掉两个时间域审计问题+### Bug 修复-- 零修正不再被当成保护区:此前 `Total==0` 会清空历史,导致某层总量归零时时域链被打断。- 现在零修正仍会记录历史,只是不做时域混合。-- 时间戳断点独立判定:帧间隔超出窗口时**判定历史失效**,而不是仅跳过这一次混合后继续用旧链。+- **多层与状态**:修复堆叠 NR 黑帧/仅一层时域执行、层参数复制隔离、列表/节点配置互相污染、预设恢复混用、断线草稿改动污染运行链、非法倍率写入预设、参数复位与滑条外部状态不同步。+- **补帧与呈现**:FSR 改独立生成纹理,修复同窗口热切换资源生命周期;FSR 4 拒绝后 UI 正确回滚;修复 XeSS 临时字符串迭代器未定义行为和倍率入口;低延迟队列不再误改 NR/SR 顺序;垂直同步保持低深度排队。对比模式明确显示“补帧暂停”,避免误报无效。+- **窗口与 UI**:修复切屏/DPI 崩溃、视频覆盖控制条/菜单/提示、极简黑边与播放条裁剪、拖进度误拖窗口、空页面无法选源、竖屏适配、全屏任务栏/模式切换、Alt 导致输入停顿、弹窗不再出现、输入帧率被刷新打断、滑条支持直接输入与方向键。+- **信息显示**:GPU 占用不再累加多块显卡;阶段时间条不反复重建闪跳;列表显示每层 NR 耗时;负载预算跟随半速节奏;首页卡片稳定更新副标题,减少重建时点击丢失并增加导航日志(未将未复现的 Xbox/PS5 误开报告宣称为已完全定位)。+- **采集/串流**:美乐威 SDK 模式停止并行 DirectShow 视频以避免争用;ResizeBuffers 失败退避;修正采集颜色控制边界、MJPEG 丢帧过度重置历史、音频设备选择保存、源切换残留画面;采集/串流可以暂停再恢复;保存配对、解码路径与 Reflex 卸载修复。+- **导出**:取消后可重试、队列顺序/条目状态、格式不兼容字幕处理、暂停时 ETA 继续走、重复 ETA、慢 GPU 帧被固定两秒超时误杀。现按设备状态等待并记录慢帧/故障,不将真实 GPU 卡死当作导出成功。+- **OBS**:默认 GPU UI 下复现缩放崩溃和捕获 UI 而非视频;新兼容模式规避多交换链冲突。此前 Vulkan 方案弃用,不计入成果。+- **图标**:EXE 新图标及 Qt 窗口/任务栏图标显式设置,解决任务栏默认占位图标。-## 本机验收(RTX 5070,驱动 32.0.16.1656)+### 下载、验证与已知边界-| 项 | 结果 |-| --- | --- |-| 310.9.1 未打补丁 vs 310.7 | 合成序列哈希**相同**(`0x3039202C86BADB9F`),跨版本比较有效 |-| 全补丁 | 16 描述符、31 容器、144 次写入、27+2 内核,哈希三次一致,回滚 `restored=true` |-| 抓帧对比(全补丁 vs 未打补丁) | 55 帧,最大差 **1/255**,p99 差 0,99.32% 像素逐字节相同 |-| FG 真值 harness | 打补丁前后均 PASS |-| 产品 60fps 冒烟 | 2400+ 生成帧、`failed=false` |-| 层释放 / 改尺寸显存 | 4 层→1 层 + 12 次改尺寸后回到基线,增长 0 |-| 输出稳定器 | 静止画面逐帧差异 −99.65%,运动不拖影,强度 0 不派发,debug layer 零错误 |+下载 `Veyra-2.0.0-win64-portable.zip`,完整解压运行 `veyra_qml_ui.exe`;保留旧版,勿用旧配置目录覆盖。新版操作、节点教程与架构见 README。附源码、依赖源码、运行清单与 SHA256。-## 未验证(请重点反馈)+本地基底完成 19 组回归、10 项导出场景;OBS 候选四种增强组合 720 次缩放、8 轮最大化/还原通过,用户确认有效。最终开关重启三路径和实际 ZIP 解压播放短测通过。不同阶段证据分别记录,**不等于同一二进制已通过所有硬件和长期压力测试**。-1. **RTX 40 / 30 系实卡完全没有验证。** 本机只有 RTX 5070,补丁只走了 Ada 路径;- 30/40 系的补丁在 5070 上只能做结构与产物验证,**真实效果需要你的实机**。-2. **多帧生成(3X/4X/6X)在 30/40 系上没有验证。**-3. 低频时域重建档的实际画质与开销未在真实素材上测量。-4. 抗闪烁各档的 P95 迟到指标未在长时运行中测量。-5. 采集卡实时路径未测(采集卡被 1.4.4 占用)。+仍未解决/未验证:部分 RTX40 NR TDR、显存持续增长根因、5090 特定 XeSS 闪退/内容节奏重复帧、部分 GC573/4K X 行为、长时间运行、真实 HDR 屏幕与端到端延迟、跨设备串流/手柄;30/40 FG 与 SF-v2、RX9000 FSR4 ML 不以本机5070代验。参数重建可能短暂停顿。RTSS/游戏加加适配取消,请避免对 Veyra 注入。-## 已知限制+正式应用版本号不改变实验运行库边界:社区 NR、FG 优化内核等不是厂商认证;不宣称完整官方 DLSS 5 集成。允许用户替换 DLL,但不保证 ABI/驱动兼容。-- `nrRuntimeNeedsAmpereRewrite` 只豁免 310.8.x 这条线;其他版本号一律沿用旧行为(改写)。- 若将来出现 310.8 线以外的自解禁版本会被误处理。-- 抗闪烁三档与输出稳定器可以同时开,顺序为「时域在前、稳定器在后」。+## English-## 运行组件+### New features and major improvements-清单见包内 `package-manifest.json` 与 `docs/RUNTIME_COMPONENTS_2.0.0.md`。-补帧与 NR 的社区组件均为**实验性**,不代表 NVIDIA 认证、合作或支持。+**1. Rebuilt interface.** New Home/recent/resume, Cinema, Professional List, Node canvas, Colour, Export and Settings; consistent dark design, icons, menus, confirmations and animations. New rounded gradient-black EXE/window/taskbar icon and updated screenshot/tutorial. Simplified/Traditional Chinese, English and Japanese; configurable UI scale, startup size, shortcuts, audio device and monitored GPU. Hideable cinema controls, fullscreen mode switching/quick controls/locking, click-to-pause, double-click fullscreen, seeking, aspect/rotation, original/enhanced comparison, SDR preview, screenshots and subtitle/audio controls.++**2. Executable node editing and layered processing.** Add/connect/insert/disconnect/delete/duplicate/reset nodes; middle-pan, wheel zoom, fit and auto-layout. Up to four independent NR instances with individual parameters/resolution; multiple colour instances and supported ordering around a single SR. Duplicates start disconnected. Draft edits and the last valid runtime chain are separate. List/Node sessions, presets and settings persist independently; personal preset content choices/import/export/startup default replace imposed built-ins. Flow is shared after input, Video HDR precedes final FG, one FG backend is selected. This is not arbitrary branching. **Offline export is List-only; node export is deferred.** Global NR protection is List-only. Curves, mixer, wheels, B&W/calibration, group bypass/reset, parameter reset, LUTs and colour presets are connected to real processing.++**3. Enhancement backends and diagnostics.** Lecram/SF-v2 NR selection across the chain; new configurations use SF-v2 on RTX20/30/40 and Lecram on RTX50, still experimental. DLSS FG 310.9.1 with attributed Transfusion compatibility; native RTX50 path retained, RTX30/40 hardware validation outstanding. DLSS 2/3/4/6× and XeSS 2/3/4× follow capability limits. Separate FSR3.1/FSR4 ML 2× entries; FSR4 is AMD-only and requires the actual matching provider. Added 5K/6K/7K SR choices, motion inputs, flow quality/AMD half-resolution, cadence/sync/queue/cap controls, output stabiliser, per-layer/node last-second GPU timings and frame-time/load displays. Crash dumps, device-removal/DRED, module inventory, capture frame age and staged VRAM recovery diagnostics improve investigation, not proof that hangs/leaks are fixed.++**4. Sources and capture.** Moonlight/Sunshine PC discovery/manual hosts, PIN pairing, apps, identity persistence, input and statistics; Sunshine is installed separately. Unofficial Xbox device-code login, session API/native WebRTC and UI. Streaming hardware AV1/HEVC, pairing retention and high-bitrate defaults; all sources reuse the enhancement engine. Magewell Pro Capture low-latency SDK option, reduced native capture upload copies, parallel MJPEG decode/direct NV12 and reduced extra queueing under overload. Specific KUHAIMI27P/RTX5070 static tests measured capture-callback-to-Present-return improvements (2K60 NV12 ~1.95→0.90 ms; 4K30 ~3.2→1.47 ms). **These are internal software intervals, not card latency or screen-to-screen latency and not a universal device result.**++**5. Export workflow.** Ordered editable multi-file queue, per-job snapshots, trim/thumbnails, MP4/MKV, typed bitrate, estimated size and one current-file ETA. Keep all/select audio and embedded subtitles; automatic retention skips incompatible tracks with a notice, explicit incompatible selections fail. Pause/cancel/retry/completion sound; default VBR8Mbps and closing playback/capture/streaming on export (optional). Offline export processes source frames fully; List-only and no implied new XeSS/FSR offline FG support.++**6. OBS compatibility.** Persistent default-off Settings switch asks Yes/No to restart; Yes shuts down normally and relaunches, No applies next launch; active exports defer restart. Software UI avoids competing UI/video DXGI chains, while native GPU video/NR/SR/FG remain unchanged; some shadows/blur simplify. Game Capture targets video; use Windows10(1903+) Window Capture for the full UI. Not an RTSS/GamePP adaptation.++### Bug fixes++- **Layers/state:** stacked NR black frames/only one temporal instance, copied parameter isolation, List/Node contamination, mixed preset restoration, drafts changing live state, invalid FG multipliers and reset/slider binding synchronisation.+- **FG/presentation:** independent FSR output textures and safer hot switching; rollback UI after rejected FSR4; XeSS temporary-iterator undefined behaviour/capability controls; low queue no longer changes NR/SR order; shallow vsync queue. Comparison explicitly reports FG paused.+- **Windows/UI:** display/DPI crashes, picture covering controls/menus/tooltips, cinema bars/clipping, seek dragging the window, empty-source selection, portrait layout, fullscreen/taskbar/mode transitions, bare Alt stalls, disappearing dialogs, typed frame-rate resets; editable sliders and arrow keys.+- **Readouts/navigation:** monitor one GPU instead of summing adapters; stable stage bars and per-layer NR timings; half-rate budget; stable Home cards and navigation logs. The un-reproduced Xbox/PS5 wrong-dialog report is not claimed conclusively diagnosed.+- **Capture/streaming:** stop competing DirectShow video in Magewell SDK mode; resize-failure backoff; colour-control boundaries, excessive history resets on MJPEG drops, remembered audio selection, stale source picture, live-source pause/resume, pairing/decoding and Reflex unload fixes.+- **Export:** cancellation retry, queue/job state, incompatible subtitle handling, paused/duplicate ETA and slow GPU frames incorrectly failing after two seconds. Device faults/timeouts remain explicit failures with diagnostics.+- **OBS/icons:** compatibility mode avoids reproduced multi-swapchain resize crashes/UI-only capture. The failed Vulkan experiment was discarded. Explicit Qt window icons replace generic taskbar placeholders.++### Download, validation and limitations++Extract `Veyra-2.0.0-win64-portable.zip` into a new folder and run `veyra_qml_ui.exe`; retain the old version and do not overwrite with old settings. See README for the new workflow, node guide and architecture. Source/dependency archives, manifests and SHA256 are provided.++The local base passed 19 regression groups and 10 export scenarios. The OBS candidate passed 720 resizes/eight maximise-restore cycles across four enhancement configurations and user validation. Final restart paths and an extracted-package playback smoke test passed. These are separately recorded stages, **not certification of all hardware or long-term stability for a single binary**.++Outstanding: some RTX40 NR TDRs, VRAM growth root causes, specific RTX5090 XeSS/cadence reports, GC573/4K X cases, long runs, HDR displays/end-to-end latency and cross-device streaming/controllers. RTX30/40 FG/SF-v2 and RX9000 FSR4 ML require their own hardware validation. Rebuilding processing may stall briefly. RTSS/GamePP adaptation was cancelled; avoid injecting them into Veyra.++The application version does not remove experimental runtime limits. Community NR/FG kernels are not vendor certification or a complete official DLSS5 integration. DLL replacement is allowed without an ABI/driver compatibility guarantee.++## 支持与反馈 / Support & feedback++<p align="center">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220">+ + <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220">+</p>++左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。++Left: optional donation; right: community group. QR valid before 2026-10-09.diff --git a/docs/RELEASE_SUPPORT.md b/docs/RELEASE_SUPPORT.mdindex 326607ba..1b35cea2 100644--- a/docs/RELEASE_SUPPORT.md+++ b/docs/RELEASE_SUPPORT.md@@ -1,12 +1,11 @@-## 支持与反馈--如果这个项目帮到了你,可以请作者喝杯咖啡(微信扫码,完全自愿,不影响任何功能);有问题或想第一时间拿到 beta 版,欢迎进群。+## 支持与反馈 / Support & feedback<p align="center"><img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.0/docs/images/1.4.0/donate-wechat.jpg" alt="微信赞助" width="220"> - <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.4/docs/images/1.4.4/community-group.png" alt="Veyra 交流群 / bug 反馈 / beta 版本" width="220">+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v2.0.0/docs/images/2.0.0/community-group.png" alt="Veyra 交流群 4" width="220"></p>-<p align="center"><small>左:微信赞助 右:Veyra 交流群(bug 反馈与 beta 版本发布)</small></p>-> 交流群二维码 7 天内(2026-09-29 前)有效,过期后需要重新进入更新。赞助码保持不变。+左:微信赞助(自愿,不影响功能);右:交流群。群码按图片标注于 **2026-10-09 前**有效,过期请查看仓库更新。++Left: optional donation; right: community group. QR valid before 2026-10-09.diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 65f62926..d7ba21f4 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -1,5 +1,38 @@# Veyra 工作记录+## 2026-10-02 GitHub 2.0.0 发布++用户授权提交/发布 2.0.0,重写双语 README 与操作教程、重点节点模式和新版架构;Release 中文后英文、先新功能后修复。新 Logo、专业模式截图、新群码入文档,赞助图及 220px 保留。新增依赖源码及 Qt 官方源码材料已归档核验,运行库不变;公开执行与证据路径见 RELEASE_2.0.0_PUBLIC_2026-10-02.md。实际发布回执保存在 releases/2.0.0-final-20261002/publish-receipt.json。旧阶段“不发布”限制被当前用户授权取代,硬件未验项不变。++## 2026-10-02 新 2.0.0 包:OBS 开关重启确认和图标整合++- 用户确认 OBS 候选正常,授权加入开关、是/否重启弹窗、持久化并构建新包。在 release 隔离分支整合 OBS 五文件改动及既有图标,main/OBS 分支不动。产品新增仅 bridge 重启方法、Qt 生命周期结束后重启和设置页确认框;guard 增加四个必要 UI 路径,旧基线不改。+- 保存后弹“需要重启软件”,否保留当前会话,是释放 UI/engine 后启动相同 EXE;保留 data-dir,不继承单次兼容/打开/测试参数,导出期间不打断任务。新 EXE 和窗口/任务栏统一用十尺寸图标。+- build-obs-restart-v2.log 编译链接通过;obs-restart-v3 三组真实进程/信号回归全过,覆盖否、启用并重启、禁用并重启;1864 条 i18n 测试 0 failures。两次测试夹具问题及补证据见 docs/RELEASE_2.0.0_OBS_RESTART_2026-10-02.md,不冒充产品通过。+- 新产物 releases/2.0.0-obs-20261002,构建/日志/测试/临时仍在 E:/项目/Veyra 对应 release-2.0.0-20261002 子目录。打包按已有锁逐文件检查 runtime、签名/版本、patched FFmpeg 来源及许可证,附 Veyra 源码快照。完整第三方对应源码集合仍是公开发布前待办,本轮仅本地交付。最终压缩包核验及冒烟记录随包另附。+- 未 commit、merge、push 或公开发布;未宣称跨显卡/数小时稳定,无独立 Reviewer。++## 2026-10-02 EXE/任务栏新图标与 OBS 缩放崩溃++- 用户授权使用桌面 UI/新logo.png:内置 imagegen 生成圆角炭黑渐变底、保留白色像素手柄/柔光、角外透明、无文字。原图保留;生成图落地 assets/veyra-app-icon.png,格式转换 assets/veyra.ico(16/20/24/32/40/48/64/96/128/256)。生成器原输出位于 Codex generated_images,本地源码资产不依赖该路径。+- apps/veyra-qml/main.cpp 用 LoadImageW 读取已有 IDI_VEYRA,QImage::fromHICON 转换十尺寸,DestroyIcon 释放句柄,QApplication::setWindowIcon 设置窗口/任务栏图标。未改变渲染后端。guard 仅新增上述三个明确路径许可,旧基线未改。package-qml-release.py 临时目录改为 E 盘唯一目录,避免同版本重复打包目录冲突。+- `release-2.0.0-build.py build-icon.log veyra_qml_ui` 编译链接成功;ICO 十个资源负载与 EXE 逐字节相同。初始 PE 核对脚本误把 ICO planes=0 与 RC 规范化 planes=1 当作失败,排查后确认全部十个像素负载相同;该次启动脚本在断言处退出,尚未启动新版/验证任务栏外观。+- 用户随后报告 OBS 游戏采集时 resize 崩溃并要求先不构建。已停止后续构建/打包,未覆盖已交付 ZIP 或 EXE。图标改动待运行验证和重新打包。+- 已采集原包 17:38/17:40 两个转储、应用和 OBS 日志;对照官方 OBS 32.1.2 捕获源码。证据 E:/项目/Veyra/tests/obs-resize-20261002,诊断见 docs/OBS_RESIZE_CRASH_2026-10-02.md。OBS 多交换链共享资源生命周期冲突为首要假设,未完成符号化调用栈/隔离复现,不报告已修复。此问题阻断正式发布,不将之前 19 组回归与四分钟短测外推到 OBS 兼容通过。++## 2026-10-02 2.0.0 正式版本号本地稳定性包++- 用户取消 RTSS/GamePP 修复后,另行要求构建 2.0.0 正式版本包供稳定性测试。本轮新分支 `codex/release-2.0.0-20261002` 从 main `aafdeb061e45ae8cdaebfaf68e16c3d589771c05` 创建,产品源码保持逐文件一致;不恢复已取消的 UI 适配、不合并、不推送、不发布。+- 独立产物:`E:/项目/Veyra/{build,tests,logs,tmp,archives}/release-2.0.0-20261002`。1256 文件基线存于 archives;`python -B scripts/acceptance/release-2.0.0-control.py` 在构建及验收时通过。旧桌面及旧 guard 未修改。+- 全量 Release 构建:`python -B scripts/acceptance/release-2.0.0-build.py build-release.log <21 targets>`,497/497 编译链接通过,完整命令与生成配置在本轮日志和 tmp/build.cmd、dependencies.cmake。Qt 6.8.3;Remote Play、Moonlight、Xbox 开启;沿用已打 PS5 slice 补丁的 FFmpeg。+- `stage-ui-migration.ps1 -UiTarget qml` 建立独立测试目录,随后 `release-2.0.0-tests.py unit-regression`:19 组全通过(QML 29 项通过,仍有既有夹具销毁警告);`... export-regression --export`:10 场景全通过并用 ffprobe 核对生成视频及音轨/字幕数量,包含取消、边界取消、队列重试、MP4/MKV 和不兼容字幕负例。不会把离线串流协议测试写成实际主机通过。+- `test-qml-release-package.py`:10 个正/负测试通过,覆盖错误哈希/大小、遗漏许可证、自引用清单、未列入文件、大小写冲突、越界路径、符号链接及私有/开发文件。+- 新 QML 打包脚本只取当前产物和核验白名单;42 个增强/采集运行文件(13 DLL + 29 内核)复核大小/哈希,DLL 签名和数字版本一致;附 Qt/既有依赖/新增串流/Transfusion 许可。没有把个人配置、测试程序或媒体塞进包。windeployqt 报找不到可选 dxcompiler/dxil DLL,实际清空开发 PATH 的启动结果另见产品验证日志。+- 便携 ZIP:`E:/项目/Veyra/releases/2.0.0-local-20261002/Veyra-2.0.0-win64-portable.zip`,414092210 字节,SHA256 `2eb3d93f50cca8c67442e4d5d409bc19397240a15682eb46f7e484e701f5d8e4`;清单 1507 个文件逐项核验,重新解压到 verify 目录后再次一致。EXE SHA256 `858fb8f63d9b7dc5dff2c8bc1981a6fa997912160617a48b4bfd76a6f220d783`。+- Veyra 源码快照单独提供,明确标记不是完整第三方依赖对应源码集合。正式公开分发前仍须补齐该集合;本轮仅交付用户本地测试。README 明确标注 RTSS/GamePP 兼容未修、历史 TDR/显存反馈未解,以及跨硬件/真实串流等未验边界。+- 从实际 ZIP 解压副本启动 4K H.264 产品验证:独立 data-dir、清空开发 PATH、240 秒定时退出和260秒外部超时,用户同时操作界面;本轮 RTSS/GamePP 未注入。最终退出码、实际帧数和错误汇总见随包单独提供的 STABILITY_REPORT.md,不以短测推断长期稳定。++## 2026-10-02 界面多语言(繁體中文 / English / 日本語)- 分支 `codex/i18n-20261002`(从 main `b205d29`)。设置 → 界面语言可选跟随系统 / 简中 / 繁中 / 英 / 日,立即生效;日志保持中文。说明见 `docs/I18N_2026-10-02.md`。diff --git a/docs/images/2.0.0/community-group.png b/docs/images/2.0.0/community-group.pngnew file mode 100644index 00000000..a884caeaBinary files /dev/null and b/docs/images/2.0.0/community-group.png differdiff --git a/docs/images/2.0.0/professional-mode.png b/docs/images/2.0.0/professional-mode.pngnew file mode 100644index 00000000..7a73d4c4Binary files /dev/null and b/docs/images/2.0.0/professional-mode.png differdiff --git a/i18n/catalog.json b/i18n/catalog.jsonindex 5342e9ad..81faa139 100644--- a/i18n/catalog.json+++ b/i18n/catalog.json@@ -13000,6 +13000,55 @@"zh-TW": ";本次匯出使用 AMD FSR 超解析","en": "; this export uses AMD FSR super resolution","ja": ";今回の書き出しは AMD FSR 超解像を使用します"+ },+ {+ "zh": "OBS 游戏采集兼容",+ "src": "qml/Veyra/SettingsPage.qml",+ "zh-TW": "OBS 遊戲擷取相容",+ "en": "OBS Game Capture compatibility",+ "ja": "OBS ゲームキャプチャ互換"+ },+ {+ "zh": "仅采集视频;界面软件绘制,部分阴影与模糊简化",+ "src": "qml/Veyra/SettingsPage.qml",+ "zh-TW": "僅擷取影片;介面以軟體繪製,部分陰影與模糊簡化",+ "en": "Captures video only; software UI with simpler shadows and blur",+ "ja": "映像のみキャプチャ。UI はソフトウェア描画になり、一部の影・ぼかしを簡略化"+ },+ {+ "zh": "需要重启软件",+ "zh-TW": "需要重新啟動軟體",+ "en": "Restart required",+ "ja": "再起動が必要です",+ "src": "qml/Veyra/SettingsPage.qml"+ },+ {+ "zh": "设置已保存,重启后生效。现在重启吗?当前播放或串流将停止。",+ "zh-TW": "設定已儲存,重新啟動後生效。現在重新啟動嗎?目前播放或串流將停止。",+ "en": "Settings saved. Restart to apply them. Restart now? Current playback or streaming will stop.",+ "ja": "設定を保存しました。適用するには再起動が必要です。今すぐ再起動しますか?再生やストリーミングは停止します。",+ "src": "qml/Veyra/SettingsPage.qml"+ },+ {+ "zh": "设置已保存,请等待导出结束后重启软件",+ "zh-TW": "設定已儲存,請等待匯出結束後重新啟動軟體",+ "en": "Settings saved. Restart after the export finishes.",+ "ja": "設定を保存しました。書き出し完了後に再起動してください。",+ "src": "src/ui/QmlPlayerBridge.cpp"+ },+ {+ "zh": "是",+ "zh-TW": "是",+ "en": "Yes",+ "ja": "はい",+ "src": "qml/Veyra/SettingsPage.qml"+ },+ {+ "zh": "否",+ "zh-TW": "否",+ "en": "No",+ "ja": "いいえ",+ "src": "qml/Veyra/SettingsPage.qml"}]}diff --git a/include/veyra/ui/QmlPlayerBridge.h b/include/veyra/ui/QmlPlayerBridge.hindex fe1754ba..79358fa5 100644--- a/include/veyra/ui/QmlPlayerBridge.h+++ b/include/veyra/ui/QmlPlayerBridge.h@@ -186,6 +186,7 @@ class QmlPlayerBridge : public QObject {Q_PROPERTY(QVariantMap shortcuts READ shortcuts NOTIFY preferencesChanged)// The interface scale chosen for the next start (0 = follow Windows).Q_PROPERTY(int uiScaleActive READ uiScaleActive CONSTANT)+ Q_PROPERTY(bool obsGameCaptureActive READ obsGameCaptureActive CONSTANT)// Audio output (P4-d): the active WASAPI render endpoints by device id, the// stored choice (preferences.audioDevice, empty = system default) and what// the renderer actually opened, including a fallback to the default.@@ -615,6 +616,7 @@ public:Q_INVOKABLE bool setShortcut(const QString& action, const QString& sequence);Q_INVOKABLE void resetShortcuts();int uiScaleActive() const;+ bool obsGameCaptureActive() const;Q_INVOKABLE void openFeedbackPage();Q_INVOKABLE void openReleasesPage();QVariantList audioDevices() const;@@ -953,6 +955,7 @@ public:Q_INVOKABLE void cancelExport();Q_INVOKABLE void pauseExport(bool paused);Q_INVOKABLE void quit();+ Q_INVOKABLE void restartApplication();// Returns this page's controls to the engine defaults (the design's// "重置本页"); it does not touch presets or other pages.Q_INVOKABLE void resetCurrentPage();diff --git a/qml/Veyra/SettingsPage.qml b/qml/Veyra/SettingsPage.qmlindex 7e0d5c21..5bcd9b98 100644--- a/qml/Veyra/SettingsPage.qml+++ b/qml/Veyra/SettingsPage.qml@@ -227,6 +227,21 @@ VPage {onPicked: id => veyra.setPreference("uiScale", Number(id))}}+ VRow {+ label: qsTr("OBS 游戏采集兼容")+ hint: (!!veyra.preferences.obsGameCapture !== veyra.obsGameCaptureActive)+ ? qsTr("重启后生效")+ : qsTr("仅采集视频;界面软件绘制,部分阴影与模糊简化")+ VSwitch {+ objectName: "set-obs-game-capture"+ checked: !!veyra.preferences.obsGameCapture+ onToggled: v => {+ if (veyra.setPreference("obsGameCapture", v)+ && v !== veyra.obsGameCaptureActive)+ obsRestart.open()+ }+ }+ }VRow {label: qsTr("启动窗口大小")hint: qsTr("下次启动生效;超过屏幕时按屏幕缩小并居中")@@ -725,6 +740,16 @@ VPage {}}+ VConfirm {+ id: obsRestart+ objectName: "obs-restart-confirm"+ title: qsTr("需要重启软件")+ text: qsTr("设置已保存,重启后生效。现在重启吗?当前播放或串流将停止。")+ acceptText: qsTr("是")+ rejectText: qsTr("否")+ onAccepted: veyra.restartApplication()+ }+// [data-in] entrance order from pages-b.js PAGES.set.VRise { target: navCard; d: 0 }VRise { target: bodyCard; d: 1 }diff --git a/scripts/acceptance/obs-restart-test.py b/scripts/acceptance/obs-restart-test.pynew file mode 100644index 00000000..10e13267--- /dev/null+++ b/scripts/acceptance/obs-restart-test.py@@ -0,0 +1,92 @@+"""Exercise actual settings signals, modal buttons, persistence and process restart.+Only the isolated baseline-app copy gets temporary QML instrumentation.+"""+from pathlib import Path+import json, os, shutil, subprocess, time+import psutil++ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra')+OUT = BASE / 'tests/release-2.0.0-20261002/obs-restart-v3'+OUT.mkdir(exist_ok=False)+APP = BASE / 'tests/release-2.0.0-20261002/baseline-app'+BUILD = BASE / 'build/release-2.0.0-20261002'+shutil.copy2(BUILD / 'veyra_qml_ui.exe', APP / 'veyra_qml_ui.exe')+shutil.copytree(ROOT / 'qml/Veyra', APP / 'qml/Veyra', dirs_exist_ok=True)+main = APP / 'qml/Veyra/Main.qml'+original = main.read_bytes()+results = []+for case in ('no', 'enable', 'disable'):+ run = OUT / case+ profile = run / 'profile'+ profile.mkdir(parents=True)+ if case == 'disable':+ (profile / 'qml-preferences.v1.json').write_text('{"obsGameCapture":true}')+ desired = case != 'disable'+ code = r'''+ function obsFind(item, name) {+ if (item.objectName === name) return item+ const children = item.children || []+ for (let i = 0; i < children.length; ++i) {+ const found = obsFind(children[i], name)+ if (found) return found+ }+ return null+ }+ Timer {+ interval: 2500; running: true+ onTriggered: {+ const desired = DESIRED+ if (CASE !== "no" && veyra.obsGameCaptureActive === desired) {+ veyra.logUi("restart-test", "CHILD_PASS active=" + desired)+ Qt.quit()+ return+ }+ const sw = root.obsFind(root.contentItem, "set-obs-game-capture")+ if (!sw) { veyra.logUi("restart-test", "FAIL switch missing"); Qt.quit(); return }+ sw.checked = desired+ sw.toggled(desired)+ const dialog = root.obsFind(root.contentItem, "obs-restart-confirm")+ if (!dialog || !dialog.shown || !!veyra.preferences.obsGameCapture !== desired) {+ veyra.logUi("restart-test", "FAIL modal/persistence"); Qt.quit(); return+ }+ veyra.logUi("restart-test", "MODAL_PASS saved=" + desired)+ const button = root.obsFind(root.contentItem, "obs-restart-confirm-" + (CASE === "no" ? "reject" : "accept"))+ button.clicked()+ if (CASE === "no") {+ if (dialog.shown || veyra.obsGameCaptureActive) veyra.logUi("restart-test", "FAIL rejection")+ else veyra.logUi("restart-test", "NO_PASS")+ Qt.quit()+ }+ }+ }+'''.replace('DESIRED', str(desired).lower()).replace('CASE', json.dumps(case))+ main.write_text(original.decode('utf8').rstrip()[:-1] + code + '\n}\n', encoding='utf8')+ env = os.environ.copy()+ for k in ('VEYRA_UI_RHI', 'QT_QUICK_BACKEND', 'QSG_RHI_BACKEND', 'QT_QPA_PLATFORM'):+ env.pop(k, None)+ env.update(TEMP=str(BASE / 'tmp/release-2.0.0-20261002'), TMP=str(BASE / 'tmp/release-2.0.0-20261002'),+ VEYRA_LOG_FILE=str(run / 'app.log'), QML_DISABLE_DISK_CACHE='1')+ try:+ with (run / 'console.log').open('wb') as f:+ p = subprocess.Popen([str(APP / 'veyra_qml_ui.exe'), '--data-dir', str(profile), '--page', 'set',+ '--exit-after', '20000'] + (['--obs-game-capture'] if case == 'disable' else []),+ cwd=APP, env=env, stdout=f, stderr=f)+ rc = p.wait(timeout=35)+ end = time.monotonic() + 25+ marker = 'NO_PASS' if case == 'no' else 'CHILD_PASS'+ while time.monotonic() < end:+ log = (run / 'console.log').read_text(encoding='utf8', errors='replace')+ owned = [q for q in psutil.process_iter(['exe', 'cmdline']) if+ q.info['exe'] and Path(q.info['exe']) == APP / 'veyra_qml_ui.exe' and str(profile) in (q.info['cmdline'] or [])]+ if marker in log and not owned: break+ time.sleep(0.3)+ saved = json.loads((profile / 'qml-preferences.v1.json').read_text(encoding='utf8'))+ result = dict(case=case, exitCode=rc, saved=saved.get('obsGameCapture'),+ pass_=rc == 0 and marker in log and 'FAIL ' not in log and not owned and saved.get('obsGameCapture') == desired)+ results.append(result)+ print(json.dumps(result), flush=True)+ assert result['pass_'], log[-3000:]+ finally:+ main.write_bytes(original)+(OUT / 'results.json').write_text(json.dumps(results, indent=2), encoding='utf8')diff --git a/scripts/acceptance/release-2.0.0-build.py b/scripts/acceptance/release-2.0.0-build.pynew file mode 100644index 00000000..5c788ffd--- /dev/null+++ b/scripts/acceptance/release-2.0.0-build.py@@ -0,0 +1,46 @@+"""Bounded build of the isolated release candidate using existing dependencies."""+import os+import subprocess+import sys+from pathlib import Path++ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra')+TASK = 'release-2.0.0-20261002'+BUILD, TMP, LOGS = (BASE / part / TASK for part in ('build', 'tmp', 'logs'))+CONTROL = ROOT / 'scripts/acceptance/release-2.0.0-control.py'+subprocess.run([sys.executable, '-B', str(CONTROL)], check=True)+for p in (BUILD, TMP, LOGS):+ p.mkdir(parents=True, exist_ok=True)+settings = []+for line in (BASE / 'build/main-merge-20261002/CMakeCache.txt').read_text(encoding='utf8').splitlines():+ if ':' not in line or '=' not in line or line.startswith(('#', '//')):+ continue+ keytype, value = line.split('=', 1)+ key, kind = keytype.split(':', 1)+ if kind in ('INTERNAL', 'STATIC'):+ continue+ if key.startswith('VEYRA_') or key in ('CMAKE_PREFIX_PATH', 'CMAKE_MAKE_PROGRAM', 'PROTOC', 'PKG_CONFIG_EXECUTABLE'):+ settings.append(f'set({key} [[{value}]] CACHE {kind} "Preserve validated product configuration" FORCE)')+(TMP / 'dependencies.cmake').write_text('\n'.join(settings), encoding='utf8')+targets = sys.argv[2:] or ['veyra_qml_ui', 'veyra_qml_quick_tests', 'veyra_qml_data_tests',+ 'veyra_qml_easing_tests', 'veyra_ui_i18n_tests']+if any(not t.replace('_', '').isalnum() for t in targets):+ raise SystemExit('Invalid target')+cmd = TMP / 'build.cmd'+cmd.write_text('@echo off\nchcp 65001 >nul\ncall "C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat" >nul 2>&1\nif errorlevel 1 exit /b 4\n"%TASK_CMAKE%" --preset x64-release -S "%TASK_ROOT%" -B "%TASK_BUILD%" -C "%TASK_TMP%\\dependencies.cmake"\nif errorlevel 1 exit /b 5\n"%TASK_CMAKE%" --build "%TASK_BUILD%" --parallel 4 --target ' + ' '.join(targets) + '\nexit /b %errorlevel%\n', encoding='ascii')+env = os.environ.copy()+env.update(VSLANG='1033', TASK_ROOT=str(ROOT), TASK_BUILD=str(BUILD), TASK_TMP=str(TMP),+ TEMP=str(TMP), TMP=str(TMP),+ TASK_CMAKE='C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/bin/cmake.exe')+log = LOGS / (sys.argv[1] if len(sys.argv) > 1 else 'build-baseline.log')+with log.open('x', encoding='utf8') as stream:+ try:+ result = subprocess.run(['cmd.exe', '/d', '/c', str(cmd)], cwd=ROOT, env=env,+ stdout=stream, stderr=subprocess.STDOUT, timeout=900).returncode+ except subprocess.TimeoutExpired:+ result = 124+print('BUILD', result, log)+print('\n'.join(log.read_text(encoding='utf8', errors='replace').splitlines()[-28:]))+subprocess.run([sys.executable, '-B', str(CONTROL)], check=True)+raise SystemExit(result)diff --git a/scripts/acceptance/release-2.0.0-control.py b/scripts/acceptance/release-2.0.0-control.pynew file mode 100644index 00000000..f02aaa3a--- /dev/null+++ b/scripts/acceptance/release-2.0.0-control.py@@ -0,0 +1,36 @@+"""Verify authorized icon and OBS UI changes against an immutable main baseline."""+import hashlib+import json+import subprocess+from pathlib import Path++ROOT = Path(__file__).resolve().parents[2]+BASE = 'aafdeb061e45ae8cdaebfaf68e16c3d589771c05'+# 2026-10-02: user requested icons, then accepted OBS repair and requested restart UI + package.+ICON_SCOPE = {'README.md', 'README_EN.md', 'assets/veyra.ico', 'assets/veyra-app-icon.png', 'apps/veyra-qml/main.cpp', 'include/veyra/ui/QmlPlayerBridge.h', 'src/ui/QmlPlayerBridge.cpp', 'qml/Veyra/SettingsPage.qml', 'i18n/catalog.json'}+ARCHIVE = Path('E:/项目/Veyra/archives/release-2.0.0-20261002')++def git(*args):+ return subprocess.check_output(['git', '-C', str(ROOT), *args]).decode('utf8').strip()++def main():+ assert git('rev-parse', 'HEAD') == BASE and git('rev-parse', 'main') == BASE+ assert git('branch', '--show-current') == 'codex/release-2.0.0-20261002'+ failures = []+ records = json.loads((ARCHIVE / 'source-baseline.json').read_text(encoding='utf8'))+ for record in records:+ name = record['path']+ if name in ICON_SCOPE or name.startswith(('docs/', 'scripts/')):+ continue+ path = ROOT / name+ if not path.is_file() or hashlib.sha256(path.read_bytes()).hexdigest() != record['sha256']:+ failures.append(name)+ for name in filter(None, git('ls-files', '--others', '--exclude-standard', '-z').split('\0')):+ if (name not in ICON_SCOPE and not name.startswith(('docs/', 'scripts/'))) or Path(name).suffix.lower() in ('.dll', '.exe', '.lib', '.zip', '.ptx', '.onnx', '.pth'):+ failures.append(name)+ print(json.dumps(dict(status='fail' if failures else 'pass', base=BASE,+ failures=failures, baselineFiles=len(records)), indent=2))+ raise SystemExit(bool(failures))++if __name__ == '__main__':+ main()diff --git a/scripts/acceptance/release-2.0.0-tests.py b/scripts/acceptance/release-2.0.0-tests.pynew file mode 100644index 00000000..46b7ad18--- /dev/null+++ b/scripts/acceptance/release-2.0.0-tests.py@@ -0,0 +1,99 @@+"""Run bounded tests from this branch; keep inputs, profiles and evidence isolated."""+import argparse+import hashlib+import json+import os+from pathlib import Path+import shutil+import subprocess+import sys+import time++ROOT = Path(__file__).resolve().parents[2]+BASE = Path('E:/项目/Veyra')+TASK = 'release-2.0.0-20261002'+BUILD = BASE / 'build' / TASK+++def main():+ parser = argparse.ArgumentParser()+ parser.add_argument('label')+ parser.add_argument('--app', type=Path, default=BASE / 'tests' / TASK / 'baseline-app')+ parser.add_argument('--only', nargs='+')+ parser.add_argument('--export', action='store_true')+ args = parser.parse_args()+ if not args.label.replace('-', '').isalnum():+ raise ValueError('Invalid evidence label')+ subprocess.run([sys.executable, '-B', str(ROOT / 'scripts/acceptance/release-2.0.0-control.py')], check=True)+ out = BASE / 'tests' / TASK / args.label+ out.mkdir(exist_ok=False)+ tmp = BASE / 'tmp' / TASK / args.label+ tmp.mkdir(exist_ok=False)+ env = os.environ.copy()+ env.update(TEMP=str(tmp), TMP=str(tmp), QT_QPA_PLATFORM='offscreen',+ QT_QUICK_BACKEND='software', QT_QUICK_CONTROLS_STYLE='Basic',+ QT_FORCE_STDERR_LOGGING='1', QML_DISABLE_DISK_CACHE='1',+ QT_QPA_FONTDIR='C:/Windows/Fonts', VEYRA_EXPORT_TEST_ARTIFACTS=str(out / 'qml-images'))+ (out / 'qml-images').mkdir()+ (out / 'queue').mkdir()+ tests = [(name, []) for name in (+ 'live_timing', 'realtime_preview', 'hdr_display_state',+ 'capture_format_selection', 'capture_color', 'presentation_worker',+ 'iec61937_probe', 'repair_contract', 'unified', 'ui_i18n',+ 'moonlight_protocol', 'moonlight_model', 'qml_easing', 'xbox')]+ tests += [('qml_data', [out / 'data']), ('qml_quick', ['-input', args.app / 'qml-tests']),+ ('export_queue', [out / 'queue']), ('preview_geometry', [out / 'geometry']),+ ('audio_timeline', [out / 'audio'])]+ if args.export:+ media = BASE / 'tests/export-page-20261002/media'+ tests = []+ for mode in ('mp4', 'mkv', 'mkv-trim', 'mp4-selected', 'mp4-none',+ 'mp4-pgs-skip', 'mp4-pgs-reject', 'lifecycle', 'lifecycle-boundary', 'queue'):+ source = media / ('pgs-plain.mkv' if 'pgs' in mode else 'tracks.mkv' if 'mkv' in mode else 'tracks.mp4')+ target = out / ('queue-outputs' if mode == 'queue' else mode + ('.mkv' if 'mkv' in mode else '.mp4'))+ tests.append((mode, [mode, source, target]))+ results = []+ if args.only:+ known = {name for name, _ in tests}+ if set(args.only) - known:+ raise ValueError('Unknown test names')+ tests = [(name, params) for name, params in tests if name in args.only]+ for name, params in tests:+ exe = 'veyra_export_workflow_tests.exe' if args.export else f'veyra_{name}_tests.exe'+ shutil.copy2(BUILD / exe, args.app / exe)+ log = out / (name + '.log')+ started = time.monotonic()+ with log.open('xb') as stream:+ process = subprocess.Popen([str(args.app / exe), *map(str, params)], cwd=args.app,+ env=env, stdout=stream, stderr=subprocess.STDOUT)+ try:+ code = process.wait(timeout=290)+ except subprocess.TimeoutExpired:+ subprocess.run(['taskkill', '/PID', str(process.pid), '/T', '/F'], capture_output=True)+ process.wait(timeout=10)+ code = 124+ result = dict(name=name, exit=code, seconds=round(time.monotonic() - started, 2),+ executableSha256=hashlib.sha256((args.app / exe).read_bytes()).hexdigest(),+ log=str(log), status='pass' if code == 0 else 'fail')+ results.append(result)+ if args.export and code == 0 and name not in ('queue', 'mp4-pgs-reject'):+ target = params[-1]+ probe = json.loads(subprocess.check_output(['ffprobe', '-v', 'error', '-count_frames',+ '-show_streams', '-of', 'json', str(target)], env=env, timeout=30))+ (out / (name + '-probe.json')).write_text(json.dumps(probe, indent=2), encoding='utf8')+ video = [s for s in probe['streams'] if s['codec_type'] == 'video']+ audio = [s for s in probe['streams'] if s['codec_type'] == 'audio']+ subs = [s for s in probe['streams'] if s['codec_type'] == 'subtitle']+ if len(video) != 1 or int(video[0]['nb_read_frames']) <= 0:+ result.update(exit=1, status='fail', reason='No decoded output frames')+ if name in ('mp4', 'mkv', 'mkv-trim', 'mp4-selected', 'mp4-none'):+ expected = 1 if 'selected' in name else 0 if 'none' in name else 2+ if len(audio) != expected or len(subs) != expected:+ result.update(exit=1, status='fail', reason='Wrong audio/subtitle track count')+ print(json.dumps(result), flush=True)+ (out / 'summary.json').write_text(json.dumps(results, indent=2), encoding='utf8')+ raise SystemExit(any(r['exit'] != 0 for r in results))+++if __name__ == '__main__':+ main()diff --git a/scripts/acceptance/test-qml-release-package.py b/scripts/acceptance/test-qml-release-package.pynew file mode 100644index 00000000..6899960d--- /dev/null+++ b/scripts/acceptance/test-qml-release-package.py@@ -0,0 +1,78 @@+"""Negative archive tests: corrupted, unlisted, private and unsafe payloads."""+import hashlib+import importlib.util+import json+from pathlib import Path+import stat+import unittest+import zipfile++SPEC = importlib.util.spec_from_file_location('package', Path(__file__).resolve().parents[1] / 'package-qml-release.py')+PACKAGE = importlib.util.module_from_spec(SPEC)+SPEC.loader.exec_module(PACKAGE)+OUT = Path('E:/项目/Veyra/tests/release-2.0.0-20261002/package-validator')+OUT.mkdir(parents=True, exist_ok=False)++class PackageTests(unittest.TestCase):+ def archive(self, *, extra=None, mutate=None, omit=None, symlink=False):+ payload = {name: b'test bytes' for name in PACKAGE.REQUIRED if name != omit}+ records = [dict(path=n, size=len(b), sha256=hashlib.sha256(b).hexdigest()) for n, b in payload.items()]+ if mutate:+ mutate(records)+ path = OUT / (self.id().split('.')[-1] + '.zip')+ with zipfile.ZipFile(path, 'x') as z:+ for name, data in payload.items():+ z.writestr('Veyra/' + name, data)+ z.writestr('Veyra/package-manifest.json', json.dumps(dict(files=records)))+ if extra:+ z.writestr(extra, b'unlisted')+ if symlink:+ info = zipfile.ZipInfo('Veyra/link')+ info.create_system = 3+ info.external_attr = (stat.S_IFLNK | 0o777) << 16+ z.writestr(info, '../outside')+ return path++ def test_valid(self):+ self.assertEqual(PACKAGE.verify_zip(self.archive())['status'], 'pass')++ def test_corrupt_hash(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(mutate=lambda r: r[0].update(sha256='0'*64)))++ def test_wrong_size(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(mutate=lambda r: r[0].update(size=999)))++ def test_missing_license(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(omit='licenses/qt/LGPL-3.0-only.txt'))++ def test_unlisted(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(extra='Veyra/secret.txt'))++ def test_case_collision(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(extra='Veyra/QT6CORE.DLL'))++ def test_symlink(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(symlink=True))++ def test_traversal(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(extra='Veyra/../outside'))++ def test_self_reference(self):+ with self.assertRaises(ValueError):+ PACKAGE.verify_zip(self.archive(mutate=lambda r: r.append(dict(path='package-manifest.json',size=0,sha256='0'*64))))++ def test_private_and_development_files(self):+ for name in ('runtime_local/user-data-2.0.0/secret.json', 'logs/auth.log',+ 'Qt6Test.dll', 'probe.exe', 'models/a.onnx', 'CON.txt', 'foo. /bar', '../x'):+ with self.subTest(name=name), self.assertRaises(ValueError):+ PACKAGE.validate_payload(name)++if __name__ == '__main__':+ unittest.main(verbosity=2)diff --git a/scripts/package-2.0-dependency-source.py b/scripts/package-2.0-dependency-source.pynew file mode 100644index 00000000..99fc061e--- /dev/null+++ b/scripts/package-2.0-dependency-source.py@@ -0,0 +1,74 @@+"""Local release source material: approved legacy sources plus actual new dependencies.+Never includes proprietary SDKs, runtime DLLs or user profiles.+"""+from pathlib import Path+import hashlib, json, subprocess, zipfile++ROOT = Path(__file__).resolve().parents[1]+BASE = Path('E:/项目/Veyra')+OUT = BASE / 'releases/2.0.0-final-20261002'+OUT.mkdir(parents=True, exist_ok=True)+target = OUT / 'Veyra-2.0.0-dependency-source.zip'+records = []+bad = {'.dll','.exe','.lib','.pdb','.obj','.o','.a','.so','.dylib','.onnx','.pth','.pt','.log','.dmp','.mp4','.mkv','.addon64'}+def digest(data): return hashlib.sha256(data).hexdigest()+def git(p,*args): return subprocess.check_output(['git','-C',str(p),*args]).decode().strip()+def put(z,name,data):+ z.writestr(name,data)+ records.append(dict(path=name,size=len(data),sha256=digest(data)))+def tree(z,p,prefix):+ for f in sorted(p.rglob('*')):+ if f.is_file() and '.git' not in f.parts and f.suffix.lower() not in bad:+ put(z,prefix+'/'+f.relative_to(p).as_posix(),f.read_bytes())+def repo(z,p,prefix):+ put(z,prefix+'/SOURCE_COMMIT.txt',(git(p,'rev-parse','HEAD')+'\n'+git(p,'status','--porcelain','--untracked-files=no')).encode())+ names=git(p,'ls-files','--recurse-submodules','-z').split('\0')+ for n in names:+ f=p/n+ if f.is_file() and f.suffix.lower() not in bad:+ put(z,prefix+'/'+n,f.read_bytes())++with zipfile.ZipFile(target,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:+ old=BASE/'releases/1.4.4/final/Veyra-1.4.4-source.zip'+ assert digest(old.read_bytes())=='7d3a8efed76422eab536d714221f579f1478921b927149fbb5adffa8635c53ba'+ with zipfile.ZipFile(old) as src:+ expected={'Veyra-1.4.1-FFmpeg-source.zip':'15a77217bedceb4280fc680d5c0761544170356ca85e871f1558b61c86ee5f02',+ 'Veyra-1.4.1-RemotePlay-source.zip':'272e41bc128c9bd86d7a9a93e4f0150dd92db6b9d00909643336b9e01561f166'}+ for name,sha in expected.items():+ data=src.read('Veyra-1.4.4-source/dependencies/'+name);assert digest(data)==sha+ put(z,'legacy-unchanged/'+name,data)+ repo(z,BASE/'deps/moonlight/moonlight-common-c','moonlight-common-c')+ vcpkg=Path('C:/veyra-deps/vcpkg')+ for dep in ['libdatachannel','libjuice','usrsctp','libsrtp','plog','nlohmann-json','openssl']:+ sources=list((vcpkg/'buildtrees'/dep/'src').glob('*.clean'))+ assert sources,dep+ # Include both audited libjuice source variants, with the build recipe+ # selecting the patched source via its exact patch; no ambiguity hidden.+ for source in sources: tree(z,source,'xbox/'+dep+'/'+source.name)+ tree(z,vcpkg/'ports'/dep,'xbox/'+dep+'/port')+ share=Path('C:/veyra-deps/xbox-installed/x64-windows-static/share')/dep+ if share.exists():tree(z,share,'xbox/'+dep+'/installed-share')+ tree(z,ROOT/'scripts/xbox','veyra/scripts/xbox')+ tree(z,ROOT/'scripts/moonlight','veyra/scripts/moonlight')+ tree(z,ROOT/'scripts/remoteplay','veyra/scripts/remoteplay')+ put(z,'xbox/installed-status.txt',Path('C:/veyra-deps/xbox-installed/vcpkg/status').read_bytes())+ tree(z,vcpkg/'scripts','vcpkg/scripts')+ tree(z,vcpkg/'triplets','vcpkg/triplets')+ put(z,'vcpkg/COMMIT.txt',git(vcpkg,'rev-parse','HEAD').encode())+ repo(z,Path('C:/Users/123/Desktop/Veyra DLSS Video Player/third_party_local/amd/FidelityFX-SDK-2.3.0'),'fidelityfx-2.3.0')+ qt=BASE/'downloads/qt-source-6.8.3'+ for item in json.loads((qt/'manifest.json').read_text()):+ data=(qt/item['name']).read_bytes();assert digest(data)==item['sha256']+ put(z,'qt/'+item['name'],data)+ put(z,'qt/download-manifest.json',(qt/'manifest.json').read_bytes())+ tree(z,BASE/'deps/qt/6.8.3/msvc2022_64/sbom','qt/binary-sbom')+ for name in ['BUILD_2.0.0.md','RUNTIME_COMPONENTS_2.0.0.md']:+ put(z,'veyra/docs/'+name,(ROOT/'docs'/name).read_bytes())+ put(z,'README.txt',b'Veyra 2.0.0 corresponding open-source dependencies. Legacy archive names identify unchanged source provenance, not the application version. Current Moonlight, Xbox (including libjuice patch and both source variants), Qt 6.8.3 and FidelityFX 2.3.0 are added. Build instructions and patches are included; proprietary SDKs must be obtained separately under their licences. See the application source archive/tag for Veyra and its build integration. No claim that source-only packaging constitutes an independent legal audit.\n')+ z.writestr('source-manifest.json',json.dumps(records,indent=2))+with zipfile.ZipFile(target) as z:+ for r in records:+ with z.open(r['path']) as f: assert hashlib.file_digest(f,'sha256').hexdigest()==r['sha256']+sha=hashlib.file_digest(target.open('rb'),'sha256').hexdigest()+target.with_suffix('.zip.sha256').write_text(sha+' '+target.name+'\n')+print(json.dumps(dict(path=str(target),files=len(records),sha256=sha,bytes=target.stat().st_size)))diff --git a/scripts/package-qml-release.py b/scripts/package-qml-release.pynew file mode 100644index 00000000..193f0130--- /dev/null+++ b/scripts/package-qml-release.py@@ -0,0 +1,294 @@+"""Assemble a local QML candidate from build outputs and an audited runtime lock.++Never copy a previously used application's directory. Runtime identities are a+publisher check, not a restriction on DLLs the application will load at run time.+This creates a candidate, not a public Release or a complete dependency source offer.+"""+import argparse+import tempfile+import hashlib+import json+import os+from pathlib import Path, PurePosixPath+import re+import shutil+import stat+import subprocess+import zipfile++ROOT = Path(__file__).resolve().parents[1]+ARTIFACTS = Path('E:/项目/Veyra')+FORBIDDEN = {'.pdb', '.lib', '.obj', '.h', '.hpp', '.cpp', '.c', '.zip', '.7z',+ '.pth', '.onnx', '.log', '.dmp', '.mp4', '.mkv', '.partial', '.addon64'}+REQUIRED = {'veyra_qml_ui.exe', 'qml/Veyra/Main.qml', 'platforms/qwindows.dll',+ 'Qt6Quick.dll', 'Qt6Core.dll', 'qt.conf', 'licenses/FFMPEG-VEYRA-BUILD.json',+ 'licenses/qt/LGPL-3.0-only.txt', 'licenses/qt/GPL-3.0-only.txt',+ 'licenses/NVIDIA_RTX_VIDEO_SDK_LICENSE.pdf', 'licenses/INTEL_XESS_LICENSE.txt',+ 'licenses/AMD-FIDELITYFX-LICENSE.txt', 'licenses/moonlight/LICENSE.txt',+ 'licenses/xbox/libdatachannel.txt', 'licenses/magewell/MWCapture-SDK-NOTICE.txt',+ 'licenses/DLSSG-Transfusion-MIT.txt', 'release-runtime-manifest.json',+ 'runtime/experimental/release-runtime-manifest.json'}+++def digest(path):+ with path.open('rb') as stream:+ return hashlib.file_digest(stream, 'sha256').hexdigest()+++def relative(name):+ p = PurePosixPath(name)+ if not name or '\\' in name or ':' in name or p.is_absolute() or '..' in p.parts or str(p) != name:+ raise ValueError('Unsafe relative payload path: ' + name)+ if any(part.endswith((' ', '.')) or re.fullmatch(r'(?i)(con|prn|aux|nul|com[1-9]|lpt[1-9])(\..*)?', part)+ for part in p.parts):+ raise ValueError('Unsafe Windows payload path: ' + name)+ return p+++def validate_payload(name):+ p = relative(name)+ parts = {part.lower() for part in p.parts}+ if p.suffix.lower() in FORBIDDEN or parts & {'logs', 'captures', 'qml-tests', '.git', 'third_party_local'}:+ raise ValueError('Forbidden candidate payload: ' + name)+ if any(part.startswith(('user-data', 'qml-preferences', 'last-applied', 'presets.v1')) for part in parts):+ raise ValueError('User data in candidate: ' + name)+ if p.suffix.lower() == '.exe' and name != 'veyra_qml_ui.exe':+ raise ValueError('Unexpected executable: ' + name)+ if any(token in name.lower() for token in ('qt6test', 'qt6quicktest', 'qml/qttest', 'qmltooling/')):+ raise ValueError('Test/development Qt dependency: ' + name)+ if 'runtime_local' in parts and not name.startswith(('runtime_local/amd/fidelityfx/', 'runtime_local/intel/experimental/')):+ raise ValueError('Unapproved runtime_local directory: ' + name)+++def verify_zip(path):+ with zipfile.ZipFile(path) as z:+ for entry in z.infolist():+ relative(entry.filename.rstrip('/'))+ if stat.S_ISLNK(entry.external_attr >> 16):+ raise ValueError('ZIP contains a symbolic link')+ names = [e.filename for e in z.infolist() if not e.is_dir()]+ if len(names) != len(set(n.lower() for n in names)):+ raise ValueError('Duplicate ZIP paths')+ manifests = [n for n in names if n.count('/') == 1 and n.endswith('/package-manifest.json')]+ if len(manifests) != 1:+ raise ValueError('Missing unique package manifest')+ prefix = manifests[0].split('/')[0] + '/'+ manifest = json.loads(z.read(manifests[0]))+ records = manifest['files']+ expected = {prefix + r['path'] for r in records} | {manifests[0]}+ if len(expected) != len(records) + 1 or set(names) != expected:+ raise ValueError('ZIP payload differs from manifest')+ for r in records:+ validate_payload(r['path'])+ info = z.getinfo(prefix + r['path'])+ with z.open(info) as stream:+ actual = hashlib.file_digest(stream, 'sha256').hexdigest()+ if info.file_size != r['size'] or actual != r['sha256']:+ raise ValueError('ZIP identity mismatch: ' + r['path'])+ if REQUIRED - {r['path'] for r in records}:+ raise ValueError('Missing required product/notice files')+ return dict(archive=str(path), sha256=digest(path), verifiedFiles=len(records), status='pass')+++def source_snapshot(output, label, app_sha):+ """Veyra-only working files and packaging instructions; no SDK/runtime.++ Explicitly not the complete dependency source distribution required for a+ public release. Do not silently reuse the old 1.4.1 dependency archives.+ """+ archive = output / ('Veyra-' + label + '-veyra-source.zip')+ names = subprocess.check_output(['git', '-C', str(ROOT), 'ls-files', '-z',+ '--cached', '--others', '--exclude-standard']).decode('utf8').split('\0')+ records = []+ prefix = 'Veyra-' + label + '-veyra-source/'+ with zipfile.ZipFile(archive, 'x', zipfile.ZIP_DEFLATED, compresslevel=6) as z:+ for name in sorted(set(filter(None, names))):+ relative(name)+ if re.search(r'\.(dll|exe|lib|pdb|obj|onnx|pth|zip|7z|ptx|addon64)$|(^|/)(runtime_local|third_party_local|\.git)/', name, re.I):+ raise ValueError('Forbidden source payload: ' + name)+ f = ROOT / name+ if not f.is_file():+ continue # a deletion in the working tree is part of the snapshot+ if f.lstat().st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT:+ raise ValueError('Source contains a junction/symlink: ' + name)+ data = f.read_bytes()+ z.writestr(prefix + name, data)+ records.append(dict(path=name, size=len(data), sha256=hashlib.sha256(data).hexdigest()))+ metadata = dict(schema=1, candidate=label, appSha256=app_sha,+ snapshot='tracked and non-ignored working files',+ baseCommit=subprocess.check_output(['git', '-C', str(ROOT), 'rev-parse', 'HEAD']).decode().strip(),+ completeCorrespondingSource=False, files=records,+ limitation='Dependency sources and exact rebuild materials must be completed before public release.')+ z.writestr(prefix + 'source-snapshot-manifest.json', json.dumps(metadata, indent=2))+ with zipfile.ZipFile(archive) as z:+ for r in records:+ if hashlib.sha256(z.read(prefix + r['path'])).hexdigest() != r['sha256']:+ raise ValueError('Source archive identity mismatch: ' + r['path'])+ archive.with_suffix('.zip.sha256').write_text(digest(archive) + ' ' + archive.name + '\n', encoding='ascii')+ return dict(name=archive.name, sha256=digest(archive), files=len(records), completeCorrespondingSource=False)+++def main():+ p = argparse.ArgumentParser()+ p.add_argument('--verify', type=Path)+ p.add_argument('--build', type=Path)+ p.add_argument('--runtime-source', type=Path)+ p.add_argument('--legacy-licenses', type=Path)+ p.add_argument('--qt', type=Path)+ p.add_argument('--qt-licenses', type=Path)+ p.add_argument('--output', type=Path)+ p.add_argument('--label', default='2.0.0')+ p.add_argument('--no-archive', action='store_true')+ args = p.parse_args()+ if args.verify:+ print(json.dumps(verify_zip(args.verify), indent=2))+ return+ for field in ('build', 'runtime_source', 'legacy_licenses', 'qt', 'qt_licenses', 'output'):+ if getattr(args, field) is None:+ p.error('Missing --' + field.replace('_', '-'))+ if not re.fullmatch(r'2\.0\.0(?:-[a-z0-9.-]+)?', args.label):+ raise ValueError('Expected version 2.0.0 or an explicit test suffix')+ if not args.output.resolve().is_relative_to(ARTIFACTS.resolve()):+ raise ValueError('Candidate output must stay in the E: artifact tree')+ stage = args.output / ('Veyra-' + args.label + '-win64-portable')+ archive = Path(str(stage) + '.zip')+ if stage.exists() or archive.exists():+ raise FileExistsError('Refusing to reuse a candidate')+ stage.mkdir(parents=True)+ env = os.environ.copy()+ tmp = Path(tempfile.mkdtemp(prefix='package-' + args.label + '-', dir=ARTIFACTS / 'tmp'))+ env.update(TEMP=str(tmp), TMP=str(tmp))+ env['PATH'] = str(args.qt / 'bin') + os.pathsep + env['PATH']++ def copy(source, name):+ validate_payload(name)+ target = stage / name+ if target.exists() and digest(source) != digest(target):+ raise ValueError('Conflicting payload: ' + name)+ target.parent.mkdir(parents=True, exist_ok=True)+ shutil.copyfile(source, target)++ def tree(source, target):+ for f in sorted(source.rglob('*')):+ if f.is_file():+ copy(f, target + '/' + f.relative_to(source).as_posix())++ # Only compiled production assets come from the current build.+ copy(args.build / 'veyra_qml_ui.exe', 'veyra_qml_ui.exe')+ tree(args.build / 'qml/Veyra', 'qml/Veyra')+ for f in sorted((args.build / 'shaders').rglob('*.dxil')):+ copy(f, 'shaders/' + f.relative_to(args.build / 'shaders').as_posix())+ with (args.output / ('windeployqt-' + args.label + '.log')).open('xb') as log:+ subprocess.run([str(args.qt / 'bin/windeployqt.exe'), '--release', '--qmldir', str(ROOT / 'qml'),+ '--no-compiler-runtime', '--no-translations', '--no-patchqt', '--no-opengl-sw',+ '--skip-plugin-types', 'qmltooling,generic', str(stage / 'veyra_qml_ui.exe')],+ env=env, stdout=log, stderr=subprocess.STDOUT, check=True, timeout=290)+ (stage / 'qt.conf').write_text('[Paths]\nPrefix=.\nPlugins=.\nQmlImports=qml\nTranslations=translations\n', encoding='utf8')++ cache = (args.build / 'CMakeCache.txt').read_text(encoding='utf8')+ for option in ('VEYRA_BUILD_QML_UI', 'VEYRA_ENABLE_REMOTEPLAY', 'VEYRA_ENABLE_MOONLIGHT', 'VEYRA_ENABLE_XBOX'):+ if not re.search(r'^' + option + r':BOOL=ON$', cache, re.M):+ raise ValueError('Missing full product build option: ' + option)+ ffmpeg = Path(re.search(r'^VEYRA_FFMPEG_ROOT:[^=]+=(.+)$', cache, re.M).group(1))+ ffbuild = json.loads((ffmpeg / 'share/ffmpeg/veyra-local-build.json').read_text(encoding='utf-8-sig'))+ if ffbuild['patchSha256'].lower() != digest(ROOT / 'scripts/ffmpeg/ps5-h264-slices.patch'):+ raise ValueError('PS5 FFmpeg patch provenance mismatch')+ for record in ffbuild['files']:+ source = ffmpeg / 'bin' / record['name']+ if digest(source) != record['sha256'].lower():+ raise ValueError('Patched FFmpeg binary mismatch: ' + record['name'])+ copy(source, record['name'])+ if not (stage / 'dav1d.dll').is_file():+ copy(ffmpeg / 'bin/dav1d.dll', 'dav1d.dll')++ # These are the pinned, already approved runtime identities, including kernels.+ lock = json.loads((ROOT / 'docs/RELEASE_2.0.0_RUNTIME_LOCK.json').read_text(encoding='utf8'))+ audit_env = env.copy()+ # A parent PowerShell 7 session may otherwise force Windows PowerShell 5 to+ # import incompatible copies of its built-in Security module.+ audit_env = {k: v for k, v in audit_env.items() if k.upper() != 'PSMODULEPATH'}+ audit_env.update(VEYRA_PACKAGE_RUNTIME=str(args.runtime_source),+ VEYRA_PACKAGE_LOCK=str(ROOT / 'docs/RELEASE_2.0.0_RUNTIME_LOCK.json'))+ signature_check = r"""$ErrorActionPreference='Stop';+$lock=Get-Content -LiteralPath $env:VEYRA_PACKAGE_LOCK -Raw -Encoding UTF8 | ConvertFrom-Json;+foreach($f in $lock.files) {+ if(-not $f.path.EndsWith('.dll')) { continue };+ $p=Join-Path $env:VEYRA_PACKAGE_RUNTIME $f.path;+ $s=Get-AuthenticodeSignature -LiteralPath $p;+ $v=(Get-Item -LiteralPath $p).VersionInfo;+ $version="$($v.FileMajorPart).$($v.FileMinorPart).$($v.FileBuildPart).$($v.FilePrivatePart)";+ if([string]$s.Status -ne $f.authenticode -or $version -ne $f.fileVersion) { throw ('Runtime metadata mismatch: '+$f.path) }+}; Write-Output 'Publisher signatures and numeric versions match the approved lock.'"""+ subprocess.run(['powershell.exe', '-NoProfile', '-NonInteractive', '-Command', signature_check],+ env=audit_env, check=True, timeout=290)+ for record in lock['files']:+ source = args.runtime_source / relative(record['path'])+ if source.stat().st_size != record['size'] or digest(source) != record['sha256'].lower():+ raise ValueError('Publisher runtime mismatch: ' + record['path'])+ copy(source, record['path'])+ runtime_manifest = json.dumps(dict(schema=2, package=args.label,+ enforcedAtRuntime=False, files=lock['files']), indent=2)+ (stage / 'release-runtime-manifest.json').write_text(runtime_manifest, encoding='utf8')+ # QmlPlayerBridge reads this path. Include every provider in its component list.+ (stage / 'runtime/experimental/release-runtime-manifest.json').write_text(runtime_manifest, encoding='utf8')+ # Copy only the shared, public NGX configuration; never user settings/presets.+ copy(ROOT / 'runtime/config/ngx-local.json', 'runtime/config/ngx-local.json') if (ROOT / 'runtime/config/ngx-local.json').is_file() else copy(args.runtime_source / 'runtime/config/ngx-local.json', 'runtime/config/ngx-local.json')++ # Runtime notices from the audited 1.4.4 layout, plus the new source notices.+ for f in sorted(args.legacy_licenses.rglob('*')):+ if f.is_file():+ name = f.relative_to(args.legacy_licenses).as_posix()+ if not (ROOT / 'licenses' / name).is_file():+ copy(f, 'licenses/' + name)+ tree(ROOT / 'licenses', 'licenses')+ copy(ARTIFACTS / 'deps/moonlight/moonlight-common-c/LICENSE.txt', 'licenses/moonlight/LICENSE.txt')+ copy(ROOT / 'src/ngx/transfusion/LICENSE.txt', 'licenses/DLSSG-Transfusion-MIT.txt')+ tree(args.qt_licenses, 'licenses/qt')+ tree(args.qt / 'sbom', 'licenses/qt/sbom')+ copy(ffmpeg / 'share/ffmpeg/veyra-local-build.json', 'licenses/FFMPEG-VEYRA-BUILD.json')+ # Use a known Microsoft redistributable installation, not arbitrary PATH DLLs.+ redist = Path('C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Redist/MSVC')+ crt = sorted((f for f in redist.iterdir() if re.fullmatch(r'\d+\.\d+\.\d+', f.name)),+ key=lambda f: tuple(map(int, f.name.split('.'))))[-1] / 'x64/Microsoft.VC143.CRT'+ for name in ('vcruntime140.dll', 'vcruntime140_1.dll', 'msvcp140.dll'):+ copy(crt / name, name)+ for name in ('LICENSE', 'THIRD_PARTY_NOTICES.md'):+ copy(ROOT / name, name)+ copy(ROOT / 'README.md', 'README.md')+ copy(ROOT / 'README_EN.md', 'README_EN.md')+ for name in ('veyra-app-icon.png',):+ copy(ROOT / 'assets' / name, 'assets/' + name)+ for name in ('RUNTIME_COMPONENTS_2.0.0.md', 'BUILD.md', 'BUILD_2.0.0.md', 'RELEASE_NOTES_2.0.0.md'):+ copy(ROOT / 'docs' / name, 'docs/' + name)+ copy(ROOT / 'docs/RELEASE_NOTES_2.0.0.md', 'RELEASE_NOTES.md')++ tree(ROOT / 'docs/images/2.0.0', 'docs/images/2.0.0')+ records = []+ for f in sorted(stage.rglob('*')):+ if f.lstat().st_file_attributes & stat.FILE_ATTRIBUTE_REPARSE_POINT:+ raise ValueError('Candidate contains a junction/symlink')+ if f.is_file():+ name = f.relative_to(stage).as_posix()+ validate_payload(name)+ records.append(dict(path=name, size=f.stat().st_size, sha256=digest(f)))+ commit = subprocess.check_output(['git', '-C', str(ROOT), 'rev-parse', 'HEAD']).decode().strip()+ changed = subprocess.check_output(['git', '-C', str(ROOT), 'status', '--porcelain']).decode('utf8')+ manifest = dict(schema=2, version='2.0.0', candidate=args.label, baseCommit=commit,+ worktreeDirty=bool(changed), releaseReady=False, files=records)+ if not args.no_archive:+ manifest['sourceSnapshot'] = source_snapshot(args.output, args.label, digest(stage / 'veyra_qml_ui.exe'))+ (stage / 'package-manifest.json').write_text(json.dumps(manifest, indent=2), encoding='utf8')+ if args.no_archive:+ print(stage)+ return+ with zipfile.ZipFile(archive, 'x', zipfile.ZIP_DEFLATED, compresslevel=6) as z:+ for name in [r['path'] for r in records] + ['package-manifest.json']:+ z.write(stage / name, stage.name + '/' + name)+ result = verify_zip(archive)+ archive.with_suffix('.zip.sha256').write_text(result['sha256'] + ' ' + archive.name + '\n', encoding='ascii')+ (args.output / 'package-audit.json').write_text(json.dumps(result, indent=2), encoding='utf8')+ print(json.dumps(result, indent=2))+++if __name__ == '__main__':+ main()diff --git a/src/ui/QmlPlayerBridge.cpp b/src/ui/QmlPlayerBridge.cppindex 04937436..1748a395 100644--- a/src/ui/QmlPlayerBridge.cpp+++ b/src/ui/QmlPlayerBridge.cpp@@ -4271,7 +4271,7 @@ bool QmlPlayerBridge::setPreference(const QString& key, const QVariant& value) {{"subtitleMargin", {0, 240}}, {"subtitleLines", {0, 8}}};static const QStringList flags{"subtitleEnabled", "subtitleBackground", "subtitleFit","subtitleSecondLanguage", "audioForceStereo", "holdCompare",- "magewellLowLatency", "cinePillHidden", "exportStopsPlayback"};+ "magewellLowLatency", "cinePillHidden", "exportStopsPlayback", "obsGameCapture"};QVariant stored;if (ranges.contains(key)) {bool ok = false; const int n = value.toInt(&ok);@@ -4451,6 +4451,8 @@ void QmlPlayerBridge::resetShortcuts() {if (!impl_->savePrefs()) { impl_->prefs = previous; return; }emit preferencesChanged();}+bool QmlPlayerBridge::obsGameCaptureActive() const { return qApp && qApp->property("veyraObsGameCapture").toBool(); }+int QmlPlayerBridge::uiScaleActive() const { return qApp ? qApp->property("veyraUiScale").toInt() : 0; }void QmlPlayerBridge::openFeedbackPage() {copyDiagnostics();@@ -4579,6 +4581,16 @@ void QmlPlayerBridge::cancelExport() {impl_->exportQueue.queue().cancel();impl_->exportQueue.refresh();pollExport();emit exportChanged();}+void QmlPlayerBridge::restartApplication() {+ if (exportRunning()) {+ emit notice(tr("设置已保存,请等待导出结束后重启软件"), true);+ return;+ }+ rememberPosition(true);+ // main launches the replacement only after UI/engine owners unwind.+ QCoreApplication::exit(42);+}+void QmlPlayerBridge::quit() {rememberPosition(true);if (auto* app = qobject_cast<QGuiApplication*>(QCoreApplication::instance())) app->quit();