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): verify video region and report existing GPU window capture limit
Veyra Goal Agent3dbf69245b4f
diff --git a/docs/WORKLOG.md b/docs/WORKLOG.mdindex 8806d935..0943251f 100644--- a/docs/WORKLOG.md+++ b/docs/WORKLOG.md@@ -8354,3 +8354,5 @@ R0-obs-candidate 92a181f/bundle708e4834c19078b50d33203ea0963255f3c1425fe9edae4145ede7f6恢复候选build-r0-idle-revert-v1成功12步,但R0-obs-idle-revert-v1仍GPU全屏黑,R0-obs-residual-off-v1明确关闭NR残差复用亦失败。因此不能说暂停呈现/NR残差缓存已经被证实为根因,恢复候选无效,先拒绝封存后恢复92a181f生产部分(保留完整回退记录)。官方OBS32.1.2 dxgi-capture.cpp源码确认单进程全局data.swap,任意ResizeBuffers会清空它并由随后首次Present重选;16连续不匹配才再择。当前日志resize后捕获到Qt暗背景,多DIRECT队列被记入同一采集候选。两交换链重建次序是新定位方向(推断,待实验),不改OBS或运行库。下一最小候选仅在实际graphics-hook64.dll存在、视频目标尺寸变更时先保留旧buffer伸展,让UI resize完成后视频再resize;普通播放/未注入保持原行为。恢复9a30cf8/bundle8f5d35dd7c8e1a3531bb9b49389c15d7e82e6a21ed29fb8b9df192fe6f135a86。新最小候选仅VideoPresenter在实际OBS graphics-hook64.dll已加载且目标尺寸变更时记录250ms截止,期间沿用已有buffer伸展,随后视频resize在Qt resize之后执行;每个新尺寸只设一次截止,失败重试保留旧backoff,close清空。未注入/尺寸不变没有额外等待,无CPU sleep/fence增加,无自动配置或重启提示。仍待真实OBS对照,不先称修复。++89ba070/build-r0-resize-v1构建12步成功,新UI SHA f97e8c60f7de599765dab02e4db883318e3d5203828b77b65e64a32773bc514d。R0-obs-resize-delay-v1驱动打印GPU/compat各6通过,但人工查看原图揭示GPU窗口视频实际空白:旧crop包含侧栏/底部统计,判定过宽。这项6/6不能引用为GPU视频通过。封存A的baseline-v2 playing/resize/windowed也空白,resume一次有视频,说明GPU窗口模式是既有不可靠限制;compat各6张均有真实视频,当前与A的fullscreen有真实视频。只在严格视频区域220,180,660,430判定,窗口GPU仅记录观察、不冒充支持;既有OBS兼容模式仍为完整窗口采集路径。修正夹具并为录像添加保比例画布边界,不改用户OBS或产品渲染选项。旧原日志及错误summary保留,另用新版本对照/复测记录更正结论。diff --git a/scripts/perf/nr-r0-obs.py b/scripts/perf/nr-r0-obs.pyindex b44c87d5..7bd70331 100644--- a/scripts/perf/nr-r0-obs.py+++ b/scripts/perf/nr-r0-obs.py@@ -229,7 +229,10 @@ def run():assert time.monotonic() < deadline, 'Actual enhanced playback did not become ready'time.sleep(.25)input_name = 'VeyraOwned-'+mode- rpc.call('CreateInput',{'sceneName':'VeyraR0','inputName':input_name,'inputKind':'game_capture','inputSettings':{'capture_mode':'window','capture_cursor':False,'capture_overlays':True,'allow_transparency':False},'sceneItemEnabled':True})+ created = rpc.call('CreateInput',{'sceneName':'VeyraR0','inputName':input_name,'inputKind':'game_capture','inputSettings':{'capture_mode':'window','capture_cursor':False,'capture_overlays':True,'allow_transparency':False},'sceneItemEnabled':True})+ rpc.call('SetSceneItemTransform',{'sceneName':'VeyraR0','sceneItemId':created['sceneItemId'],+ 'sceneItemTransform':{'positionX':0.0,'positionY':0.0,'alignment':5,+ 'boundsType':'OBS_BOUNDS_SCALE_INNER','boundsWidth':1280.0,'boundsHeight':800.0,'boundsAlignment':0}})items = rpc.call('GetInputPropertiesListPropertyItems',{'inputName':input_name,'propertyName':'window'})['propertyItems']matches = [item for item in items if title in str(item['itemValue'])]assert len(matches) == 1, ('Unique owned capture window not found', mode, matches)@@ -242,10 +245,23 @@ def run():shot = test/(mode+'-'+stage+'.png')rpc.call('SaveSourceScreenshot',{'sourceName':input_name,'imageFormat':'png','imageFilePath':str(shot),'imageWidth':1280,'imageHeight':800})image = Image.open(shot).convert('RGB')- crop = image.crop((200,160,1080,600))+ # This rectangle is strictly inside the video area even when+ # OBS selects the Qt swapchain. The old broad crop included+ # the side panel/statistics and falsely accepted a blank video.+ crop = image.crop((220,180,660,430))variation = ImageStat.Stat(crop).stddev- assert max(variation) > 12, ('Capture lacks real picture',mode,stage,variation)- shots.append({'stage':stage,'image':str(shot),'sha256':matrix.digest(shot),'centerStddev':variation})+ video_available = max(variation) > 12+ # GPU UI has two DXGI swapchains: sealed A also lacks reliable+ # windowed game capture. Full compatibility requires the+ # existing OBS software-UI switch, rather than a false pass.+ required = mode == 'compat' or stage == 'fullscreen'+ observation = {'stage':stage,'image':str(shot),'sha256':matrix.digest(shot),+ 'videoCrop':[220,180,660,430],'videoStddev':variation,+ 'videoAvailable':video_available,'requiredVideoCapture':required,+ 'captureScope':'supported' if required else 'known GPU UI windowed limitation'}+ shots.append(observation)+ (logs/(mode+'-observations.json')).write_text(json.dumps(shots,ensure_ascii=False,indent=2),encoding='utf-8')+ assert not required or video_available, ('Capture lacks real picture',mode,stage,variation)stopped = rpc.call('StopRecord')clip = Path(stopped['outputPath'])assert clip.resolve().is_relative_to((test/'recordings').resolve()) and clip.stat().st_size > 10000@@ -257,7 +273,8 @@ def run():assert not any(value in text for value in ('OBS_UI_FAIL','[ERROR]','[FATAL]','ReferenceError:','TypeError:'))row = {'mode':mode,'command':args,'recording':str(clip),'recordingSha256':matrix.digest(clip),'shots':shots,'obsStats':stats,'passed':True}rows.append(row); (logs/'completed.json').write_text(json.dumps(rows,ensure_ascii=False,indent=2),encoding='utf-8')- print('R0_OBS_CAPTURE_PASS',mode,len(shots),flush=True)+ print('R0_OBS_CAPTURE_PASS',mode,sum(shot['requiredVideoCapture'] for shot in shots),+ 'supported video stages;',len(shots),'observed stages',flush=True)player = Noneassert all(matrix.digest(app/name)==sha for name,sha in payload.items())(logs/'summary.json').write_text(json.dumps({'identity':identity,'runs':rows,'passed':True,'pressure':False},ensure_ascii=False,indent=2),encoding='utf-8')