Skip to content

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++

Prepare 2.0.4 release notes, measured report and community support

Veyra Goal Agent67b6dd63be6b
diff --git a/AGENTS.md b/AGENTS.md
index ca9db487..8e080807 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -1,5 +1,7 @@
# Veyra 项目 Agent 执行规则
+> **2026-10-06 正式发布授权**:用户明确要求发布2.0.4到Likely7/Veyra-NRVideo,README替换2.0.3更新内容,其余主体保持;新增Discord `https://discord.gg/c9aREyMj8` 与Ko-fi `https://ko-fi.com/likely7`,保留原微信群及微信赞助二维码各width=220;Release详述优化、实测数据与限制,完成后提供1000字以内群公告并关机。本轮允许必要发布文档/打包/源码归档、main合并、推送、v2.0.4标签与Release资产上传和正式发布。按docs/PUBLISH_2.0.4_PLAN_2026-10-06.md执行;沿用已验收程序及运行组件原字节,不扩改引擎、不派子Agent、不做压力测试。发布核实后才能安排关机;公告只交付用户,不代发群。本条覆盖此前本地候选的“不发布/不关机”限制。
+
> **2026-10-06 列表预设纠偏**:用户明确不要独立补帧预设,要求图示光流/估算质量/内容节奏进入已有列表预设,并重新打包2.0.4。按docs/LIST_PRESET_FLOW_PLAN_2026-10-06.md在E盘codex/list-preset-flow-20261006实施必要PresetLibrary/bridge/QML/翻译/定向测试/本地main续修与打包;保留旧包/原工作区及用户配置,不替换运行库。新guard list-preset-flow-control.py使用独立不可变基线。此具体修复覆盖这些接点历史冻结;不推送/公开发布,不派Agent/压力测试/关机,沿用≤300秒测试与≤900秒构建。
> **2026-10-05 2.0.4 整合与测试包授权**:用户要求检查其他分支及 Claude 刚完成的修复,与 NR 强度/三风格画面调控、采集/Xbox 修复整合到本地 main,打包 2.0.4 给用户测试并准备正式发布。工作树 `E:/项目/Veyra/worktrees/release-2.0.4-20261005`,分支 `codex/release-2.0.4-20261005`;按 `docs/RELEASE_2.0.4_PLAN_2026-10-05.md` 执行。本轮允许存档、提交、标签、本地 main 合并、必要版本/打包/翻译/定向验收及发现的整合缺陷修复;仅合入已审查的产品改动,不复活历史撤回实验。Claude UI 工作树的 18 份未提交文件已逐字节封存并复制,原工作区/桌面/用户配置保持。新 guard 为 `scripts/acceptance/release-2.0.4-control.py`,不可变 start 与全引用 bundle 在本轮 E 盘 archives。继续 NVIDIA/AMD 同源码分包,保留 patched FFmpeg、libass、原组件身份;不派 Agent、不跑压力或竞争负载。测试每进程≤300秒、构建≤900秒。此次是本地测试交付及发布准备,未请求新的 push/GitHub Release/上传或关机;HDR/Dolby PR13/14仍暂缓。本条覆盖此次整合所需的旧 main/分支冻结,不扩大无关算法或运行库改动范围。
diff --git a/README.md b/README.md
index 84c5e123..91e6eca1 100644
--- a/README.md
+++ b/README.md
@@ -61,13 +61,13 @@ Turn local video, capture cards and game streaming into one real-time GPU enhanc
---
-**2.0.4 testing, 2026-10-06:** the local candidate combines the later performance/field fixes, NR strength 5 and style-specific automatic/manual picture control, bounded Xbox decoder recovery and Claude's latest UI repairs. List panels can be resized, slider numbers can be typed, floating mode buttons avoid picture clicks, and the existing list/node preset dialog can include shared optical flow, estimation quality and content cadence. GPU scheduling defaults to Realtime when no choice is saved; existing choices remain. [2.0.4 changes and test limits](docs/RELEASE_NOTES_2.0.4.md). The public download remains 2.0.3 until field testing and publication.
+**2.0.4 release, 2026-10-06:** performance improvements, NR strength 5 with style-specific picture control, Xbox/capture recovery, ASS subtitles, UI and unified presets. [Full release notes](docs/RELEASE_NOTES_2.0.4.md).
-**Local development, 2026-10-05:** this branch includes later RTSS restart, custom playback rate, subtitle, UI refresh, Professional layout and fullscreen restoration repairs; public 2.0.3 assets do not include them. Every local NR optimization node now has a measured retain/reject decision: core reuse, single-NR caching, idle prewarming, paused-frame reuse, narrowly admitted compute queues and NVENC export scheduling are retained. Auto NR and coarse-to-fine sizes remain optional and change the image. Normal matched runs measured about 6.1 ms for native single-layer NR; the dual-NR/SR4K/DLSS2X pipeline improved 3.52%, with nearly unchanged submission P99. [The execution record](docs/PERF_EXECUTION_NR_2026-10-04.md) and [local regression evidence](docs/PERF_R0_ACCEPTANCE_2026-10-05.md) distinguish measurements and limitations. Severe background frame loss remains unresolved; reliable OBS Game Capture uses the existing compatibility mode, while GPU UI capture is unstable even in the sealed baseline. HDR/Dolby PRs remain deferred. [Current project status](docs/CURRENT_STATUS.md) distinguishes published, local and unverified work.
+**Measured performance:** the dual-NR/SR4K/DLSS2X enhancement interval improved 3.52%; native single-layer NR remains about 6.1ms and software-Present P99 is nearly unchanged. Creation, paused editing and process GPU utilization are reported separately in the [measurement report](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md). Severe background loss and GPU-UI OBS Game Capture remain unresolved; the existing OBS compatibility mode is available. HDR/Dolby PRs remain deferred.
## Highlights
-**Local NR controls, 2026-10-05:** each NR layer's **Enhancement delta → Total strength** now reaches 5. **Picture control** defaults off; enable it and select Automatic or Manual. Automatic values now adapt separately to styles 0/1/2, with an amount slider (0 retains raw strength, 1 applies full correction). The nine manual controls cover hue, chroma, neutral tint, source color retention, lightness retention, shadows, highlights, local compression and temporal stability. **Use this style’s automatic values** provides a manual starting point. Switching modes keeps manual values; turning control off preserves the original residual algorithm. Five extrapolates one inference's residual, and protection reduces the corresponding changes; it cannot promise full gain five with no artifacts on every video. Presets, List/Node sessions, PNGs and video exports share the settings. [Local validation and known limits](docs/NR_STRENGTH_PROTECTION_EXECUTION_2026-10-05.md); public 2.0.3 assets do not include this feature.
+**2.0.4 NR controls:** each NR layer's **Enhancement delta → Total strength** now reaches 5. **Picture control** defaults off; enable it and select Automatic or Manual. Automatic values now adapt separately to styles 0/1/2, with an amount slider (0 retains raw strength, 1 applies full correction). The nine manual controls cover hue, chroma, neutral tint, source color retention, lightness retention, shadows, highlights, local compression and temporal stability. **Use this style’s automatic values** provides a manual starting point. Switching modes keeps manual values; turning control off preserves the original residual algorithm. Five extrapolates one inference's residual, and protection reduces the corresponding changes; it cannot promise full gain five with no artifacts on every video. Presets, List/Node sessions, PNGs and video exports share the settings. [Local validation and known limits](docs/NR_STRENGTH_PROTECTION_EXECUTION_2026-10-05.md).
- **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.
@@ -75,21 +75,18 @@ Turn local video, capture cards and game streaming into one real-time GPU enhanc
- **New export workflow:** editable ordered queue, trimming, MP4/MKV, multiple audio/embedded subtitle tracks, cancellation/retry and completion sound.
- **Enhancement and compatibility:** four NR runtime choices (NVIDIA original for RTX 50, Lecram, SF-v2 and AMD lmxxf), DLSS/XeSS/FSR options, capture improvements and a persistent OBS Game Capture switch with restart confirmation. Full details are in the Release.
-## New in 2.0.3
+## New in 2.0.4
-- **GPU packages:** choose NVIDIA or AMD. AMD NR assets and NVIDIA-only NR/NGX/VFG/CUDA components are separated. Both keep the existing shared FidelityFX 2.3.0 components and cross-vendor FSR3.1/XeSS; FSR4 stays gray on NVIDIA.
-- **Visible compatibility:** four NR versions, SR backends, FG backends, RTX HDR and optical flow retain unsupported entries with a disabled reason in List/Node mode. Restoring old configurations disables unavailable stages and preserves their parameters.
-- **VFG and field fixes:** all 2–8X multipliers and Low/Medium/High; Xbox audio startup and bounded recovery; bitrate draft/validation/frozen exports; opaque RTSS-compatible UI; removed false NVIDIA App crash detection; fixed the minimal window's right-edge gap. Nine unrelated VFG NPP libraries are omitted. RX9000 inference and Xbox hardware long sessions remain unverified; HDR/Dolby PRs are deferred.
+- **NR strength and picture control:** total strength up to 5, optional per-layer automatic/manual control, separate automatic settings for styles 0/1/2, an amount slider and nine manual controls.
+- **Performance:** reuse eligible NR cores and single-NR configurations, avoid repeated work while paused, and improve selected dual-NR/SR/FG and export scheduling. The matched dual-NR1080/SR4K/DLSS2X enhancement interval fell **3.52%**; warm NR creation fell **75.83%**. See the [measurement report](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md) for conditions and limits. Prewarming defaults off.
+- **Playback and reliability:** custom 0.25–4× speed with preserved pitch, libass ASS subtitles/font attachments, bounded Xbox decoder recovery, capture cadence/history repairs, AMD NR enablement and restored GPU timing after graph rebuilds.
+- **UI and presets:** resizable Professional panels, typed slider values and fullscreen/RTSS/floating-control repairs. Existing List/Node presets can optionally include optical flow, estimation quality and content cadence; unchecked values remain unchanged. Unset GPU scheduling requests Realtime; saved choices are retained.
-
-- Restore NVIDIA original NR as a third choice; existing Lecram/SF-v2 settings remain valid.
-- Optional startup resume reopens the last movie at its saved position or starts the saved capture card configuration. Choose Cinema or Professional as your startup page.
-- Both playback bars offer 1× / 1.5× / 2× / 3× movie speed with preserved audio pitch.
-- Automatic RTSS compatibility, Xbox negotiation/shutdown fixes, VRR capture timing repair and GPU-reset export recovery. Fullscreen VRAM fallback is optional and **off by default**; the reported 5060 Ti leak itself remains unconfirmed.
+[Full 2.0.4 release notes and validation limits](docs/RELEASE_NOTES_2.0.4.md).
## Install and upgrade
-Download **Veyra-2.0.3-NVIDIA-win64-portable.7z** or **Veyra-2.0.3-AMD-win64-portable.7z** for Veyra's active GPU. Extract with 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding. 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 **Veyra-2.0.4-NVIDIA-win64-portable.zip** or **Veyra-2.0.4-AMD-win64-portable.zip** for Veyra's active GPU. Extract with Windows or 7-Zip into a new writable folder and run **veyra_qml_ui.exe**. You need one GPU package to run the application; source assets are only for rebuilding. 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.
Start with effects off, check picture/sound, then enable effects individually. High resolution, layered NR and frame generation increase GPU/VRAM requirements.
@@ -127,7 +124,7 @@ Select Nodes at the top of Professional. This is an executable chain editor:
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.
-**2.0.3 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.
+**2.0.4 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.
### Capture and streaming
@@ -182,11 +179,15 @@ QML renders UI; native D3D12 renders video. List/Nodes share the engine, disconn
## Source and build
-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.3 build/source](docs/BUILD_2.0.3.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.
+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.4 build/source](docs/BUILD_2.0.4.md). Source Git excludes proprietary runtimes/models. Release manifests audit publisher files, not hash-lock user DLL replacements.
## Support
-[Join the Discord community](https://discord.gg/j5TQbFJ7F)
+<p align="center">
+ <a href="https://discord.gg/c9aREyMj8"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Veyra on Discord" height="36"></a>
+ &nbsp;&nbsp;
+ <a href="https://ko-fi.com/likely7"><img src="https://storage.ko-fi.com/cdn/kofi5.png?v=6" alt="Support Veyra on Ko-fi" height="36"></a>
+</p>
<p align="center">
<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">
diff --git a/README_CN.md b/README_CN.md
index fa03fb47..7bbff4c0 100644
--- a/README_CN.md
+++ b/README_CN.md
@@ -14,15 +14,15 @@
Windows 视频、图片、采集卡与串流增强工具。在同一处理链组合超分辨率、NR 画面增强、调色、RTX Video HDR 与补帧。社区增强能力保留实验性质。
-[下载 2.0.3 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.3) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.3.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)
+[下载 2.0.4 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.4) · [完整更新(English / 中文)](docs/RELEASE_NOTES_2.0.4.md) · [反馈](https://github.com/Likely7/Veyra-NRVideo/issues)
-**2.0.4 测试,2026-10-06:** 本地候选整合此前性能/现场修复、NR 强度5与三种风格自动/手动画面调控、Xbox 解码恢复和 Claude 最新 UI 修复。列表参数面板可拖动宽度,滑条数字可点击输入,浮窗切模式避免误触视频,已有列表/节点预设可勾选保存光流算法、运动估算质量和内容节奏。未保存选择时 GPU 优先级默认实时,旧选择保持。详见 [2.0.4 更新与测试边界](docs/RELEASE_NOTES_2.0.4.md)。用户测试和发布前,公开下载仍为2.0.3。
+**2.0.4 正式版,2026-10-06:** 本次整合性能优化、NR强度5与三风格画面调控、Xbox/采集恢复、ASS字幕、界面和统一预设修复。详见[完整更新](docs/RELEASE_NOTES_2.0.4.md)。
-**本地开发进度,2026-10-05:** 此分支另含RTSS重启、自定义倍速、字幕、UI刷新、专业布局和全屏恢复修复,公开2.0.3包尚未包含。本机全部NR优化节点已有实测保留/拒绝处置:保留核心复用、单NR缓存、空闲预热、暂停复用、限定COMPUTE和NVENC导出调度;自动NR及先粗后细会改画面,只作可选。正常匹配对照单层原生NR约6.1ms,双NR+SR4K+DLSS2X整链减少3.52%,软件提交P99几乎未变。[执行账本](docs/PERF_EXECUTION_NR_2026-10-04.md)和[最终回归记录](docs/PERF_R0_ACCEPTANCE_2026-10-05.md)列明数据与限制。严重后台掉帧仍未确认根因;OBS游戏采集使用现有兼容模式,GPU界面捕获在封存基线也不稳定。HDR/杜比PR继续暂缓。
+**实测数据:** 双NR+4K超分+DLSS2X处理区间降低3.52%;单层原生NR仍约6.1ms,软件Present P99基本不变。重建、暂停编辑及暂停GPU占用分别报告,详见[优化数据](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md)。严重后台掉帧根因与GPU界面OBS游戏采集限制仍未解决,OBS可用现有兼容模式;HDR/杜比PR继续暂缓。
## 2.0.0 重点
-**本地 NR 调控,2026-10-05:** 每层 NR 的“增强变化量 → 总变化强度”最高为 5。“画面调控”默认关闭,开启可选自动/手动。自动分别适配风格 0/1/2,新增力度滑块(0 保留原始强度,1 完整纠偏)。手动共九项:色相、色度、中性色、原图色彩保留、亮度保持、暗部、高光、局部压缩和时域稳定;“采用当前风格的自动参数”可作为手动起点。切换方式保留手动数值,关闭调控保留原始残差算法。5 是一次推理结果的残差外推,保护会降低对应变化量,不能保证所有素材在完整局部增益 5 下无失真。预设、列表/节点会话、PNG 与视频导出共用这些设置。验收与已知限制见[本轮记录](docs/NR_STRENGTH_PROTECTION_EXECUTION_2026-10-05.md),公开 2.0.3 包尚未包含此功能。
+**2.0.4 NR 调控:** 每层 NR 的“增强变化量 → 总变化强度”最高为 5。“画面调控”默认关闭,开启可选自动/手动。自动分别适配风格 0/1/2,新增力度滑块(0 保留原始强度,1 完整纠偏)。手动共九项:色相、色度、中性色、原图色彩保留、亮度保持、暗部、高光、局部压缩和时域稳定;“采用当前风格的自动参数”可作为手动起点。切换方式保留手动数值,关闭调控保留原始残差算法。5 是一次推理结果的残差外推,保护会降低对应变化量,不能保证所有素材在完整局部增益 5 下无失真。预设、列表/节点会话、PNG 与视频导出共用这些设置。验收与已知限制见[本轮记录](docs/NR_STRENGTH_PROTECTION_EXECUTION_2026-10-05.md)。
- **全新界面**:首页、极简、专业列表、节点、调色、导出和设置重新组织;支持简中、繁中、English、日本語。
- **节点编辑与多层 NR**:连线编排处理顺序,NR/调色独立参数;列表与节点各自保存配置、会话和预设。
@@ -30,21 +30,18 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
- **导出页重做**:可编辑顺序队列、剪辑、MP4/MKV、多音轨/内嵌字幕、取消重试和完成提示音。
- **增强与兼容**:NR 四版本(50 系 NVIDIA 原版、Lecram、SF-v2、AMD lmxxf)、DLSS/XeSS/FSR 补帧入口、采集优化及带重启确认的 OBS 游戏采集开关。详细新功能与修复见 Release。
-## 2.0.3 新增与修复
+## 2.0.4 新增与修复
-- **显卡分包**:NVIDIA 包不带 AMD NR;AMD 包不带 NVIDIA NR/NGX/VFG/CUDA。按用户追加决定,两包都保留原有 FidelityFX 2.3.0 共用组件,FSR3.1/XeSS 可用,NVIDIA 的 FSR4 入口置灰。
-- **功能可见但禁用**:NR 四版本、超分、补帧、RTX HDR、光流与节点添加统一判断硬件/组件,并显示禁用原因。恢复旧配置关闭不可用效果,保留参数。
-- **VFG 与现场修复**:VFG 全部 2–8X、低/中/高;Xbox 音频启动与有界恢复;导出码率草稿/验证/worker 冻结;小飞机兼容背景不透明;移除 NVIDIA App 插件误判;修复极简右侧像素黑边。删除九个 VFG 不使用的 NPP 库。RX9000 推理和 Xbox 真机长稳仍待验,HDR/杜比 PR 暂缓。
+- **NR 强度与画面调控**:总变化强度最高5;每层可选自动/手动,自动分别适配风格0/1/2,新增力度滑块与九项手动参数。
+- **性能优化**:复用符合条件的NR核心/单NR配置,暂停时减少重复工作,优化限定双NR/超分/补帧组合与导出调度。同条件双NR1080+SR4K+DLSS2X增强区间降低 **3.52%**,NR暖创建耗时降低 **75.83%**;条件和边界见[实测报告](docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md)。预热默认关闭。
+- **播放与稳定性**:自定义0.25–4倍速保调,libass ASS特效字幕/字体附件,Xbox有界解码恢复,采集节奏/掉帧历史修复,AMD NR启用及重建后GPU耗时采样恢复。
+- **界面与预设**:专业面板可拖宽,滑条数字可直接输入,修复全屏/RTSS/浮窗误触。已有列表/节点预设可勾选保存光流算法、估算质量及内容节奏,未勾选项保留当前值。未保存GPU优先级时默认实时,已有选择保留。
-
-- 恢复 50 系 NVIDIA 原版 NR,与 Lecram、SF-v2 共三版切换,已有设置保留。
-- 设置可开启启动自动继续上次视频及进度,或按已保存的采集卡配置直接开始;启动页可选极简或专业。
-- 极简与专业播放栏都支持 1× / 1.5× / 2× / 3× 视频倍速,声音保调。
-- 加入小飞机 RTSS 自动兼容,修复 Xbox 协商/关闭异常与 VRR 采集时序;包含 GPU 重置后断点续导。全屏显存异常自动退窗改为可选开关,**默认关闭**,5060 Ti 显存增长根因仍未确认。
+[2.0.4 完整更新与验收边界](docs/RELEASE_NOTES_2.0.4.md)。
## 下载、启动与升级
-1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.3-NVIDIA-win64-portable.7z** 或 **Veyra-2.0.3-AMD-win64-portable.7z**,用 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。
+1. 按 Veyra 实际使用的显卡下载 **Veyra-2.0.4-NVIDIA-win64-portable.zip** 或 **Veyra-2.0.4-AMD-win64-portable.zip**,用 Windows 或 7-Zip 完整解压到可写新目录,运行 **veyra_qml_ui.exe**。运行只需一个显卡包,源码包仅供重编译。
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 覆盖新版。
@@ -81,7 +78,7 @@ Windows 视频、图片、采集卡与串流增强工具。在同一处理链组
5. 光流在输入后计算并共享,超分为单实例;RTX Video HDR 在补帧前,补帧固定末端,DLSS/XeSS/FSR 选一个后端。不是任意分支混合图。
6. 列表和节点分别保存参数、预设、会话。切回列表恢复原列表配置,节点链保留;切换重建处理链,可能短暂停顿。
-**2.0.3 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
+**2.0.4 节点模式不支持离线导出,也没有列表的 NR 全局保护区域。** 导出前切回列表并确认效果,不会自动转换节点链。
### 采集与串流
@@ -136,11 +133,15 @@ QML 管界面,视频由原生 D3D12 呈现。列表/节点共用引擎,未
## 开源与构建
-Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.3 构建与对应源码](docs/BUILD_2.0.3.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。
+Veyra 原有代码 GPL-3.0;含 Chiaki 串流的组合程序同时适用 AGPL-3.0 与上游 OpenSSL 例外(见 licenses/remoteplay)。[第三方来源与许可](THIRD_PARTY_NOTICES.md)、[2.0.4 构建与对应源码](docs/BUILD_2.0.4.md)。源码与运行库/模型分离;Release manifest 用于发行审计,不用哈希锁阻止用户替换 DLL。
## 支持与反馈
-[加入 Discord 交流群](https://discord.gg/j5TQbFJ7F)
+<p align="center">
+ <a href="https://discord.gg/c9aREyMj8"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Veyra on Discord" height="36"></a>
+ &nbsp;&nbsp;
+ <a href="https://ko-fi.com/likely7"><img src="https://storage.ko-fi.com/cdn/kofi5.png?v=6" alt="Support Veyra on Ko-fi" height="36"></a>
+</p>
<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">
diff --git a/docs/BUILD_2.0.4.md b/docs/BUILD_2.0.4.md
new file mode 100644
index 00000000..820c338c
--- /dev/null
+++ b/docs/BUILD_2.0.4.md
@@ -0,0 +1,28 @@
+# Veyra 2.0.4 corresponding source and build
+
+Download the [v2.0.4 application source](https://github.com/Likely7/Veyra-NRVideo/archive/refs/tags/v2.0.4.zip) and [2.0.4 dependency source](https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.4/Veyra-2.0.4-dependency-source.zip). Source downloads are for rebuilding; select the NVIDIA or AMD portable package to run the application.
+
+The new dependency bundle contains the byte-identical 2.0.3 dependency-source asset (SHA2561a04192bd021a610f08cee7ee0f17093a621bd263fde22c39a6a4a1ac703420c) under unchanged/. That nested bundle contains the byte-identical `Veyra-2.0.0-dependency-source.zip` (538838710 bytes, SHA256 `a293552434381a71169c1c27658f07202d67243ca82e748936b9db15077ce0de`) under `unchanged/`. Extract it for the existing Qt 6.8.3, patched FFmpeg/dav1d, Chiaki, Moonlight, Xbox/WebRTC, OpenSSL and FidelityFX 2.3.0 sources, ports, patches and SBOM. Follow [BUILD_2.0.0.md](BUILD_2.0.0.md) for these unchanged components. Preserve FFmpeg's PS5 H.264 32→256 slice patch and `veyra-local-build.json`. SoundTouch 2.4.1 and its static integration remain in the tagged application source; modifying it and rebuilding relinks the player.
+
+New source materials include:
+
+- Unmodified MIT lmxxf source from commit `78f548749e74824327b8458c57be31a1df78376a`. The actual build uses `src/LmxxfNrRuntime.cpp`, the public C ABI and upstream HIP/codec code. Veyra's `scripts/amd-nr/build-lmxxf-runtime.py`, `msvc-compat.h` and staging recipe accompany it. The build script accepts either the pinned Git checkout or the supplied `lmxxf-78f5487` source directory with its adjacent `source-manifest.json`; both are identity-checked. Compile with MSVC C++17 x64 `/O2 /LD /MD`, forced compatibility include, `NOMINMAX`, Windows 10 definitions and D3D12/DXGI/D3DCompiler/DXGUID/user32 libraries. Captured test images, measurement CSVs, weights and compiled kernels are excluded from the source archive. Model assets and HIP code objects are separate runtime payloads and retain their own terms. The RX9000 driver must provide HIP 7; no driver DLL is shipped.
+- Both GPU packages retain the exact existing FidelityFX SDK 2.3.0 loader, upscaler and framegeneration components, at the user's explicit request to keep FSR3.1/4 together. Corresponding 2.3.0 sources are in the unchanged dependency archive. NVIDIA only exposes FSR3.1; FSR4 remains disabled there. No legacy SDK replacement or ABI compatibility change is shipped.
+
+- MIT VFG sample reference `NVIDIA-Maxine/VFX-SDK-Samples` commit `52011f89c1741d06b40ea312af1f20be8be9ec62`, its notice, README and VideoFrameGenerationEffectApp.cpp. Veyra's own native loader, D3D12/CUDA shared buffers/fences, graph/worker integration and diagnostics are in the application source. Obtain the CUDA driver development headers from NVIDIA and point `VEYRA_CUDA_DRIVER_INCLUDE_DIR` at them. Proprietary NVIDIA SDKs, runtimes and models are excluded from source archives.
+
+Use Visual Studio 2022 C++20 x64, Windows SDK, CMake/Ninja, Python 3.11 and Qt 6.8.3 MSVC2022 x64. Configure `x64-release` with QML, Remote Play, Moonlight and Xbox enabled and explicit external dependency paths as documented in BUILD_2.0.0. Configure with -DVEYRA_DISPLAY_VERSION=2.0.4; the CMake project default remains2.0.3. The distributed PE File/ProductVersion is2.0.4. Build `veyra_qml_ui` and the relevant acceptance targets; the source contains the executed tests/scripts and their bounded subprocess timeouts.
+
+Both GPU packages use **the same executable, QML and shaders**. Run `package-qml-release.py --label 2.0.4 --no-archive` with explicit build/runtime/Qt/license/output paths to assemble fresh production assets. Then run `package-vendor-release.py stage` with `--common-stage`, `--runtime-source`, `--amd-source` and `--output`. After validation and committing the final source, use `refresh`, `finalize` and `archive` with explicit `--build` and `--seven-zip`. Publisher locks/manifests verify identities, signatures and source provenance; they do not prevent user DLL replacements. The script excludes opposite-vendor-only runtime files, driver DLLs, SDK development files, test executables and profiles, and checks every shipped runtime against its manifest. `package-2.0.4-dependency-source.py` generates the matching dependency source asset with a per-file hash manifest.
+
+Veyra's original code is GPL-3.0; the combined Chiaki application is also subject to AGPL-3.0 and its documented OpenSSL exception. Qt remains dynamically linked and replaceable. See `THIRD_PARTY_NOTICES.md`, the source manifests and the packaged licenses for exact component terms. NR models and NVIDIA VFG runtimes are not made MIT by their open-source host/sample code. No claim of independent legal review or vendor certification is made.
+
+## 中文
+
+重编译需同时下载上面的 **v2.0.4 应用源码** 和 **2.0.4 依赖源码包**。后者内嵌原样核验的 2.0.0 依赖包,并增加实际使用的 lmxxf MIT 源码/编译适配(FSR 2.3.0 对应源码沿用)和 MIT VFG 参考代码。Qt、patched FFmpeg、串流与 SoundTouch 构建材料保持完整;必须保留 PS5 slice 补丁。模型、HIP 内核和专有运行库与源码分开。AMD 推理仍需 RX9000 实卡验收;NVIDIA 的本机测试不能替代它。
+
+## libass and static subtitle dependencies
+
++The 2.0.4 dependency asset additionally includes the actual downloaded upstream source archives for libass0.17.5, FreeType2.14.3, FriBidi1.0.16, HarfBuzz14.4.0, libpng1.6.58, zlib1.3.2, Brotli1.2.0 and bzip2 1.0.8, plus their vcpkg30ef65cad98f08e7197c9a1656fbd871bcb72f2d port recipes/patches, installed source metadata and static triplet. Extract subtitle-sources/ and use the pinned vcpkg checkout with those ports; place the source tarballs in its downloads directory. Build libass:x64-windows-static and point -DVEYRA_LIBASS_ROOT=<installed/x64-windows-static> at that installation. Preserve the upstream licenses and compile/link options in the provided metadata. Application source includes the actual LibassRenderer integration. Rebuilding/relinking the application allows replacing these static LGPL/permissive libraries; no proprietary runtime or SDK is included in either source asset. Build tools may be obtained from their official authors.
+
++本次依赖源码额外带实际libass及七个字体/压缩依赖源码、固定vcpkg配方/补丁和来源元数据。可从源码替换静态字幕依赖并重编译/重链接应用。Qt仍动态链接;patched FFmpeg与PS5 slice补丁必须保持。所有源码包带逐文件SHA清单。
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.md
index 1d28859a..79c41c96 100644
--- a/docs/CURRENT_STATUS.md
+++ b/docs/CURRENT_STATUS.md
@@ -597,3 +597,4 @@ RTX Video HDR 独立改动保留。用户已明确终止 NVIDIA FSR 4.1 实验
- 用户授权本地 `1.4.2beta` 内测群包,新增已核验的官方 TrueHDR 原件;未授权 GitHub push/Release 或 Agent 代发。便携包路径、哈希及解压后实测见 WORKLOG。实际 HDR 屏幕和 RTX30/40 HDR 仍待内测。
所有新产物放 `E:/项目/Veyra/`,源码/文档留在隔离工作区;逐项结果以 [WORKLOG](WORKLOG.md) 为准。
+> 2026-10-06正式发布准备:用户已授权2.0.4公开发布、Discord/Ko-fi和原双QR、实测报告/群公告及发布核实后关机。当前工作树E:/项目/Veyra/worktrees/publish-2.0.4-20261006,473生产输入/已测EXE保持,远端README页头/Star History已合并。发布准备和实际远端结果以docs/PUBLISH_2.0.4_PLAN_2026-10-06.md及WORKLOG最新条目为准;此时尚未上传或正式发布。
diff --git a/docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md b/docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md
new file mode 100644
index 00000000..a0e80b16
--- /dev/null
+++ b/docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md
@@ -0,0 +1,29 @@
+# Veyra 2.0.4 优化数据报告 / Performance report
+
+本报告汇总已执行的正常负载匹配对照。RTX5070、驱动616.56,NR性能样本采用Lecram 310.8.3.0;三轮中位数或文中明确的统计区间。数据来自逐节点封存A/B/B-off和最终33组普通播放,无额外竞争负载。它们不是2.0.4对所有显卡、素材或物理屏幕延迟的承诺。
+
+| 实测场景 | 优化前 | 优化后 | 变化与适用范围 |
+|---|---:|---:|---|
+| NR开启的暖重建(核心复用) | 1569.510 ms | 379.349 ms | 创建耗时减少75.83%;排除首次冷创建,同设备/运行库准入 |
+| 最近单NR配置再次开启(真实UI) | 363.8505 ms | 3.6020 ms | createMs减少99.01%;仅严格命中的单NR缓存,含Presenter创建,不含显示端停顿 |
+| 暂停单NR、只改残差参数 | 7.46140 ms | 0.76570 ms | 单次处理减少89.74%;CPU处理含GPU完成等待,300次编辑NR求值由300次降至2次,模型变化仍完整重算 |
+| 暂停时本进程GPU最大引擎利用率 | 2.237185% | 0.010999% | 相对减少99.51%;三轮、每轮24个稳定样本,绝非整卡GPU利用率保证 |
+| 双NR1080上限+SR4K+DLSS2X | 19.481 ms | 18.795 ms | 最终候选增强区间减少3.52%;同候选DIRECT关闭对照为19.299 ms,队列分工贡献2.61% |
+
+最后一组成功软件Present P99为17.236→17.233 ms,几乎不变。单层原生NR为6.129→6.159 ms,也没有稳定提速。模型推理未改;主要收益来自避免重复初始化、严格安全的缓存、暂停闲置及限定队列分工。首次冷创建仍约1.99–2.50秒;保留核心/实例可能保留显存,不能称为零成本。
+
+暂停缓存只在已验证配置准入;SR、抗闪烁、双层NR等不满足时完整处理。近期实例缓存未扩到SR/NR+SR,因为对应输出曾不一致。预热保留为可选、最终默认关闭,1942→100 ms等预热实验不作为默认首启收益。可选Auto NR/先粗后细通过降低内部尺寸改变画面,不能并入同画质默认提速数据。
+
+后台Create候选曾将Present P99从32.044 ms恶化到74.189 ms,超33.333 ms事件3→55,已经拒绝;NVOF预取整次导出慢1.41–5.25%,也已撤回。原生多层低分辨率整体收益约0.62–1.09%却有画面差异,未带入产品。完整8K导出曾改善3.91%,未达到10%目标,不能只取处理区间宣称整次达标。
+
+采集现场日志源PTS仍约60Hz,原NR+4K SR+3X组合实际消费约55–57fps;本次修复节奏判断与掉帧历史恢复,不承诺此负载达到60fps。普通矩阵33/33、sourceSkipped=0,不能证明所有后台掉帧根因已消除;约110ms提交长尾及历史2.8秒断档仍有未解边界。未测物理屏幕/端到端延迟。
+
+证据:[核心复用](PERF_2A_CORE_REUSE_2026-10-04.md)、[单NR缓存](PERF_2C_RECENT_CACHE_2026-10-04.md)、[暂停复用](PERF_5C_PAUSED_NR_2026-10-04.md)、[最终普通播放与回归](PERF_R0_ACCEPTANCE_2026-10-05.md)、[完整执行账本](PERF_EXECUTION_NR_2026-10-04.md)。逐组日志根目录为E:/项目/Veyra/logs/perf-nr-20261004/,报告不把历史节点EXE冒充最终2.0.4新跑的计时。
+
+## English
+
+Matched ordinary-load measurements used an RTX5070, driver616.56 and Lecram310.8.3.0. Three-run medians: warm NR creation 1569.510→379.349ms (75.83% lower); actual-UI reactivation of a strictly matching single-NR cache 363.8505→3.6020ms (99.01% lower); paused single-NR residual editing 7.46140→0.76570ms (89.74% lower); this process's paused GPU-engine utilization 2.237185→0.010999% (99.51% lower). These measure different operations and cannot be combined into a playback-FPS or display-latency claim.
+
+The final dual-NR1080+SR4K+DLSS2X candidate reduced the enhancement interval from19.481 to18.795ms (3.52%). Successful software-Present P99 stayed17.236→17.233ms. Native single-NR timing remained about6.1ms. Cold startup did not improve; prewarming defaults off. Cache retention can retain VRAM and has strict eligibility/invalidation rules. Optional reduced-resolution modes alter the image and are reported separately.
+
+Rejected background creation, NVOF prefetch and low-resolution whole-chain candidates were removed. Capture-card, Xbox/AMD hardware, other RTX models, physical display latency and background long-session behavior are not established by these local results. See the linked original reports for exact configurations, failed candidates and measurement limits.
diff --git a/docs/PUBLISH_2.0.4_PLAN_2026-10-06.md b/docs/PUBLISH_2.0.4_PLAN_2026-10-06.md
new file mode 100644
index 00000000..81328b86
--- /dev/null
+++ b/docs/PUBLISH_2.0.4_PLAN_2026-10-06.md
@@ -0,0 +1,14 @@
+# 2.0.4 正式发布执行(2026-10-06)
+
+用户授权正式发布、更新社区/赞助入口、交付群公告及最后关机。当前隔离分支codex/publish-2.0.4-20261006,路径E:/项目/Veyra/worktrees/publish-2.0.4-20261006。
+
+- 从本地main 0a4e761接入远端main f652c93;合并7630268保留远端新页头、Star History和工作流。
+- 原22个工作区/未提交字节及main、远端引用封存到E:/项目/Veyra/archives/publish-2.0.4-20261006。before.bundle已验证。新checkout的CRLF差异按已测工作区恢复原字节;473个生产输入SHA完全相同,git diff无生产变更。
+- 程序沿用列表预设纠偏最终构建,EXE SHA256 d01329aa6d9fbd6ac2d1eee294782f4cb9d233490595ed2e3e1a9ea12c16b2d6,PE版本2.0.4。原AMD/NVIDIA测试ZIP不改。
+- README只替换当前版本更新/下载及必要过时版本状态、支持入口;原教程、图片、远端页头与Star History保留。两个二维码保留原地址及width=220;新增Discord官方样式徽章和Ko-fi官方咖啡按钮。
+- 从已核验候选manifest白名单生成正式NVIDIA/AMD ZIP,更新发布说明与源码地址。原DLL/模型/许可证/运行时manifest逐字节保持。应用源码对应正式提交;依赖源码保留原2.0.3依赖包并补齐实际libass/字体依赖源码、vcpkg配方与构建信息。源码不含专有SDK、模型或二进制。
+- 正式包逐文件/CRC/PE依赖/显卡分包检查与干净解压启动;473生产输入冻结,因此复用已有功能验收,不重跑无关GPU测试。发布前检查群入口与两个二维码;Ko-fi页面自动访问403,但官方按钮200,按用户给定账号保留链接。
+- 只向nrvideo推送main及v2.0.4,先建draft、上传5项资产、核对远端大小/SHA256/正文后正式发布为latest。保留源分支与旧Release。记录实际发布状态,失败不能报成功。
+- 产物统一E:/项目/Veyra/{releases,logs,tmp,verify,archives,tests}/publish-2.0.4-20261006。群公告≤1000字;全部发布核查完成后安排正常关机。
+
+性能报告取自已完成的三轮匹配A/B数据。重建/暂停编辑/进程GPU利用率和正常处理区间分别标注,不能宣传显示延迟或所有显卡FPS提升。真实Xbox/AMD NR、受影响实卡及物理显示边界沿用原验收限制;HDR/Dolby PR13/14暂缓。
diff --git a/docs/RELEASE_NOTES_2.0.4.md b/docs/RELEASE_NOTES_2.0.4.md
index 29c3637d..ae055cb3 100644
--- a/docs/RELEASE_NOTES_2.0.4.md
+++ b/docs/RELEASE_NOTES_2.0.4.md
@@ -1,6 +1,8 @@
# Veyra 2.0.4
-本地发布前测试候选 / local candidate for testing before publication. Public assets remain at 2.0.3.
+正式应用版本 / Stable application release · 2026-10-06
+
+提供NVIDIA/AMD完整便携ZIP、应用源码、完整依赖源码及SHA256SUMS。社区NR/VFG和非官方主机串流保留实验性质。
## 中文
@@ -15,6 +17,32 @@
本机RTX5070的短测不能代替真实Xbox/RX9070XT、RX9000 NR、RTX20/30/40、受影响采集卡及后台系统场景。采集输入仍约60Hz,原NR+4K SR+3X组合实际消费约55–57fps,未宣称本版本该组合必达60fps。Xbox日志的硬解Invalid argument触发器尚未在AMD实机复制,恢复路径修复不等于驱动/补帧根因已查明。软件回退可能增加CPU与解码延迟,实时GPU优先级可能影响同时运行的其他程序,可在设置改为高/普通。可选Auto NR/先粗后细会改变画面;HDR/Dolby PR13/14继续暂缓。详见 [整合验收](RELEASE_2.0.4_ACCEPTANCE_2026-10-05.md) 和 [本次预设纠偏验收](LIST_PRESET_FLOW_ACCEPTANCE_2026-10-06.md)。
+## 优化数据 / Measured improvements
+
+本机RTX5070、驱动616.56、Lecram310.8.3.0正常负载三轮匹配对照。以下指标分别衡量创建、暂停编辑、进程GPU占用和增强区间:
+
+| 场景 / Operation | 优化前 / Before | 优化后 / After | 减少 / Reduction |
+|---|---:|---:|---:|
+| NR暖创建 / Warm NR creation | 1569.510 ms | 379.349 ms | 75.83% |
+| 严格匹配的单NR再次开启 / Eligible single-NR reactivation | 363.8505 ms | 3.6020 ms | 99.01% |
+| 暂停单NR残差编辑 / Paused single-NR residual edit | 7.46140 ms | 0.76570 ms | 89.74% |
+| 暂停本进程GPU最大引擎利用率 / Paused process GPU-engine utilization | 2.237185% | 0.010999% | 99.51% |
+| 双NR1080+SR4K+DLSS2X增强区间 / Enhancement interval | 19.481 ms | 18.795 ms | 3.52% |
+
+暖创建排除首次冷创建;近期缓存只在严格准入和key一致时命中。暂停编辑统计CPU处理含GPU完成等待;模型/源/尺寸等变化会失效并完整重算。GPU利用率是PID专属计数器,三轮各24个稳定样本,不能等同整卡占用。首启冷创建没有提速,缓存可保留显存,预热默认关闭。
+
+最后一组软件Present P99为17.236→17.233ms,基本不变;单层原生NR仍约6.1ms。不能据此宣称所有素材FPS提高、后台掉帧根治或屏幕延迟降低。后台Create、NVOF预取和整链低分辨率等出现负收益/画面差异的候选已撤回。可选Auto NR/先粗后细会改变画面,未混入同画质默认收益。
+
+完整统计、准入、负优化与证据见[2.0.4数据报告](PERF_RELEASE_REPORT_2.0.4_2026-10-06.md)及[最终33组普通播放](PERF_R0_ACCEPTANCE_2026-10-05.md)。上述计时来自封存优化节点与最终性能候选;正式2.0.4继承其实现,并经过后续整合/预设回归,未将历史节点计时伪装成新的逐显卡测试。
+
+## 验收与升级
+
+列表预设纠偏最终验收:preset482项、chain236项、repair246项、Qt Quick50项,均无失败;真实桥接覆盖勾选/未勾选、列表/节点应用、导入导出、重启/默认值。真实FSR3→XeSS→DLSS→FSR3热切换、NR强度5风格1自动/风格2手动、多层设置与PNG/4K HEVC完整60帧导出通过。两个显卡包从干净解压目录启动,Qt/FFmpeg由包内26个模块加载,ASS五事件/字体附件正常。RTX5070的软件回归不能代替AMD、其他RTX、真实Xbox与用户实卡验收。
+
+请按Veyra使用的GPU选择一个便携ZIP,在新目录完整解压运行veyra_qml_ui.exe,保留旧版以便回退。先检查基础播放,再开启需要的效果。默认未启用效果和NR画面调控;旧明确保存选择保留。GPU优先级可在设置中改为高/普通,实时请求可能影响同时运行的程序。Qt、patched FFmpeg、libass、已审计增强组件和许可证随包提供;无需安装Python/开发SDK。
+
+对应源码与静态字幕依赖重编译见[BUILD_2.0.4](BUILD_2.0.4.md),包含完整应用、实际patched FFmpeg来源、libass与字体依赖源码/配方。运行时身份保持既有批准原件;publisher manifest用于核查分发内容,不阻止用户自行替换DLL,也不保证替换兼容。
+
## English
- NR total strength reaches 5 with optional, per-layer automatic/manual picture control. Styles 0/1/2 have separate automatic defaults; nine manual controls and an amount slider are shared by sessions, presets and exports. Disabling control preserves the original residual behavior.
@@ -26,8 +54,20 @@
Choose the NVIDIA or AMD portable ZIP for the active GPU. Both use one production EXE, unchanged audited runtimes, patched FFmpeg and libass notices. Local RTX5070 regression is not actual Xbox/RX9070XT, RX9000 inference, other RTX hardware, capture-card or physical-display certification. Software decoding can add CPU/latency; GPU priority can be changed in Settings. The original demanding capture combination is not guaranteed to reach 60 processed fps. HDR/Dolby PR13/14 remain deferred.
+## Additional measurement and validation notes
+
+The table reports three-run matched ordinary-load results on RTX5070/616.56 with Lecram310.8.3.0. Creation, residual-edit processing, process GPU utilization and enhancement intervals are separate metrics. Successful software-Present P99 stayed17.236→17.233ms; native single-NR remained about6.1ms. Cold startup did not improve, cached resources can retain VRAM, and prewarming defaults off. Rejected background creation/prefetch/whole-chain candidates are absent from the final product. These results do not establish higher FPS or lower physical display latency on every GPU/source.
+
+Final preset regression passed482 preset,236 chain,246 repair and50 Qt Quick checks, plus actual shared-preset restoration/import/export, supported FG hot switching, NR style controls and full60-frame4K HEVC export. Both portable packages used the same tested EXE and own Qt/FFmpeg modules on clean extraction. Use the appropriate GPU ZIP in a new folder, retain the old release for rollback and read [build/source instructions](BUILD_2.0.4.md) for the complete application and dependency sources. Field hardware limits above remain applicable.
+
## 支持与反馈 / Support & feedback
+<p align="center">
+ <a href="https://discord.gg/c9aREyMj8"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Veyra on Discord" height="36"></a>
+ &nbsp;&nbsp;
+ <a href="https://ko-fi.com/likely7"><img src="https://storage.ko-fi.com/cdn/kofi5.png?v=6" alt="Support Veyra on Ko-fi" height="36"></a>
+</p>
+
<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">
&nbsp;&nbsp;&nbsp;&nbsp;
diff --git a/docs/RELEASE_SUPPORT.md b/docs/RELEASE_SUPPORT.md
index 1b35cea2..0d0f8dc7 100644
--- a/docs/RELEASE_SUPPORT.md
+++ b/docs/RELEASE_SUPPORT.md
@@ -1,5 +1,11 @@
## 支持与反馈 / Support & feedback
+<p align="center">
+ <a href="https://discord.gg/c9aREyMj8"><img src="https://img.shields.io/badge/Discord-Join%20Community-5865F2?style=for-the-badge&logo=discord&logoColor=white" alt="Join Veyra on Discord" height="36"></a>
+ &nbsp;&nbsp;
+ <a href="https://ko-fi.com/likely7"><img src="https://storage.ko-fi.com/cdn/kofi5.png?v=6" alt="Support Veyra on Ko-fi" height="36"></a>
+</p>
+
<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">
&nbsp;&nbsp;&nbsp;&nbsp;
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 42c8542a..59d7bc65 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -8483,3 +8483,12 @@ Run takeover-20261005T061823Z-1ad4ac;logs/tests/tmp/archives 全在 E:/项目/
`verify-merge.py pre-docs` 初次失败仅因桌面status默认折叠两个未追踪目录,而归档采用逐文件枚举;原失败JSON保留。修正为同样 --untracked-files=all后,`pre-docs-v2` exit0,两个目标工作树清洁,桌面HEAD/状态/未提交字节及其余14个工作树HEAD/状态/全部逐文件SHA保持。没有删除、移动或改变桌面文件。
main后续仅更新AGENTS/CURRENT_STATUS/FIELD_FIXES/WORKLOG/本轮合并记录并提交,最后执行 `verify-merge.py final` 和合并后增量bundle核验,结果/最终main提交写入本轮logs与archives JSON。没有新产品改动或重新构建;依据刚才接管时实际通过的build-6、五测试、1578包载荷及七阶段真实播放计时,合并保持同一产品Git源码。没有push/Release/压力测试/用户配置变更/分支删除/旧UI删除;AMD/用户后台卡顿/暂停后新接OBS/其他RTX与主观画质缺口仍保留,等用户后续具体修复要求。
+## 2026-10-06 2.0.4 正式发布准备
+
+用户授权正式发布、Discord/Ko-fi及保留二维码、1000字内公告和发布后关机。本轮E盘路径为worktrees/releases/logs/tmp/verify/archives/tests下publish-2.0.4-20261006。未启动竞争/压力负载,不派子Agent;旧工作区、测试ZIP和运行组件保持。nrvideo远端main f652c93新增README页头/Star History,隔离分支merge7630268接入并保留;发布尚未进行,后续记录实际结果。
+
+bootstrap第一次因新checkout CRLF与实测字节不同失败,未把它算产品变更;逐项确认仅换行差异后复制已测工作区原字节,归档line-ending-restoration.json,git add刷新4项归一化index且cached diff为空。随后publish-2.0.4-control.py通过:22个其它工作区HEAD/status/既有修改SHA保持,473生产输入及原14份定向验收receipt/3测试ZIP SHA保持。EXE仍为d01329aa6d9fbd6ac2d1eee294782f4cb9d233490595ed2e3e1a9ea12c16b2d6;无新引擎/QML/运行库改动。
+
+README更新仅当前版本更新/下载/过时状态和社区支持。独立确认英文远端页头与中文页头完整保留、两QR地址/width=220保持;教程主体未重写。Discord API验证c9aREyMj8为Veyra Dlss5/常规,原两QR及Ko-fi官方按钮HTTP200,Ko-fi用户页自动访问403,保留用户给定链接,不冒充页面验证通过。公告586字符,路径releases/.../GROUP_ANNOUNCEMENT.txt。docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md列暖创建75.83%、单NR重激活99.01%、暂停编辑89.74%、暂停PID GPU利用率99.51%、最终S4增强区间3.52%及相应限制,拒绝/撤回实验没有计入产品收益。
+
+`py -3.11 -B scripts/package-2.0.4-dependency-source.py` v1因为vcpkg scripts含测试二进制后缀拒绝,partial ZIP保留到archives/.../dependency-source-rejected-v1.zip及SHA收据。过滤测试目录与二进制/工具档案后v2退出0,source tar目录安全/ZIP CRC/全部324载荷SHA通过,8个实际字幕上游源码归档及固定vcpkg30ef65cad9配方/补丁/元数据齐全。最终依赖ZIP598704862bytes,SHA2564eccde6343d66e0511b641aaacc12b999e424738a383fcce268d762abb3dceb9。原2.0.3依赖ZIP原字节嵌入,patched FFmpeg与全部串流/Qt源材料保持。日志logs/.../dependency-source-v2.log及dependency-source.json。
diff --git a/scripts/acceptance/publish-2.0.4-audit.py b/scripts/acceptance/publish-2.0.4-audit.py
new file mode 100644
index 00000000..7d978d71
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.4-audit.py
@@ -0,0 +1,52 @@
+"""Independent complete payload hashes, vendor boundaries and PE import closure."""
+import hashlib, json, os, sys
+from pathlib import Path
+import pefile
+
+BASE=Path('E:/项目/Veyra'); TASK='publish-2.0.4-20261006'
+app=Path(sys.argv[1]).resolve(); flavor=sys.argv[2]; label=sys.argv[3]
+assert app.is_relative_to(BASE.resolve()) and flavor in ('NVIDIA','AMD')
+out=BASE/'logs'/TASK/(label+'.json'); assert not out.exists()
+manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))
+names={f.relative_to(app).as_posix():f for f in app.rglob('*') if f.is_file()}
+expected={r['path'] for r in manifest['files']}|{'package-manifest.json'}
+assert set(names)==expected, {'unexpected':list(set(names)-expected),'missing':list(expected-set(names))}
+for row in manifest['files']:
+ f=names[row['path']]
+ with f.open('rb') as stream: sha=hashlib.file_digest(stream,'sha256').hexdigest()
+ assert f.stat().st_size==row['size'] and sha==row['sha256'],row['path']
+assert not any(f.suffix.lower() in ('.pdb','.lib','.pyd','.whl','.addon64') for f in names.values())
+drivers={'nvcuda.dll','nvopticalflow64.dll','amdhip64.dll','amdhip64_6.dll','amdhip64_7.dll'}
+assert not drivers & {f.name.lower() for f in names.values()}
+if flavor=='NVIDIA':
+ assert not any(n.startswith('runtime/amd-nr/') for n in names)
+ vfg={f.name for n,f in names.items() if n.startswith('runtime/nvidia-vfg/')}
+ assert vfg=={'NVVideoEffects.dll','nvVFXVideoFrameGeneration.dll','NVCVImage.dll','cudart64_12.dll','nvngxruntime.dll'},vfg
+else:
+ assert not any(f.name.lower().startswith(('nvngx','nvvideoeffects','cudart','npp','nvcv')) for f in names.values())
+ assert 'runtime/amd-nr/LmxxfNrRuntime.dll' in names
+fsr={f.name for n,f in names.items() if n.startswith('runtime_local/amd/fidelityfx/')}
+assert fsr=={'amd_fidelityfx_loader_dx12.dll','amd_fidelityfx_upscaler_dx12.dll','amd_fidelityfx_framegeneration_dx12.dll'}
+runtime=json.loads((app/'release-runtime-manifest.json').read_text(encoding='utf8'))
+assert runtime==json.loads((app/'runtime/experimental/release-runtime-manifest.json').read_text(encoding='utf8'))
+assert {n for n,f in names.items() if n.startswith(('runtime/','runtime_local/')) and f.suffix.lower() not in ('.json','.md','.txt')} <= {r['path'] for r in runtime['files']}
+packaged={f.name.lower() for f in names.values() if f.suffix.lower()=='.dll'}
+system=Path(os.environ['WINDIR'])/'System32'; imports=[]; missing=[]
+for name,f in names.items():
+ if f.suffix.lower() not in ('.dll','.exe'):continue
+ pe=pefile.PE(str(f),fast_load=True)
+ pe.parse_data_directories(directories=[pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_IMPORT'],pefile.DIRECTORY_ENTRY['IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT']])
+ direct=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_IMPORT',[])]
+ delay=[i.dll.decode().lower() for i in getattr(pe,'DIRECTORY_ENTRY_DELAY_IMPORT',[])]
+ pe.close()
+ assert not any(n.startswith('npp') for n in direct+delay),(name,direct,delay)
+ for dll in direct+delay:
+ if dll in packaged or dll.startswith(('api-ms-','ext-ms-')) or (system/dll).is_file():continue
+ missing.append({'file':name,'dependency':dll,'delay':dll in delay})
+ imports.append({'file':name,'direct':direct,'delay':delay})
+assert not missing,missing
+result=dict(flavor=flavor,app=str(app),payloadFiles=len(manifest['files']),payloadBytes=sum(r['size'] for r in manifest['files']),
+ sourceCommit=manifest.get('baseCommit'),releaseReady=manifest.get('releaseReady'),runtimeFiles=len(runtime['files']),
+ peFiles=len(imports),imports=imports,missing=missing,fsrException=True)
+out.write_text(json.dumps(result,ensure_ascii=False,indent=2),encoding='utf8')
+print('PACKAGE AUDIT PASS',flavor,result['payloadFiles'],result['payloadBytes'],out,flush=True)
diff --git a/scripts/acceptance/publish-2.0.4-cold.py b/scripts/acceptance/publish-2.0.4-cold.py
new file mode 100644
index 00000000..ab32052e
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.4-cold.py
@@ -0,0 +1,67 @@
+from pathlib import Path, PurePosixPath
+import ctypes, hashlib, json, os, stat, subprocess, time, zipfile
+
+BASE=Path('E:/项目/Veyra'); TASK='publish-2.0.4-20261006'
+PACK=BASE/'releases'/TASK/'packages'; LOG=BASE/'logs'/TASK
+receipt=json.loads((PACK/'DELIVERY.json').read_text(encoding='utf8'))
+results=[]
+for row in receipt:
+ vendor=row['vendor']; destination=BASE/'verify'/TASK/vendor
+ assert destination.resolve().is_relative_to((BASE/'verify'/TASK).resolve()) and not destination.exists()
+ archive=Path(row['archive']); assert hashlib.sha256(archive.read_bytes()).hexdigest()==row['archiveSha256']
+ with zipfile.ZipFile(archive) as z:
+ assert len(z.infolist())<5000 and sum(i.file_size for i in z.infolist())<5*1024**3
+ for entry in z.infolist():
+ path=PurePosixPath(entry.filename)
+ assert not path.is_absolute() and '..' not in path.parts and ':' not in entry.filename
+ assert not stat.S_ISLNK(entry.external_attr>>16)
+ assert (destination/entry.filename).resolve().is_relative_to(destination.resolve())
+ z.extractall(destination)
+ app=destination/Path(row['candidate']).name
+ manifest=json.loads((app/'package-manifest.json').read_text(encoding='utf8'))
+ for item in manifest['files']:
+ assert hashlib.sha256((app/item['path']).read_bytes()).hexdigest()==item['sha256'],item['path']
+ out=BASE/'tests'/TASK/('cold-'+vendor); tmp=BASE/'tmp'/TASK/('cold-'+vendor)
+ for p in (out,tmp):p.mkdir(parents=True,exist_ok=False)
+ engine=LOG/('cold-'+vendor+'-engine.log'); console=LOG/('cold-'+vendor+'.log')
+ env={k:v for k,v in os.environ.items() if not k.upper().startswith(('VEYRA_','QT_','QSG_'))}
+ windows=Path(env['WINDIR'])
+ env.update(TEMP=str(tmp),TMP=str(tmp),CUDA_CACHE_PATH=str(tmp/'cuda-cache'),VEYRA_LOG_FILE=str(engine),
+ QML_DISABLE_DISK_CACHE='1',QT_FORCE_STDERR_LOGGING='1',
+ PATH=os.pathsep.join(map(str,(windows/'System32',windows,windows/'System32/Wbem'))))
+ args=[str(app/'veyra_qml_ui.exe'),'--data-dir',str(out/'profile'),'--page','pro','--size','1280x800',
+ '--obs-game-capture','--exit-after','8000',str(BASE/'tests/field-fixes-20261005/media/fx-embedded.mkv')]
+ begin=time.monotonic(); modules=[]
+ with console.open('xb') as log:
+ process=subprocess.Popen(args,cwd=app,env=env,stdout=log,stderr=subprocess.STDOUT)
+ try:
+ time.sleep(3)
+ kernel=ctypes.WinDLL('kernel32',use_last_error=True); psapi=ctypes.WinDLL('psapi',use_last_error=True)
+ kernel.OpenProcess.argtypes=[ctypes.c_ulong,ctypes.c_int,ctypes.c_ulong];kernel.OpenProcess.restype=ctypes.c_void_p
+ kernel.CloseHandle.argtypes=[ctypes.c_void_p]
+ psapi.EnumProcessModulesEx.argtypes=[ctypes.c_void_p,ctypes.POINTER(ctypes.c_void_p),ctypes.c_ulong,ctypes.POINTER(ctypes.c_ulong),ctypes.c_ulong]
+ psapi.GetModuleFileNameExW.argtypes=[ctypes.c_void_p,ctypes.c_void_p,ctypes.c_wchar_p,ctypes.c_ulong]
+ handle=kernel.OpenProcess(0x0410,False,process.pid);assert handle
+ try:
+ items=(ctypes.c_void_p*512)(); needed=ctypes.c_ulong()
+ assert psapi.EnumProcessModulesEx(handle,items,ctypes.sizeof(items),ctypes.byref(needed),3)
+ for i in range(min(512,needed.value//ctypes.sizeof(ctypes.c_void_p))):
+ buffer=ctypes.create_unicode_buffer(32768)
+ if psapi.GetModuleFileNameExW(handle,items[i],buffer,len(buffer)):
+ path=Path(buffer.value)
+ if path.name.startswith(('Qt6','avcodec-','avformat-','avutil-','swscale-','swresample-')):
+ assert path.resolve().is_relative_to(app.resolve()),str(path)
+ modules.append(str(path))
+ finally:kernel.CloseHandle(handle)
+ rc=process.wait(timeout=50)
+ except BaseException:
+ process.kill();process.wait(timeout=10);raise
+ text=engine.read_text(encoding='utf8',errors='replace')+'\n'+console.read_text(encoding='utf8',errors='replace')
+ bad=[line for line in text.splitlines() if any(word in line for word in ('[ERROR]','[FATAL]','ReferenceError:','TypeError:','no root object'))]
+ assert rc==0 and not bad and len(modules)>10 and 'track ready events=5' in text and 'fonts configured container=1' in text,bad[:12]
+ result={'vendor':vendor,'passed':True,'exit':rc,'seconds':round(time.monotonic()-begin,3),'app':str(app),
+ 'args':args,'archiveSha256':row['archiveSha256'],'executableSha256':row['exeSha256'],
+ 'ownQtAndCodecModulePaths':modules,'console':str(console),'engine':str(engine)}
+ results.append(result);print('COLD ZIP START PASS',vendor,len(modules),'modules from extracted app',flush=True)
+ (LOG/'cold-verify-results.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+subprocess.run(['py','-3.11','-B','scripts/acceptance/publish-2.0.4-control.py'],cwd=BASE/'worktrees'/TASK,check=True)
diff --git a/scripts/acceptance/publish-2.0.4-control.py b/scripts/acceptance/publish-2.0.4-control.py
new file mode 100644
index 00000000..674ccc56
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.4-control.py
@@ -0,0 +1,30 @@
+"""Protect prior worktrees/packages and the exact product inputs already tested."""
+from pathlib import Path
+import subprocess,json,hashlib
+BASE=Path('E:/项目/Veyra');TASK='publish-2.0.4-20261006';ROOT=Path(__file__).resolve().parents[2];ARCH=BASE/'archives'/TASK
+def sha(p):
+ with p.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def git(p,*a):return subprocess.check_output(['git','-C',str(p),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+start=ARCH/'start.json';assert sha(start)==(ARCH/'start.sha256').read_text().strip()
+baseline=json.loads(start.read_text(encoding='utf8'))
+mainReceipt=ARCH/'main-merge.json'
+main=json.loads(mainReceipt.read_text(encoding='utf8')) if mainReceipt.exists() else {}
+for row in baseline['worktrees']:
+ p=Path(row['path']);expected=main.get('mainAfter',row['head']) if str(p).replace('\\','/').endswith('/main-merge-20261002') else row['head']
+ assert git(p,'rev-parse','HEAD')==expected,str(p)
+ assert git(p,'status','--porcelain=v1','-z')==row['status'],str(p)
+ for rel,digest in row['dirty'].items():assert sha(p/rel)==digest,str(p/rel)
+frozen=json.loads((BASE/'logs/list-preset-flow-20261006/tested-inputs.json').read_text(encoding='utf8'))
+for rel,digest in frozen['productInputs'].items():assert sha(ROOT/rel)==digest,rel
+for name,digest in frozen['testReceipts'].items():assert sha(BASE/'logs/list-preset-flow-20261006'/(name+'.json'))==digest,name
+allowed={'AGENTS.md','README.md','README_CN.md','docs/RELEASE_NOTES_2.0.4.md','docs/RELEASE_SUPPORT.md','docs/BUILD_2.0.4.md',
+ 'docs/PUBLISH_2.0.4_PLAN_2026-10-06.md','docs/PERF_RELEASE_REPORT_2.0.4_2026-10-06.md','docs/WORKLOG.md','docs/CURRENT_STATUS.md',
+ 'scripts/package-2.0.4-dependency-source.py'}
+allowed.update('scripts/acceptance/publish-2.0.4-'+n+'.py' for n in ('control','package','audit','cold'))
+changed=set(git(ROOT,'diff','--name-only',baseline['mergeHead']).splitlines())
+changed.update(git(ROOT,'ls-files','--others','--exclude-standard').splitlines())
+assert not changed-allowed,sorted(changed-allowed)
+for row in json.loads((BASE/'test-packages/list-preset-flow-20261006/DELIVERY.json').read_text(encoding='utf8')):
+ assert sha(Path(row['archive']))==row['archiveSha256']
+ assert sha(Path(row['sourceZip']))==row['sourceZipSha256']
+print('PUBLISH GUARD PASS',len(baseline['worktrees']),'protected worktrees;',len(frozen['productInputs']),'frozen product inputs')
diff --git a/scripts/acceptance/publish-2.0.4-package.py b/scripts/acceptance/publish-2.0.4-package.py
new file mode 100644
index 00000000..82359d21
--- /dev/null
+++ b/scripts/acceptance/publish-2.0.4-package.py
@@ -0,0 +1,76 @@
+"""Make formal archives from one tested EXE and the prior audited payload lists."""
+from pathlib import Path
+import hashlib,json,subprocess,shutil,zipfile,sys
+ROOT=Path(__file__).resolve().parents[2];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.4-20261006';OUT=BASE/'releases'/TASK
+PACK=OUT/'packages';LOG=BASE/'logs'/TASK;ARCH=BASE/'archives'/TASK;OLD=BASE/'test-packages/list-preset-flow-20261006'
+def sha(p):
+ with p.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def save(p,v):p.write_text(json.dumps(v,ensure_ascii=False,indent=2)+'\n',encoding='utf8')
+def git(*a):return subprocess.check_output(['git','-C',str(ROOT),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.4-control.py')],check=True)
+assert not git('status','--porcelain'),'Commit exact release source before packaging'
+head=git('rev-parse','HEAD');files=list(filter(None,git('ls-files','-z').split('\0')))
+sourcezip=OUT/'Veyra-2.0.4-source.zip';assert not sourcezip.exists()
+with zipfile.ZipFile(sourcezip,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
+ for rel in sorted(files):
+ assert not rel.startswith(('runtime/','runtime_local/','models/','third_party_local/'))
+ assert Path(rel).suffix.lower() not in ('.dll','.exe','.lib','.pdb','.addon64','.onnx','.bin','.hsaco','.ptx','.f16','.f32')
+ z.write(ROOT/rel,'Veyra-2.0.4-source/'+rel)
+with zipfile.ZipFile(sourcezip) as z:
+ assert z.testzip() is None
+ for rel in files:
+ with z.open('Veyra-2.0.4-source/'+rel) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==sha(ROOT/rel),rel
+dependency=OUT/'Veyra-2.0.4-dependency-source.zip';assert dependency.is_file()
+subprocess.run(['git','-C',str(ROOT),'bundle','create',str(ARCH/'source-final.bundle'),'HEAD'],check=True)
+subprocess.run(['git','-C',str(ROOT),'bundle','verify',str(ARCH/'source-final.bundle')],check=True)
+delivery=[]
+docnames=['RELEASE_NOTES_2.0.4.md','BUILD_2.0.4.md','PERF_RELEASE_REPORT_2.0.4_2026-10-06.md','RELEASE_SUPPORT.md',
+ 'PUBLISH_2.0.4_PLAN_2026-10-06.md','RELEASE_2.0.4_ACCEPTANCE_2026-10-05.md','LIST_PRESET_FLOW_ACCEPTANCE_2026-10-06.md',
+ 'PERF_R0_ACCEPTANCE_2026-10-05.md','PERF_2A_CORE_REUSE_2026-10-04.md','PERF_2C_RECENT_CACHE_2026-10-04.md',
+ 'PERF_5C_PAUSED_NR_2026-10-04.md','PERF_EXECUTION_NR_2026-10-04.md']
+for vendor in ('AMD','NVIDIA'):
+ source=OLD/f'Veyra-2.0.4-{vendor}-win64-portable';app=PACK/source.name;assert not app.exists();app.mkdir(parents=True)
+ old=json.loads((source/'package-manifest.json').read_text(encoding='utf8'));immutable={}
+ for row in old['files']:
+ rel=row['path'];p=source/rel
+ assert p.is_file() and p.stat().st_size==row['size'] and sha(p)==row['sha256'],rel
+ assert p.resolve().is_relative_to(source.resolve()) and not p.is_symlink()
+ if rel in ('TEST_2.0.4.md','NR_CONTROLS_LOCAL.md'):continue
+ q=app/rel;q.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(p,q)
+ if rel.startswith(('runtime/','runtime_local/','models/','licenses/')) or p.suffix.lower() in ('.dll','.exe','.cso') or rel in ('release-runtime-manifest.json','vfg-runtime-manifest.json'):
+ immutable[rel]=row['sha256']
+ for name in ('README.md','README_CN.md','README_EN.md','THIRD_PARTY_NOTICES.md','LICENSE'):shutil.copyfile(ROOT/name,app/name)
+ shutil.copyfile(ROOT/'assets/star-history.svg',app/'assets/star-history.svg')
+ for name in docnames:shutil.copyfile(ROOT/'docs'/name,app/'docs'/name)
+ (app/'RELEASE_2.0.4.md').write_text('Veyra2.0.4 正式应用版本 / Stable application release\n\n选择与显卡相符的包,在新目录完整解压,运行veyra_qml_ui.exe。此包包含已审计实验增强组件,其硬件/画质边界见docs/RELEASE_NOTES_2.0.4.md。\n\nRelease: https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.4\nDiscord: https://discord.gg/c9aREyMj8\nKo-fi: https://ko-fi.com/likely7\n对应源码及静态字幕依赖替换/重编译见docs/BUILD_2.0.4.md。\n',encoding='utf8')
+ for rel,digest in immutable.items():assert sha(app/rel)==digest,rel
+ assert sha(app/'veyra_qml_ui.exe')=='d01329aa6d9fbd6ac2d1eee294782f4cb9d233490595ed2e3e1a9ea12c16b2d6'
+ for p in (ROOT/'qml').rglob('*'):
+ if p.is_file():assert sha(app/'qml'/p.relative_to(ROOT/'qml'))==sha(p)
+ actual={p.relative_to(app).as_posix() for p in app.rglob('*') if p.is_file()}
+ assert not any(Path(n).suffix.lower() in ('.pdb','.lib','.addon64','.log','.dmp','.pyc','.whl') or n.startswith(('logs/','tmp/','profile/','outputs/')) for n in actual)
+ records=[dict(path=rel,size=(app/rel).stat().st_size,sha256=sha(app/rel)) for rel in sorted(actual)]
+ manifest=dict(old);manifest.update(version='2.0.4',sourceCommit=head,baseCommit=head,sourceArchiveCommit=head,worktreeDirty=False,
+ localOnly=False,releaseReady=True,releaseTag='v2.0.4',releaseUrl='https://github.com/Likely7/Veyra-NRVideo/releases/tag/v2.0.4',
+ validationRecord='docs/LIST_PRESET_FLOW_ACCEPTANCE_2026-10-06.md',files=records)
+ manifest['correspondingSource'].update(application='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.4/'+sourcezip.name,
+ dependencies='https://github.com/Likely7/Veyra-NRVideo/releases/download/v2.0.4/'+dependency.name,
+ applicationSha256=sha(sourcezip),dependencySha256=sha(dependency),instructions='docs/BUILD_2.0.4.md')
+ save(app/'package-manifest.json',manifest)
+ subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.4-audit.py'),str(app),vendor,'stage-'+vendor],check=True)
+ archive=OUT/(app.name+'.zip');assert not archive.exists();print('ARCHIVE',vendor,flush=True)
+ with zipfile.ZipFile(archive,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
+ for rel in sorted(actual|{'package-manifest.json'}):z.write(app/rel,app.name+'/'+rel)
+ with zipfile.ZipFile(archive) as z:
+ assert z.testzip() is None
+ for row in records:
+ with z.open(app.name+'/'+row['path']) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==row['sha256'],row['path']
+ receipt=dict(vendor=vendor,candidate=str(app),archive=str(archive),archiveBytes=archive.stat().st_size,archiveSha256=sha(archive),
+ exeSha256=sha(app/'veyra_qml_ui.exe'),sourceCommit=head,sourceZip=str(sourcezip),sourceZipSha256=sha(sourcezip),
+ unchangedComponentCount=len(immutable),fileCount=len(records)+1,zipCrcAndAllPayloadHashesPassed=True)
+ delivery.append(receipt);print(json.dumps(receipt,ensure_ascii=False),flush=True)
+save(PACK/'DELIVERY.json',delivery);save(OUT/'DELIVERY.json',delivery)
+assets=[Path(r['archive']) for r in delivery]+[sourcezip,dependency]
+(OUT/'SHA256SUMS.txt').write_text(''.join(sha(p)+' '+p.name+'\n' for p in sorted(assets)),encoding='ascii')
+save(LOG/'assets.json',[dict(path=str(p),name=p.name,bytes=p.stat().st_size,sha256=sha(p)) for p in assets+[OUT/'SHA256SUMS.txt']])
+subprocess.run([sys.executable,'-B',str(ROOT/'scripts/acceptance/publish-2.0.4-control.py')],check=True)
diff --git a/scripts/package-2.0.4-dependency-source.py b/scripts/package-2.0.4-dependency-source.py
new file mode 100644
index 00000000..0720d0bd
--- /dev/null
+++ b/scripts/package-2.0.4-dependency-source.py
@@ -0,0 +1,50 @@
+"""Preserve the approved dependency sources and add actual subtitle source inputs."""
+from pathlib import Path
+import hashlib,json,subprocess,zipfile,tarfile
+ROOT=Path(__file__).resolve().parents[1];BASE=Path('E:/项目/Veyra');TASK='publish-2.0.4-20261006'
+OUT=BASE/'releases'/TASK;OLD=BASE/'releases/release-2.0.3-20261004/Veyra-2.0.3-dependency-source.zip'
+DOWNLOAD=BASE/'downloads/vcpkg-libass-20261005';VCPKG=Path('C:/veyra-deps/vcpkg');INSTALLED=Path('E:/veyra-ascii-20261005/installed/x64-windows-static')
+def sha(p):
+ with p.open('rb') as f:return hashlib.file_digest(f,'sha256').hexdigest()
+def git(*a):return subprocess.check_output(['git','-C',str(VCPKG),*a],stderr=subprocess.PIPE).decode('utf8').strip()
+assert sha(OLD)=='1a04192bd021a610f08cee7ee0f17093a621bd263fde22c39a6a4a1ac703420c'
+assert git('rev-parse','HEAD')=='30ef65cad98f08e7197c9a1656fbd871bcb72f2d' and not git('status','--porcelain')
+sources=['libass-libass-0.17.5.tar.gz','freetype-freetype-VER-2-14-3.tar.gz','fribidi-fribidi-v1.0.16.tar.gz','harfbuzz-harfbuzz-14.4.0.tar.gz',
+ 'pnggroup-libpng-v1.6.58.tar.gz','madler-zlib-v1.3.2.tar.gz','google-brotli-v1.2.0.tar.gz','bzip2-1.0.8.tar.gz']
+ports=['libass','freetype','fribidi','harfbuzz','libpng','zlib','brotli','bzip2','vcpkg-cmake','vcpkg-cmake-config','vcpkg-cmake-get-vars','vcpkg-tool-meson']
+target=OUT/'Veyra-2.0.4-dependency-source.zip';assert not target.exists();records=[]
+def put(z,name,data):
+ z.writestr(name,data);records.append(dict(path=name,size=len(data),sha256=hashlib.sha256(data).hexdigest()))
+with zipfile.ZipFile(target,'x',zipfile.ZIP_DEFLATED,compresslevel=6) as z:
+ z.write(OLD,'unchanged/'+OLD.name,compress_type=zipfile.ZIP_STORED)
+ records.append(dict(path='unchanged/'+OLD.name,size=OLD.stat().st_size,sha256=sha(OLD)))
+ for name in sources:
+ p=DOWNLOAD/name
+ with tarfile.open(p,'r:gz') as t:
+ members=t.getmembers();assert len(members)>10
+ assert all(not Path(m.name).is_absolute() and '..' not in Path(m.name).parts for m in members)
+ z.write(p,'subtitle-sources/upstream/'+name,compress_type=zipfile.ZIP_STORED)
+ records.append(dict(path='subtitle-sources/upstream/'+name,size=p.stat().st_size,sha256=sha(p)))
+ paths=git('ls-files','-z',*(f'ports/{p}' for p in ports),'triplets/x64-windows-static.cmake','scripts').split('\0')
+ for rel in sorted(filter(None,paths)):
+ p=VCPKG/rel
+ if p.suffix.lower() in ('.dll','.exe','.lib','.pdb','.onnx','.bin','.obj','.o','.a','.so','.zip','.7z','.gz','.nupkg','.png','.jpg','.pdf') or '/test' in rel:continue
+ put(z,'subtitle-sources/vcpkg/'+rel,p.read_bytes())
+ for port in ports[:8]:
+ for name in ('copyright','vcpkg.spdx.json','vcpkg_abi_info.txt'):
+ p=INSTALLED/'share'/port/name
+ if p.is_file():put(z,'subtitle-sources/installed-metadata/'+port+'/'+name,p.read_bytes())
+ put(z,'subtitle-sources/installed-metadata/status.txt',(INSTALLED.parent/'vcpkg/status').read_bytes())
+ put(z,'subtitle-sources/VCPKG_COMMIT.txt',(git('rev-parse','HEAD')+'\n').encode())
+ libs={p.name:sha(p) for p in (INSTALLED/'lib').glob('*.lib')}
+ put(z,'subtitle-sources/linked-library-provenance.json',json.dumps(libs,indent=2).encode())
+ put(z,'BUILD_2.0.4.md',(ROOT/'docs/BUILD_2.0.4.md').read_bytes())
+ put(z,'README.txt',b'Veyra2.0.4 corresponding open-source dependencies. Extract unchanged/Veyra-2.0.3-dependency-source.zip, then its nested 2.0.0 dependency source for Qt6.8.3, patched FFmpeg/dav1d, Chiaki, Moonlight, Xbox/WebRTC, OpenSSL, FidelityFX2.3.0 and existing MIT source. subtitle-sources contains the actual upstream libass/font/compression source archives, pinned vcpkg port recipes/patches/scripts and installed metadata. Rebuild/relink the tagged Veyra application with modified static libraries if desired. Preserve licenses and the PS5 slice patch. Proprietary NVIDIA SDKs, runtimes and model weights are excluded.\n')
+ z.writestr('source-manifest.json',json.dumps(records,ensure_ascii=False,indent=2))
+with zipfile.ZipFile(target) as z:
+ assert z.testzip() is None
+ for row in records:
+ with z.open(row['path']) as f:assert hashlib.file_digest(f,'sha256').hexdigest()==row['sha256'],row['path']
+result=dict(path=str(target),bytes=target.stat().st_size,sha256=sha(target),files=len(records),upstreamSources=len(sources),passed=True)
+(BASE/'logs'/TASK/'dependency-source.json').write_text(json.dumps(result,indent=2)+'\n',encoding='utf8')
+print(json.dumps(result),flush=True)