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): align recording checks with actual completed capture stages
Veyra Goal Agent46ea44f6218c
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex e5523aa0..3ec0d398 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -8382,3 +8382,5 @@ R0-focus-normal-v4的A首轮实际激活/Qt状态/三段真实提交均满足,`R0-focus-normal-v4 --resume`最终6/6普通50秒通过,18次Win32前台PID与真实Qt active变化吻合;三阶段提交FPS三轮中位A/B均60、源跳过全部0,P99分别A17.2609/17.2227/17.2402ms,B17.1828/17.2788/17.1764ms(前台/后台/再前台),无严重失焦下降,不外推其他窗口负载或物理显示。cleanup自有GDI退出/原焦点恢复true、用户设置未变。原v1–v4夹具失败过程仍保留。`nr-quality-review.py R0-native-final-v2`完整240解码MD5/PTS/轨道/尺寸/时长0差异及12配对图/SSIM通过。`nr-r0-recordings.py R0-obs-compat-final-v2`在解码前发现MKV最终SHA与StopRecord返回当刻不同:原b38ba563…cde5,最终9c99037e…efea。OBS私有日志证明muxer08:27:40.628才结束,早于此就曾记录hash,属于夹具过早封存;旧receipt/失败review目录保留,不篡改为通过。修正OBS驱动只在本轮OBS停止后封存最终字节并重复检查稳定,StopReply早期hash独立保留,再做一轮正常六场景及全录像解码。没有修改产品/OBS配置/运行库,所有GPU计时已结束。++R0-obs-compat-final-v3六实际视频场景/resize退出通过,MKV在OBS停止后SHA稳定、原StopReply观察独立保存。录像review全解码通过后在硬编码2秒帧失败:此时OBS仍在初始化捕获,第一完成playing截图实际在4.229秒。修正review按该轮OBS Writing file精确启动日志与六完成截图mtime对应取帧,原2秒黑帧和全文件MD5仍保留,不删初始帧或更换录像;只改CPU后处理的阶段对齐,不再跑GPU。额外取全屏内三时刻验证真实录制在推进,不用原输入截图替代录像图。diff --git a/scripts/perf/nr-r0-recordings.py b/scripts/perf/nr-r0-recordings.pyindex c9830910..93569691 100644--- a/scripts/perf/nr-r0-recordings.py+++ b/scripts/perf/nr-r0-recordings.py@@ -1,14 +1,15 @@"""Decode actual owned OBS recordings; corroborate moving video, no GPU timing."""from pathlib import Path-import hashlib, json, os, subprocess, sys+import datetime, hashlib, json, os, re, subprocess, sysfrom PIL import Image, ImageChops, ImageStatBASE=Path('E:/项目/Veyra');TASK='perf-nr-20261004'label=sys.argv[1];assert label.replace('-','').isalnum()+review_label=sys.argv[2] if len(sys.argv)>2 else 'v1';assert review_label.replace('-','').isalnum()root=BASE/'logs'/TASK/labelruns=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)+out=root/('record-review-'+review_label);out.mkdir(exist_ok=False)+tmp=BASE/'tmp'/TASK/(label+'-record-review-'+review_label);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:@@ -25,21 +26,42 @@ for row in runs: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'])+ # Source injection is asynchronous. Align the movie checks with the six+ # actual completed screenshot observations, rather than assuming capture+ # was ready two seconds after StartRecord. Preserve the initial frames in+ # the complete decode; no frame is dropped from that integrity check.+ starts=[]+ for obs_log in (BASE/'tests'/TASK/label/'obs-portable/config/obs-studio/logs').glob('*.txt'):+ for line in obs_log.read_text(encoding='utf-8',errors='replace').splitlines():+ if 'Writing file' in line and clip.name in line:+ match=re.match(r'(\d\d:\d\d:\d\d\.\d+):',line);assert match,line+ starts.append(datetime.datetime.fromisoformat(obs_log.name[:10]+'T'+match[1]).timestamp())+ assert len(starts)==1,starts+ elapsed={}+ for shot in row['shots']:+ saved=Path(shot['image']);assert digest(saved)==shot['sha256']+ elapsed[shot['stage']]=round(saved.stat().st_mtime-starts[0],3)+ full_end=elapsed['fullscreen']+ moments=[(second,stage) for stage,second in elapsed.items()]+ moments += [(round(full_end-offset,3),'fullscreen-motion') for offset in (2,1.5,1)]shots=[];full=[]- for second in (2,6,10,14,17.5,18.5,19.5,22):+ for second,stage in sorted(moments):+ assert 0<second<float(metadata['format']['duration']),('Observation outside recording',stage,second)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+ variation=ImageStat.Stat(crop).stddev;required=row['mode']=='compat' or stage.startswith('fullscreen')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())+ shots.append({'second':second,'stage':stage,'path':str(shot),'sha256':digest(shot),'videoStddev':variation,'movieRequired':required})+ if stage=='fullscreen-motion':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})+ 'shots':shots,'fullscreenVideoDifferenceMeans':changes,'softwareDecode':True,'passed':True,+ 'timing':'OBS recording-start log and completed source screenshot file times; approximate scene alignment',+ 'actualStageElapsedSeconds':elapsed})(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)