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

test(capture): decode owned OBS recording and distinguish historical R0 identity

Veyra Goal Agent33e334aa9f58
diff --git a/docs/PERF_R0_ACCEPTANCE_2026-10-05.md b/docs/PERF_R0_ACCEPTANCE_2026-10-05.md
index 4aa430c5..33cf9735 100644
--- a/docs/PERF_R0_ACCEPTANCE_2026-10-05.md
+++ b/docs/PERF_R0_ACCEPTANCE_2026-10-05.md
@@ -14,9 +14,9 @@
尚未运行的检查不能提前标通过。可运行测试失败先保留证据并修复;不可通过的软件候选要回退。需要用户真实来源或主观画质的缺口单独列明。
-## 当前产品及已执行的功能回归
+## 早期R0产品及已执行的功能回归(按阶段记录,最新身份见文末)
-产品源码仍是 `e8f0bd1082293c88a3ca1db851667162e4cef7a9`,其后的提交只补文档/测试;当前 `B2d/veyra_qml_ui.exe` SHA256 `8c2276d68d15c2e4466befcf367439b7efc42c68defd5ef93182398c9e8d8a03`。实际NR原件 SHA256 `f95feb54137ea11979f9b4ec4f00afd84b5c98a5624d3388fbf6a87714a39fcc`,Lecram 310.8.3.0 / HashMismatch;不改字节、不冒充官方签名。Qt/FFmpeg/其他增强组件来自封存完整NVIDIA依赖。所有测试独立目录,末尾校验EXE/DLL/QML未改,未写入用户profile。
+该轮产品源码是 `e8f0bd1082293c88a3ca1db851667162e4cef7a9`,当时后续提交只补文档/测试;该轮 `B2d/veyra_qml_ui.exe` SHA256 `8c2276d68d15c2e4466befcf367439b7efc42c68defd5ef93182398c9e8d8a03`。实际NR原件 SHA256 `f95feb54137ea11979f9b4ec4f00afd84b5c98a5624d3388fbf6a87714a39fcc`,Lecram 310.8.3.0 / HashMismatch;不改字节、不冒充官方签名。Qt/FFmpeg/其他增强组件来自封存完整NVIDIA依赖。所有测试独立目录,末尾校验EXE/DLL/QML未改,未写入用户profile。
| 检查 | 实际结果与证据 |
|---|---|
@@ -55,7 +55,7 @@ S4完整候选对基线增强区间下降3.52%;同一B的DIRECT增强19.299ms
源码根因:PresentSink::shutdown未清空非拥有queue_;VideoPresenter随后释放该队列。下次initialize在交换链成功后才赋新queue_,中途失败导致shutdown向悬空旧queue_调用Signal。EngineController初始化及失败回滚缺停止检查,退出仍尝试向失效窗口建图。先封存当前回归工具/数据说明,再最小修复PresentSink清理及初始化失败、EngineController长调用返回后的取消检查;不修改NR算法、运行库或稳态调度。候选此时不可交付;所有退出场景和真实OBS检查尚待修复后验证。
-## OBS(尚待执行)
+## OBS执行起点(历史记录)
OBS按官方32.1.2源码的portable配置及obs-websocket RPC1另写隔离驱动;只复制只读安装payload、临时认证服务,只选择本轮唯一标题的Veyra窗口,禁用桌面/麦克风输入和网络推流。仅待普通计时结束后执行正常录制、暂停恢复/缩放/全屏功能;未执行前无通过结论。
diff --git a/scripts/perf/nr-r0-recordings.py b/scripts/perf/nr-r0-recordings.py
new file mode 100644
index 00000000..c9830910
--- /dev/null
+++ b/scripts/perf/nr-r0-recordings.py
@@ -0,0 +1,45 @@
+"""Decode actual owned OBS recordings; corroborate moving video, no GPU timing."""
+from pathlib import Path
+import hashlib, json, os, subprocess, sys
+from PIL import Image, ImageChops, ImageStat
+
+BASE=Path('E:/项目/Veyra');TASK='perf-nr-20261004'
+label=sys.argv[1];assert label.replace('-','').isalnum()
+root=BASE/'logs'/TASK/label
+runs=json.loads((root/'completed.json').read_text(encoding='utf-8'))
+out=root/'record-review';out.mkdir(exist_ok=False)
+tmp=BASE/'tmp'/TASK/(label+'-record-review');tmp.mkdir(exist_ok=False)
+env={**os.environ,'TEMP':str(tmp),'TMP':str(tmp)};results=[]
+digest=lambda p:hashlib.sha256(p.read_bytes()).hexdigest()
+for row in runs:
+ clip=Path(row['recording']).resolve();assert clip.is_relative_to((BASE/'tests'/TASK/label).resolve())
+ assert digest(clip)==row['recordingSha256']
+ probe=subprocess.run(['ffprobe','-v','error','-select_streams','v:0','-count_frames','-show_entries',
+ 'stream=codec_name,width,height,r_frame_rate,nb_read_frames','-show_entries','format=duration','-of','json',str(clip)],
+ env=env,capture_output=True,timeout=90,check=True)
+ metadata=json.loads(probe.stdout);stream=metadata['streams'][0]
+ assert (stream['width'],stream['height'])==(1280,800) and int(stream['nb_read_frames'])>650
+ md5=out/(row['mode']+'-whole-frames.md5')
+ with (out/(row['mode']+'-decode.log')).open('xb') as log:
+ subprocess.run(['ffmpeg','-nostdin','-v','error','-i',str(clip),'-map','0:v:0','-an','-f','framemd5',str(md5)],
+ env=env,stdout=log,stderr=subprocess.STDOUT,timeout=90,check=True)
+ decoded=[line for line in md5.read_text(encoding='utf-8').splitlines() if line and not line.startswith('#')]
+ assert len(decoded)==int(stream['nb_read_frames'])
+ shots=[];full=[]
+ for second in (2,6,10,14,17.5,18.5,19.5,22):
+ shot=out/(row['mode']+'-t'+str(second)+'.png')
+ with (out/(row['mode']+'-extract.log')).open('ab') as log:
+ subprocess.run(['ffmpeg','-nostdin','-v','error','-ss',str(second),'-i',str(clip),'-map','0:v:0','-an',
+ '-frames:v','1',str(shot)],env=env,stdout=log,stderr=subprocess.STDOUT,timeout=45,check=True)
+ image=Image.open(shot).convert('RGB');crop=image.crop((220,180,660,430))
+ variation=ImageStat.Stat(crop).stddev;required=row['mode']=='compat' or 17<=second<=20
+ assert not required or max(variation)>12,(row['mode'],second,'recorded movie missing',variation)
+ shots.append({'second':second,'path':str(shot),'sha256':digest(shot),'videoStddev':variation,'movieRequired':required})
+ if 17<=second<=20:full.append(crop.copy())
+ changes=[ImageStat.Stat(ImageChops.difference(a,b)).mean for a,b in zip(full,full[1:])]
+ assert all(max(change)>.2 for change in changes),'Recorded fullscreen movie does not advance'
+ results.append({'mode':row['mode'],'recording':str(clip),'recordingSha256':digest(clip),'metadata':metadata,
+ 'wholeDecodedFrames':len(decoded),'wholeFrameMd5':str(md5),'wholeFrameMd5Sha256':digest(md5),
+ 'shots':shots,'fullscreenVideoDifferenceMeans':changes,'softwareDecode':True,'passed':True})
+(out/'review.json').write_text(json.dumps({'runs':results,'passed':True,'physicalDisplayTiming':False},ensure_ascii=False,indent=2),encoding='utf-8')
+print('R0_OBS_RECORD_REVIEW',label,[(row['mode'],row['wholeDecodedFrames']) for row in results],flush=True)