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 1.4.3 release with retained repairs and latest-only documentation

Veyra Goal Agent3b4570e1f3f7
diff --git a/README.md b/README.md
index 8d31e22d..4109574c 100644
--- a/README.md
+++ b/README.md
@@ -13,23 +13,21 @@
Windows 视频播放器与采集卡增强工具。支持视频、图片、采集卡实时预览和 PS5 局域网串流,可组合使用超分辨率、NR 画面增强与补帧。
-[下载 1.4.2 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.2) · [更新记录](docs/RELEASE_NOTES_1.4.2.md) · [反馈问题](https://github.com/Likely7/Veyra-NRVideo/issues)
+[下载 1.4.3 免安装版](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.3) · [更新记录](docs/RELEASE_NOTES_1.4.3.md) · [反馈问题](https://github.com/Likely7/Veyra-NRVideo/issues)
-## 1.4.2 更新
+## 1.4.3 更新
-**RTX Video HDR**:在专业模式的增强设置中开启,将 SDR 视频转换为 HDR,可调整对比度、饱和度、中间灰和峰值亮度,与 NR、超分和补帧组合,支持 HEVC Main10 HDR 导出。HDR 预览需要兼容的 HDR 显示器并开启 Windows HDR;SDR 屏保持 SDR,导出不要求 HDR 屏。集成的是视频版技术,不是游戏 RTX HDR。
+**补帧与呈现**:修复 DLSS / XeSS 切换后自动弹回、XeSS 倍率能力缓存和部分错误补帧受限路径;修正调度成本统计、实时呈现相位、GPU 完成同步及文件播放追赶。保留用户选择的倍率,不自动降档,也不新增固定 35/50ms 等待。XeSS 垂直同步接入提供方呈现链路。
-**帧同步**:专业模式 → 运动 → 帧同步,默认关闭,可选低排队、均匀呈现(前端同步)、NVIDIA Reflex(实验)。用于控制排队与提交节奏,不凭空提高性能;开启补帧时 Reflex 明确回退低排队,XeSS 保持自身调度。[延迟实测与边界](docs/FRAME_PACING_ACCEPTANCE_2026-09-18.md)。
+**窗口与设置**:修复拖动边角放大窗口时的栈耗尽崩溃,合并跨屏 DPI 字体与布局刷新;修复字幕按钮闪关、字幕设置无法连续调整、数值输入被刷新覆盖。参数滑条新增单项还原,按住 V 对比原画时也会绕过调色。
-**其他更新**:窗口/显示器画面采集、手动协商采集卡设备帧率、MKV 图形字幕、命名调色预设;修复全屏提示残留、PS5 入口遮挡、滚动残影、选框闪烁、部分 HDR 红色异常和 XeSS 呈现资源问题。撤回 NVIDIA FSR 4.1 画质实验,保留 RTX 超分。
-
-<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>
+**采集、字幕与截图**:修复采集音频时间戳兼容、压缩采集参考链与解码重送、帧身份和重排时间戳;字幕支持目标行数调整,修正多组字幕布局和样式缓存;修复 NR + RTX Video HDR 截图的错误拒绝,并补充音量快捷调节及独立 XeSS 统计。
+**已知边界**:固定 6X 在高负载下仍可能呈现不均匀,软件提交 FPS 不等于屏幕刷新率或肉眼流畅度。本版不宣称所有“补帧受限”或 GC551/GC573 实卡问题已根治。[完整更新与验证边界](docs/RELEASE_NOTES_1.4.3.md)。
## 下载与运行
-1. 在 [Releases](https://github.com/Likely7/Veyra-NRVideo/releases) 下载 **Veyra-1.4.2-win64-portable.zip**,不要下载 Source code。
+1. 在 [Releases](https://github.com/Likely7/Veyra-NRVideo/releases) 下载 **Veyra-1.4.3-win64-portable.zip**,不要下载 Source code。
2. 完整解压到一个可写文件夹,双击 **Veyra.exe**。无需安装 SDK、Python 或开发工具。
首次启动 NR、超分和内部补帧均关闭,确认基础画面后按需开启;导入旧设置会恢复原来的开关。
3. 使用当前显卡驱动。要使用 NVIDIA NR、DLSS、RTX Video SR 和 NVENC,需兼容的 NVIDIA RTX 显卡;本版本主要在 RTX 5070 上验证。
@@ -125,14 +123,21 @@ NR 与 DLSS 帧生成属于 **community experimental / 社区实验集成**,
## 开发与许可
-[构建说明](docs/BUILD.md) · [组件清单](docs/RUNTIME_COMPONENTS_1.4.2.md) · [第三方许可](THIRD_PARTY_NOTICES.md)
+[构建说明](docs/BUILD.md) · [组件清单](docs/RUNTIME_COMPONENTS_1.4.3.md) · [第三方许可](THIRD_PARTY_NOTICES.md)
Veyra 原有源码采用 [GPLv3](LICENSE);含串流的组合程序同时适用 [AGPLv3 与上游 OpenSSL 例外](licenses/remoteplay/CHIAKI_AGPL3_OPENSSL.txt)。应用源码对应版本标签,Release 另附串流依赖与 FFmpeg 对应源码包,普通用户无需下载。SDK、模型和运行时不进入源码仓库;Release 组件按各自许可与实验发布范围单独提供。
-## HDR 与 5.1(当前 1.4.2)
+## 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 暂不支持。
diff --git a/README_EN.md b/README_EN.md
index 935a0606..ca63ef1f 100644
--- a/README_EN.md
+++ b/README_EN.md
@@ -4,8 +4,6 @@
English | [简体中文](README.md)
-[Current status](docs/CURRENT_STATUS.md) · [Build instructions](docs/BUILD.md). **1.4.2** adds RTX Video HDR, optional frame pacing, window/display capture, bitmap subtitles and named grading presets. See the [release notes](docs/RELEASE_NOTES_1.4.2.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 demo video" width="960">
@@ -16,49 +14,17 @@ English | [简体中文](README.md)
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.2 Portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.2) · [Release Notes](docs/RELEASE_NOTES_1.4.2.md) · [Report an Issue](https://github.com/Likely7/Veyra-NRVideo/issues)
-
-## 1.4.2 Update
-
-**RTX Video HDR** converts SDR content to HDR under Professional mode > Enhancement, with contrast, saturation, middle gray and peak brightness controls. It combines with NR, SR and frame generation and supports HEVC Main10 HDR export. 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.
-
-**Optional frame pacing** under Professional mode > Motion defaults to Off. Choose Low Queue, Uniform Presentation (front-end pacing), or experimental NVIDIA Reflex. With FG, Reflex explicitly falls back to Low Queue; XeSS retains provider scheduling. These options manage queuing and cadence, not GPU throughput. See the [measured latency report](docs/FRAME_PACING_ACCEPTANCE_2026-09-18.md).
-
-Also adds window/display video capture (no audio), editable device FPS negotiated directly with the capture driver, MKV bitmap subtitles and named grading presets. Fixes fullscreen tooltip residue, the obscured PS5 button, scrolling/hover repaint issues, partial HDR metadata/color handling and XeSS presentation resources. The NVIDIA FSR 4.1 experiment was reverted.
-
-<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 pixel fidelity or display luminance measurement.</small></p>
-
-## 1.4.1 Update
-
-**RTX 30/40 DLSS frame generation fixes, up to 6X**: fixes initialization failures, unintended 2X fallback and RTX 3060 freezes when enabling FG. Also repairs sustained-playback scheduling that could leave FG limited despite low total GPU utilization, plus 6X batch capacity, timestamps and presentation synchronization. RTX 50 retains its native path. Affected users report successful testing; compatibility unlocks remain community experimental, with no claim that every GPU/driver combination was tested.
-
-**Playback and capture**: selectable embedded primary/secondary subtitles and audio tracks, faster large-MKV opening and seeking, persistent NR/SR settings, sleep/screensaver prevention during playback, consistent presentation when enabling NR before XeSS, and recovery from audio-output faults without unnecessarily restarting video capture.
+[Download 1.4.3 Portable](https://github.com/Likely7/Veyra-NRVideo/releases/tag/v1.4.3) · [Release Notes](docs/RELEASE_NOTES_1.4.3.md) · [Report an Issue](https://github.com/Likely7/Veyra-NRVideo/issues)
-**Export**: NVENC ABI compatibility and clearer errors; removes qualification gates and the final full-file frame-by-frame decode, preserves variable frame timing and selected audio, and automatically uses HEVC Main10 for HDR requests with H.264 selected. See the [complete 1.4.1 notes](docs/RELEASE_NOTES_1.4.1.md) for changes, evidence and limits.
+## 1.4.3 Update
-## 1.4.0 Update
+**Frame generation and presentation:** fixes DLSS / XeSS switches reverting unexpectedly, stale XeSS multiplier capabilities, and several incorrect FG admission decisions. Repairs cost accounting, live presentation timing, GPU completion synchronization and bounded file catch-up. Your chosen multiplier is retained; no automatic downgrade or fixed 35/50ms delay is added. XeSS VSync uses the provider presentation path.
-**New colour page**: a full-float grading chain that runs *before* every effect stage (zero cost while the master switch is off). The panel follows Lightroom's layout and feel: gradient rails, a point-curve editor with draggable control points (monotone cubic spline, both black/white points free to move), four colour-grading wheels, an 8-colour mixer strip with a black & white switch, `.cube` LUTs with an input-space check, named colour presets with `.vpcolor` import/export, undo/redo, hold-to-see-original, and a per-section "eye" that temporarily disables a group. Everything is graded in linear light with output dithering to avoid banding; HDR is graded in the linear domain, before tone mapping.
+**Windows and settings:** fixes stack-exhaustion crashes while resizing, coalesces cross-monitor DPI font/layout changes, keeps the subtitle popup open, allows repeated subtitle edits, and preserves numeric drafts during refresh. Parameter sliders gain individual reset controls; holding V also bypasses color grading.
-**Fixes**: HEVC-in-MKV files that would not open (new D3D11VA hardware path), failed exports caused by whole-slot frame gaps (an honest repeat of the previous frame), colour parameters that were not live (or did not refresh while paused), a `.cube` load crash, exports that ignored the grade, PS5 streaming connect failures, capture formats that stalled after two frames, capture windows that streaming tools could not find, silent Dolby/DTS capture, AVerMedia 5.1 passthrough and 40+ more - itemised in the [release notes](docs/RELEASE_NOTES_1.4.0.md).
+**Capture, subtitles and screenshots:** repairs capture-audio timestamp compatibility, compressed capture reference chains, decoder packet retries, frame identity and reordered timestamps. Adds configurable subtitle target lines, fixes grouped subtitle layout/style caching and erroneous NR + RTX Video HDR screenshot rejection, and improves volume controls and separate XeSS counters.
-**Removed**: the AMD FSR *frame-generation* entry in the panel (switching back to DLSS was easy to get stuck on and the result was mediocre); the engine backend stays.
-
-<p align="center"><img src="docs/images/1.4.0/mjpeg-latency.png" alt="MJPEG capture chain before/after" width="900"></p>
-<p align="center"><small>MJPEG capture chain, two-minute real-hardware runs: 1080p60 processCpu 1.987 to 0.364-0.375 ms (-81%), 4K18 6.218 to 0.912-0.936 ms (-85%)</small></p>
-
-<p align="center"><img src="docs/images/1.4.0/native-latency.png" alt="Native (YUY2/NV12/RGB) capture chain before/after" width="900"></p>
-<p align="center"><small>Native capture chain: 1080p60 P95 unchanged, 4K18 P95 -7.5% and processCpu -8.7%, zero drops on both sides.</small></p>
-
-<p align="center"><img src="docs/images/1.4.0/colour-latency.png" alt="Colour chain on/off latency" width="900"></p>
-<p align="center"><small>Colour chain on/off (YUY2 1080p60 capture, two minutes each): +0.037 ms GPU per frame, no measurable software latency change, 60 fps and zero drops in both.</small></p>
-
-## 1.3.0 Update
-
-Version 1.3.0 integrates playback, capture-audio, color and frame-generation repairs since 1.2.0. It adds drag previews, fullscreen 10-second seeking, remembered capture settings and NR internal resolutions; improves AV1/MOV playback, capture sync/crackle, SDR colors and HDR-to-SDR mapping; and submits live DLSS MFG subframes as each becomes ready. The main FPS display reports submitted frames.
-
-See [1.3.0 release notes](docs/RELEASE_NOTES_1.3.0.md) for the full list and limits. Full Dolby Vision, Atmos object rendering and precise internal XeSS FG GPU timing remain unavailable. Hardware-specific validation still applies.
+**Known limits:** fixed 6X can still have uneven presentation under load. Submission FPS is not physical display refresh or a guarantee of smooth motion. This release does not claim every FG limitation or GC551/GC573 hardware issue is resolved. See the [complete changes and validation limits](docs/RELEASE_NOTES_1.4.3.md).
## Features
@@ -67,7 +33,7 @@ See [1.3.0 release notes](docs/RELEASE_NOTES_1.3.0.md) for the full list and lim
| 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 2X / 3X / 4X; experimental XeSS 2X preview |
+| 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 |
@@ -79,7 +45,7 @@ Features introduced in 1.2.0 include HDR file/capture enhancement, HDR10 export
## Download and Run
-1. Download **Veyra-1.4.2-win64-portable.zip** from [Releases](https://github.com/Likely7/Veyra-NRVideo/releases). The Source code archives are for developers.
+1. Download **Veyra-1.4.3-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.
@@ -164,9 +130,9 @@ NR and DLSS frame generation are **community-experimental integrations**, not NV
## Development and License
-[Build Instructions](docs/BUILD.md) · [Runtime Components](docs/RUNTIME_COMPONENTS_1.4.2.md) · [Third-Party Notices](THIRD_PARTY_NOTICES.md)
+[Build Instructions](docs/BUILD.md) · [Runtime Components](docs/RUNTIME_COMPONENTS_1.4.3.md) · [Third-Party Notices](THIRD_PARTY_NOTICES.md)
-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 RemotePlay-source and FFmpeg-source assets provide dependency source and are 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 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.
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.
@@ -182,13 +148,20 @@ 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 (current 1.4.2)
+## 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. H.264 HDR export is rejected. HDR screenshots use lossless scRGB FP16 JPEG XR. Original mastering/peak metadata is not invented or reused after processing.
+- 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.
diff --git a/docs/CURRENT_STATUS.md b/docs/CURRENT_STATUS.md
index 03dbcd4a..2b79f396 100644
--- a/docs/CURRENT_STATUS.md
+++ b/docs/CURRENT_STATUS.md
@@ -1,5 +1,7 @@
# 当前项目状态 / Current Status
+2026-09-20:用户验收最新 1.4.3 测试包并授权正式发布。当前发布工作包含截至 `139db25` 的产品修复及远端中文 README 精简,分支审计与正式构建/发布结果统一记录在 [1.4.3 发布执行记录](RELEASE_1.4.3_EXECUTION.md)。下方“仅本地/未发布”语句均为历史阶段记录;固定 6X 均匀呈现仍未解决,不随正式版发布改为通过。
+
2026-09-20 后续修复:设置数值草稿、羽化刷新递归通知和单项还原已修正;跨屏 DPI 字体/布局刷新合并到异步 UI 消息,避免 SetWindowPos 内重复布局。DLSS 6X / XeSS 4X 合成 DPI 切换与设置回归通过。本机仅一个物理显示器,不能宣称真实双屏卡死已验证消除。新本地包目录 `E:/项目/Veyra/test-packages/1.4.3-20260920-display-fix/`,验收见窗口修复文档。本轮不改变补帧调度。
2026-09-20 窗口边角拖动崩溃已定位为 UI 回调栈耗尽,拆分 AppShell / SettingsWindow 的重型消息处理后,本机真实鼠标拖动、采集、DLSS 6X / XeSS 4X 缩放和合成 DPI 回归通过。新版测试包输出到 `E:/项目/Veyra/test-packages/1.4.3-20260920-resize-fix/`;下方 final 目录为旧包。本轮不修改补帧调度,固定 6X 均匀呈现仍未解决。见 [窗口缩放修复](WINDOW_RESIZE_REPAIR_2026-09-20.md)。
diff --git a/docs/RELEASE_1.4.3_EXECUTION.md b/docs/RELEASE_1.4.3_EXECUTION.md
new file mode 100644
index 00000000..492d20bf
--- /dev/null
+++ b/docs/RELEASE_1.4.3_EXECUTION.md
@@ -0,0 +1,40 @@
+# 1.4.3 正式发布执行记录
+
+2026-09-20 用户确认最新测试包可用,授权整理正确修复、合并主线并发布 GitHub 正式版,同时保留其中文 README 精简、同步英文只展示最新更新。
+
+## 源码与分支审计
+
+- 开工存档 `checkpoint/pre-release-1.4.3-20260920` / `139db25`。
+- 修复分支 `codex/fg-cadence-audit-20260920`;合并远端中文 README 提交 `73709e0`,合并点 `c7c8219`。不恢复用户删掉的旧更新堆叠。
+- 所有当前产品修复分支均在该分支祖先中。保留字幕弹窗 `4bce05e`、单项还原 `412a19f`、XeSS/跨屏/原画对比 `7761f34`、采集/音频/UI/同步 `5a1931b`、调度 `80f7dc4`、七项解码等修复 `43b8a4a`、后端切换 `8c9957b`、DLSS 恢复 `b2c3d0e`、后续保留的有界追赶/完成 fence/预算修正及用户倍率 `7a3dfae`、窗口栈修复 `2b99e89`、输入草稿/DPI `139db25`。
+- `bb91399` 与 `88915a3` 对应实验分别被 `dc87a59` 与 `55e0bdd` 回退,维持回退。其余未证明收益的优先级/光流/复制/清屏/预测实验按实验文档保留历史,不恢复代码。
+
+仅四个本地分支不属于 HEAD 祖先,全部不应合并:
+
+| 分支 | 独有内容 | 处理 |
+| --- | --- | --- |
+| codex/avermedia-51-switch-20260917 | 8819ca8 未完成的设备音频探针 | 用户已结束该研究,保留存档 |
+| codex/beta-latency-ab-20260918 | 24bc11a 旧 beta 延迟对照探针 | 测试基线,不是产品修复 |
+| codex/github-source-archive | 2d2a3a6 / 8556fc7 历史源码归档 | 非当前产品分支 |
+| codex/smooth-motion-experiment | 27c17eb 旧驱动实验和强制互斥 | 被用户自主叠加决定替代 |
+
+以上按 `git for-each-ref --no-merged HEAD` 和提交历史核对,不以分支名称推断合入状态。修复详情见 RELEASE_NOTES_1.4.3.md 及其对应验收文档;GC551/GC573、固定 6X 均匀呈现和未定因清晰度反馈不冒充修复完成。
+
+## 构建、包与来源
+
+- 使用 `scripts/build-isolated.ps1`,BuildDirectory `E:/项目/Veyra/build/slider-reset-20260919`,DisplayVersion `1.4.3`;临时目录 `E:/项目/Veyra/tmp/release-1.4.3-20260920`。
+- `scripts/package-portable.ps1 -Version 1.4.3` 不加测试标签,输出 `E:/项目/Veyra/releases/1.4.3`。保留原有 12 个增强运行文件身份与许可、PS5 patched FFmpeg,不加入新运行组件。
+- `scripts/package-release-source.py` 从干净提交 `git archive HEAD` 生成对应源码,拒绝二进制/SDK目录。合并经 SHA256 核验的原 1.4.1 FFmpeg 和 RemotePlay 对应源码 ZIP;这些依赖与 1.4.2 未变,文件名保留原版本供追溯。
+- 验收输出 `E:/项目/Veyra/tests/release-1.4.3-20260920`;已有针对性产品验收在窗口修复、补帧切换、采集/字幕和调度报告中。此次核对正式 EXE 与用户已验收 EXE 一致,并对正式包运行七项便携检查和逐文件归档校验。
+- 只推送 nrvideo/main 与 v1.4.3;发布正文保留赞助和交流群两图各 width=220。源码标签不随后续发布证据记录而移动。
+
+正式发布的验证结果追加于下方,以上步骤说明不是成功声明。
+
+## 本地正式包验收
+
+- 重新配置和构建 exit 0,Ninja 确认 no work to do;没有额外产品修改。EXE SHA256 与用户验收版相同:`F2A1E407D2FE136C32771BCF25068A6F595D51CC6B4F15766964B6A358B80676`。
+- 完成最后 README 用法校对后,以 `releases/1.4.3/final/` 为最终输出目录。父目录首轮文档候选不发布;清理该候选的自动审批被拒绝,保留原件避免强行绕过,后续可按用户清理指令整理。
+- `package-portable.ps1` 正式打包通过:12 个增强运行文件身份核验,禁止文件为 0。最终便携 ZIP 472351857 bytes,SHA256 `2CC1558B62849D7B71FDEA04CF6B010EF7825FD75F101AE456516C679A9EA0A7`。
+- `portable-smoke.ps1 -CaseSeconds 7` 七项通过:空窗口、无效果播放、社区 NR + SR + FG、原版 NR + DLSS SR + FG、Video SR + NR + FG、首次效果全关、Ampere NR。收窄 PATH 并临时移走 manifest 后仍从包内加载依赖并生成截图;单项最长 35 秒。结果 `tests/release-1.4.3-20260920/portable-smoke/result.json`。
+- 临时审计脚本 `tmp/release-1.4.3-20260920/audit-package.py` 对 ZIP 120 个载荷逐个校验大小/SHA256、数量和 README;所有 21 个 DLL 与 1.4.2 逐文件相同,EXE 匹配验收版。结果 `tests/release-1.4.3-20260920/package-integrity.json`。以上相对路径均位于 `E:/项目/Veyra/`。
+- 依赖源码 ZIP SHA256 复核通过;`git diff v1.4.2 HEAD -- scripts/remoteplay scripts/ffmpeg licenses/remoteplay` 无变化。本次未重新跑完整 GPU/实卡矩阵,复用相同 EXE 的既有专项验收,新增正式打包回归。
diff --git a/docs/RELEASE_NOTES_1.4.3.md b/docs/RELEASE_NOTES_1.4.3.md
index b7915e6d..1e81bcf5 100644
--- a/docs/RELEASE_NOTES_1.4.3.md
+++ b/docs/RELEASE_NOTES_1.4.3.md
@@ -1,33 +1,62 @@
-# Veyra 1.4.3 本地测试版
+# Veyra 1.4.3
-2026-09-20,用户授权本地打包测试,尚未公开发布。
+本版汇总 1.4.2 发布后的修复。最新测试包已获用户验收;只保留有效修复,失败或无收益的调度实验已回退。
-包含 1.4.2 发布后当前分支的修复:
+## 补帧与帧同步
-- 合并跨屏 DPI 变化的字体与布局刷新,减少同步窗口消息嵌套;DLSS 6X / XeSS 4X 的合成 DPI 切换后持续出帧。本机仅一块显示器,真实双屏拖动仍待验收。
-- 修复 NR、羽化和调色数值输入被定时刷新覆盖,以及存在未提交输入时单项还原不可用的问题;还原失败保留输入,成功只清除对应项。
+- 修复 DLSS / XeSS 切换自动弹回、XeSS 2X 后更高倍率被旧能力缓存阻挡;切换失败恢复原设置,界面不再假装应用成功。
+- 修正 XeLL 标记周期、运动/重置与呈现资源生命周期,改善 XeSS 运行与切换稳定性。
+- 修正调度成本统计:初始化样本不污染稳态预算,阻塞 Present 的 CPU 时间不再重复算作 GPU 成本;调整实时呈现相位和窗口采集帧间隔。
+- 修正 GPU 完成 fence 归属、首个生成帧截止时间及已排队工作计费,改善预算拒绝后的恢复;文件播放使用有界追赶。
+- 保留用户选择的倍率,不自动改为低倍率;没有新增固定 35/50ms 等待。过载时仍可能错过呈现机会。
+- XeSS 垂直同步交由代理交换链呈现;关闭帧同步时不额外叠加等待。DLSS 垂直同步不再依赖最大排队 API 是否可用。
+- 增加独立 XeSS 提交统计;采集 FPS 改用近期窗口,避免长期平均掩盖当前状态。
-- 保留此前 `7a3dfae` 的补帧基线,并修复拖动窗口边角时的 UI 线程栈耗尽崩溃。保留用户选择的补帧倍率,不再自动改成较低倍率。
-- 拆分主窗口与设置面板的高栈占用消息处理;真实鼠标拖动、采集预览及 NR + DLSS 6X / XeSS 4X 反复缩放已通过本机短测。
-- 保留文件播放有限追赶、逐子帧状态读取及对应 GPU fence 保护;无收益或存在资源安全问题的后续实验已回退。没有加入额外 35/50ms 等待。
+## 窗口、调色与操作
-- 修正 XeSS / DLSS 切换弹回、XeSS 2X 后无法切到 4X 的能力缓存问题;运行中切换失败恢复原设置。
-- 修正异步准备帧的 XeLL 标记周期,回归拖动、窗口缩放、历史重置和连续切换。
-- 调整 DLSS / XeSS 调度成本统计及实时呈现相位,处理错误降档、补帧受限与节奏异常路径。
-- 修正压缩采集解码参考链、帧身份、EAGAIN 重送、重排时间戳和 D3D11 资源释放。
-- 修正字幕弹窗闪退式关闭、字幕布局和样式缓存;保留参数独立还原、跨屏与调色对比等此前修复。
-- 包含当前分支的采集音频恢复、NR + RTX Video HDR 截图、音量键及同步相关修复。
-- 补充独立 XeSS 提交计数,避免通用 GPU 日志的 0 被误读为没有生成帧。
+- 修复拖动窗口边角时 Win32 回调栈耗尽造成的卡死/崩溃;合并跨屏 DPI 字体与布局刷新,避免同步消息重复嵌套。
+- 参数滑条新增单项还原图标;NR、羽化、调色的未提交数值不再被刷新覆盖。还原失败保留输入,成功只清除对应项草稿。
+- 按住 V 查看原画时同时绕过调色。
+- 上下方向键调节音量,日常模式画面与音量控件支持滚轮调音量;专业模式画面滚轮保留缩放,不抢编辑框按键。
-## 测试重点与已知边界
+## 字幕
-固定 6X 的均匀呈现尚未解决。本机 RTX5070、p001 原生 4K60、NR1080、4K 输出的近期对照约 295–303 次提交/秒,仍有约 16.8ms 长间隔;不能据此宣称稳定 360fps 或无卡顿。此素材原生 4K,实际超分计算被旁路,不代表叠加超分负载的成绩。2X/4X 针对性短测约 120/240 次提交/秒,仍需用户实际体验验收。
+- 修复字幕按钮点开就关闭;设置面板可连续调整样式、延迟等参数。
+- 新增目标行数:默认 2 行,可选自动或 1–8 行,按完整文本测量缩放,不直接丢弃第三行之后的内容。
+- 修复多组字幕顶部/中部/底部排布、居中及样式缓存,保留 ASS 显式定位;升级迁移旧设置。
-请重点测试 DLSS 4X/6X 与 XeSS 2X/4X 反复切换、采集持续运行、拖动和跨屏。
-本机 RTX5070 的针对性回归已通过;不代表所有显卡、驱动或 GC551/GC573 实卡已验收。
-YUY2 50fps 的日志和合成测试有补帧输出,但用户所述观感及与 PotPlayer 的清晰度差异尚未定因。
-软件提交 FPS 不等于屏幕实际刷新率;未进行光学端到端延迟测量。
+## 采集、解码与截图
-保留 RTX Video HDR、原有帧同步与 PS5 功能。NVIDIA FSR4 实验仍撤回。
-增强运行库均沿用既有身份,属于实验集成,不代表厂商认证或合作。
-首次使用全部增强默认关闭,包内不含个人设置、凭据或测试媒体。
+- 音频样本缺少有效 DirectShow 时间戳时,按真实样本数建立后备时钟;分离 PCM 与压缩音频接收,编码变化重新连接。
+- 设备模式枚举失败时尝试驱动当前格式,改善部分采集设备兼容性。GC551/GC573 实卡效果仍待反馈。
+- 压缩采集队列保持有界;帧间编码溢出后清理解码参考链并等待关键帧,避免持续使用损坏参考。
+- 修复解码帧身份、FFmpeg EAGAIN 后同包重送、输出 PTS/色彩元数据配对与 B 帧重排处理;释放遗漏的 D3D11 Context4 引用。
+- 修复 NR + RTX Video HDR 截图中不合理的逐位相等拒绝条件,保留浮点 HDR 数据检查和原子保存。
+- 修复 MSVC 中文环境的头文件依赖解析,避免增量构建混入旧 ABI 对象。
+
+保留 RTX Video HDR、窗口/屏幕采集、PS5、图形字幕及原有导出能力。NVIDIA FSR4 实验保持撤回。增强运行组件身份与 1.4.2 相同,属于实验集成,不代表厂商认证。首次启动全部增强默认关闭;包内不含个人配置、凭据或测试媒体。
+
+## 验证与已知问题
+
+窗口缩放、合成 DPI 变化、参数草稿、字幕、补帧切换、解码和便携包有本机针对性回归。最新窗口修复包已获用户反馈“没啥问题”;本机只有一个物理显示器,不将合成 DPI 检查冒充真实双屏验收。RTX5070 的结果不代表所有型号、驱动或采集卡。
+
+**固定 6X 的均匀呈现仍未解决。** 本机 RTX5070、原生 4K60 素材、NR1080、4K 输出的近期对照约 295–303 次提交/秒,仍有约 16.8ms 长间隔;实际 SR 被原生 4K 旁路,不是额外超分负载成绩。不能据此宣称稳定 360fps 或无卡顿。2X/4X 针对性短测约 120/240 次提交/秒。软件提交 FPS 不等于屏幕刷新或光学延迟。
+
+GC573 RGB 实际欠速、部分设备功耗波动、YUY2 50fps 的用户观感及与 PotPlayer 的清晰度差异,尚未取得完整定因/实卡验收。本版修复已定位的软件缺陷,不宣称这些反馈全部根治。
+
+## Download / English Summary
+
+Download **Veyra-1.4.3-win64-portable.zip**, extract to a new folder and run Veyra.exe. **Veyra-1.4.3-source.zip** includes application source plus the unchanged patched FFmpeg and RemotePlay dependency source archives. SHA-256 files accompany both downloads.
+
+This release repairs DLSS/XeSS switching and scheduling accounting, GPU completion synchronization, resize crashes and DPI refresh, parameter reset/draft handling, subtitle dialogs/layout, capture audio/decoder handling, and NR + RTX Video HDR screenshot rejection. Selected multipliers are retained with no added fixed 35/50ms wait. Rejected experiments are excluded. Fixed 6X can still present unevenly; submitted FPS is not physical refresh. GC551/GC573 and all GPU/driver combinations are not claimed validated.
+
+## 支持与反馈
+
+如果这个项目帮到了你,可以请作者喝杯咖啡(微信扫码,完全自愿,不影响任何功能);有问题或想第一时间拿到 beta 版,欢迎进群。
+
+<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;
+ <img src="https://raw.githubusercontent.com/Likely7/Veyra-NRVideo/v1.4.2/docs/images/1.4.2/community-group.png" alt="Veyra 交流群 / bug 反馈 / beta 版本" width="220">
+</p>
+<p align="center"><small>左:微信赞助 右:Veyra 交流群(bug 反馈与 beta 版本发布)</small></p>
diff --git a/docs/REMOTEPLAY_BUILD_1.4.3.md b/docs/REMOTEPLAY_BUILD_1.4.3.md
index 47a1892c..37000727 100644
--- a/docs/REMOTEPLAY_BUILD_1.4.3.md
+++ b/docs/REMOTEPLAY_BUILD_1.4.3.md
@@ -1,8 +1,8 @@
-# Veyra 1.4.3 Test Build
+# Veyra 1.4.3 Release Build
-Local test on branch codex/fg-cadence-audit-20260920, based on d60ec88.
-Product code matches retained repair commit 7a3dfae; rejected cadence experiments are reverted.
-No v1.4.3 release tag or GitHub publication is implied.
+The application source is pinned by tag v1.4.3. It includes the retained cadence
+repairs and window/settings follow-up through 139db25. Rejected cadence
+experiments remain reverted. Publication evidence is in RELEASE_1.4.3_EXECUTION.md.
Remote Play remains enabled. Chiaki is pinned to streetpea/chiaki-ng commit
0e16950165f06e5c3291537c2eeba6e852be7120; local patches are under scripts/remoteplay/patches.
@@ -10,8 +10,10 @@ The combined program is subject to Chiaki AGPL-3.0-only with OpenSSL exception;
Veyra source is GPLv3. Notices are included under licenses/remoteplay.
FFmpeg preserves the existing PS5 H.264 32-to-256 slice patch and dav1d build.
-Dependency sources and notices are unchanged from 1.4.2; this local test does not replace
-their corresponding source archives. Binary provenance is in licenses/FFMPEG-VEYRA-BUILD.json.
+Dependency sources and notices are unchanged from 1.4.2. The combined release source
+ZIP includes the verified FFmpeg and RemotePlay source archives originally built
+for 1.4.1, including patches, notices and build records. Their names retain the
+original version to identify reuse. Binary provenance is in licenses/FFMPEG-VEYRA-BUILD.json.
Build with VS2022 x64, CMake/Ninja and authorized local SDKs, using scripts/build-isolated.ps1
with DisplayVersion=1.4.3 and explicit E:/项目/Veyra build/temp directories. See BUILD.md.
diff --git a/docs/RUNTIME_COMPONENTS_1.4.3.md b/docs/RUNTIME_COMPONENTS_1.4.3.md
index 66a00598..67669ae7 100644
--- a/docs/RUNTIME_COMPONENTS_1.4.3.md
+++ b/docs/RUNTIME_COMPONENTS_1.4.3.md
@@ -1,6 +1,6 @@
-# Veyra 1.4.3 Test Runtime Components
+# Veyra 1.4.3 Runtime Components
-This local test package preserves the runtime identities used in 1.4.2.
+This release preserves the runtime identities used in 1.4.2.
No new runtime, SDK, model or driver binary is introduced. NVIDIA FSR4 INT8 remains withdrawn.
The authoritative per-file names, sizes, versions, SHA256 hashes, signature status and origin categories are in:
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.md
index 4c9bf937..74562395 100644
--- a/docs/WORKLOG.md
+++ b/docs/WORKLOG.md
@@ -1,5 +1,30 @@
# Veyra 工作记录
+## 2026-09-20 1.4.3 official release preparation
+
+User accepted the latest package and authorized GitHub publication. Created
+checkpoint/pre-release-1.4.3-20260920 at 139db25; merged the user's remote
+Chinese README edit 73709e0 (merge c7c8219). Audited all local branches: current
+product repairs are ancestors, four remaining branches are old experiments,
+an unfinished probe or A/B baselines and are intentionally excluded. Retained
+experiment reverts; no new product code changes. Updated bilingual README to
+latest-only release content, preserved support QR images and HDR comparison,
+rewrote formal notes/build/runtime docs and added a clean-commit source packer.
+
+Build-isolated with DisplayVersion=1.4.3 passed; EXE remains the exact accepted
+F2A1E407...B80676 binary. Final portable package is under
+E:/项目/Veyra/releases/1.4.3/final, 472351857 bytes,
+SHA256 2CC1558B62849D7B71FDEA04CF6B010EF7825FD75F101AE456516C679A9EA0A7.
+Portable-smoke (7 seconds per case) passed all seven cases. ZIP integrity
+verified 120 payloads, 21 unchanged DLLs versus 1.4.2, runtime audit 12 entries,
+zero forbidden files. Evidence: E:/项目/Veyra/tests/release-1.4.3-20260920.
+Temporary scripts/build subprocess files: E:/项目/Veyra/tmp/release-1.4.3-20260920.
+The first docs-only package candidate in the parent release directory remains
+unpublished after automatic approval rejected cleanup; final/ is authoritative.
+Detailed scope, exclusions, commands and limitations: RELEASE_1.4.3_EXECUTION.md.
+Actual publication and corresponding-source results will be recorded after
+remote verification; this preparation entry does not assert upload success.
+
## 2026-09-20 Settings and display transition follow-up
Implemented numeric draft preservation and transactional per-row reset in
diff --git a/scripts/package-release-source.py b/scripts/package-release-source.py
new file mode 100644
index 00000000..a66cabf6
--- /dev/null
+++ b/scripts/package-release-source.py
@@ -0,0 +1,84 @@
+"""Bundle a clean Git commit and audited, unchanged dependency source archives."""
+import argparse
+import hashlib
+import json
+from pathlib import Path
+import re
+import subprocess
+import zipfile
+
+
+def sha256(path):
+ with path.open('rb') as stream:
+ return hashlib.file_digest(stream, 'sha256').hexdigest()
+
+
+def main():
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--root', type=Path, required=True)
+ parser.add_argument('--version', required=True)
+ parser.add_argument('--output', type=Path, required=True)
+ parser.add_argument('--temp', type=Path, required=True)
+ parser.add_argument('--dependency-directory', type=Path, required=True)
+ args = parser.parse_args()
+ if not re.fullmatch(r'\d+\.\d+\.\d+', args.version):
+ raise ValueError('Invalid version')
+ def git(*argv):
+ return subprocess.check_output(['git', '-C', str(args.root), *argv]).decode().strip()
+ if git('status', '--porcelain'):
+ raise RuntimeError('Source release requires a clean worktree')
+ commit = git('rev-parse', 'HEAD')
+ dependencies = {
+ 'Veyra-1.4.1-FFmpeg-source.zip': '15a77217bedceb4280fc680d5c0761544170356ca85e871f1558b61c86ee5f02',
+ 'Veyra-1.4.1-RemotePlay-source.zip': '272e41bc128c9bd86d7a9a93e4f0150dd92db6b9d00909643336b9e01561f166',
+ }
+ for name, expected in dependencies.items():
+ if sha256(args.dependency_directory / name) != expected:
+ raise RuntimeError(f'Dependency source identity mismatch: {name}')
+ args.output.mkdir(parents=True, exist_ok=True)
+ args.temp.mkdir(parents=True, exist_ok=True)
+ prefix = f'Veyra-{args.version}-source'
+ output = args.output / (prefix + '.zip')
+ intermediate = args.temp / f'{prefix}-{commit}.zip'
+ if output.exists() or intermediate.exists():
+ raise FileExistsError('Refusing to overwrite source archives')
+ subprocess.run(['git', '-C', str(args.root), 'archive', '--format=zip',
+ f'--output={intermediate}', commit], check=True)
+ records = []
+ with zipfile.ZipFile(output, 'x', compression=zipfile.ZIP_DEFLATED) as dest:
+ with zipfile.ZipFile(intermediate) as source:
+ for entry in source.infolist():
+ if entry.is_dir():
+ continue
+ name = entry.filename
+ if re.search(r'\.(dll|exe|lib|pdb|obj|onnx|pth|zip|7z)$|(^|/)(runtime_local|third_party_local)/', name, re.I):
+ raise RuntimeError(f'Forbidden source payload: {name}')
+ data = source.read(entry)
+ target = f'{prefix}/veyra/{name}'
+ dest.writestr(target, data)
+ records.append(dict(path=target, size=len(data), sha256=hashlib.sha256(data).hexdigest()))
+ for name, digest in dependencies.items():
+ path = args.dependency_directory / name
+ target = f'{prefix}/dependencies/{name}'
+ dest.write(path, target, compress_type=zipfile.ZIP_STORED)
+ records.append(dict(path=target, size=path.stat().st_size, sha256=digest))
+ manifest = dict(version=args.version, commit=commit, snapshot='git archive HEAD', files=records)
+ dest.writestr(f'{prefix}/source-manifest.json', json.dumps(manifest, indent=2))
+ with zipfile.ZipFile(output) as archive:
+ if len(archive.infolist()) != len(records) + 1:
+ raise RuntimeError('Source entry count mismatch')
+ for record in records:
+ entry = archive.getinfo(record['path'])
+ with archive.open(entry) as stream:
+ actual = hashlib.file_digest(stream, 'sha256').hexdigest()
+ if entry.file_size != record['size'] or actual != record['sha256']:
+ raise RuntimeError(f'Source payload mismatch: {record["path"]}')
+ digest = sha256(output)
+ output.with_suffix('.zip.sha256').write_text(f'{digest} {output.name}\n', encoding='ascii')
+ intermediate.unlink()
+ print(json.dumps(dict(archive=str(output), commit=commit, bytes=output.stat().st_size,
+ sha256=digest, verifiedFiles=len(records)), indent=2))
+
+
+if __name__ == '__main__':
+ main()