nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
539 stars 26 forks source link

Unable to capture game screen since OBS 31 beta 2 build 6 #233

Open term1n4l opened 4 days ago

term1n4l commented 4 days ago

Describe the bug OBS VKCapture isn't passing the display of the game screen to OBS since 31 beta 2 build 6. The 'monitor' (preview?) screen is black, however when you go to the game capture source properties the game is visible. If you record it doesn't see the game capture either.

Screenshots or video It looks exactly as described above, but if needed I will provide screenshots

System (please complete the following information):

OBS log:

19:38:29.174: Platform: Wayland
19:38:29.174: CPU Name: AMD Ryzen 7 7700 8-Core Processor
19:38:29.174: CPU Speed: 4350.045MHz
19:38:29.175: Physical Cores: 8, Logical Cores: 16
19:38:29.175: Physical Memory: 31178MB Total, 8350MB Free
19:38:29.175: Kernel Version: Linux 6.11.7-300.fc41.x86_64
19:38:29.175: Distribution: "Fedora Linux" 41
19:38:29.175: Desktop Environment: KDE (KDE)
19:38:29.175: Session Type: wayland
19:38:29.176: Qt Version: 6.8.0 (runtime), 6.8.0 (compiled)
19:38:29.176: Portable mode: false
19:38:29.194: OBS 31.0.0-beta3-8-g7979421cb (linux)
19:38:29.194: ---------------------------------
19:38:29.195: ---------------------------------
19:38:29.195: audio settings reset:
19:38:29.195:   samples per sec: 48000
19:38:29.195:   speakers:        2
19:38:29.195:   max buffering:   960 milliseconds
19:38:29.195:   buffering type:  dynamically increasing
19:38:29.201: ---------------------------------
19:38:29.201: Initializing OpenGL...
19:38:29.201: Using EGL/Wayland
19:38:29.243: Initialized EGL 1.5
19:38:29.305: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce RTX 4060 Ti/PCIe/SSE2
19:38:29.305: OpenGL loaded successfully, version 3.3.0 NVIDIA 565.57.01, shading language 3.30 NVIDIA via Cg compiler
19:38:29.322: ---------------------------------
19:38:29.322: video settings reset:
19:38:29.322:   base resolution:   2560x1440
19:38:29.322:   output resolution: 1920x1080
19:38:29.322:   downscale filter:  Lanczos
19:38:29.322:   fps:               60/1
19:38:29.322:   format:            NV12
19:38:29.322:   YUV mode:          Rec. 709/Partial
19:38:29.322: NV12 texture support enabled
19:38:29.322: P010 texture support not available
19:38:29.322: Audio monitoring device:
19:38:29.322:   name: Default
19:38:29.322:   id: default
19:38:29.324: ---------------------------------
19:38:29.497: [pipewire] Available capture sources:
19:38:29.497: [pipewire]     - Monitor source
19:38:29.497: [pipewire]     - Window source
19:38:29.542: Failed to load 'en-GB' text for module: 'linux-vkcapture.so'
19:38:29.542: [linux-vkcapture] plugin loaded successfully (version 1.5.1)
19:38:29.559: [obs-browser]: Version 2.24.4
19:38:29.559: [obs-browser]: CEF Version 127.0.6533.100 (runtime), 127.3.4+ge9e2e14+chromium-127.0.6533.100 (compiled)
19:38:29.675: VAAPI: API version 1.22
19:38:29.676: VAAPI: Failed to initialize display in vaapi_device_h264_supported
19:38:29.676: FFmpeg VAAPI H264 encoding not supported
19:38:29.682: VAAPI: Failed to initialize display in vaapi_device_av1_supported
19:38:29.682: FFmpeg VAAPI AV1 encoding not supported
19:38:29.688: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
19:38:29.688: FFmpeg VAAPI HEVC encoding not supported
19:38:30.191: [obs-nvenc] NVENC version: 12.2 (compiled) / 12.2 (driver), CUDA driver version: 12.70, AV1 supported: true
19:38:30.296: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.4 | RPC Version: 1)
19:38:30.296: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.8.0 | Qt version (run-time): 6.8.0
19:38:30.296: [obs-websocket] [obs_module_load] Linked ASIO Version: 103002
19:38:30.296: DEPRECATION: obs_frontend_get_global_config is deprecated. Read from global or user configuration explicitly instead.
19:38:30.299: [obs-websocket] [obs_module_load] Module loaded.
19:38:30.358: [vlc-video]: VLC 3.0.21 Vetinari found, VLC video source enabled
19:38:30.372: [3D Effect] loaded version 0.1.0
19:38:30.387: [Aitum-Multistream] loaded version 1.0.4
19:38:30.408: [Downstream Keyer] loaded version 0.3.2
19:38:30.424: [Gradient Source] loaded version 0.3.2
19:38:30.453: [Move Transition] loaded version 3.1.1
19:38:30.469: [Advanced Masks] loaded version 1.1.0
19:38:30.485: [obs-backgroundremoval] Plugin loaded successfully (version 1.1.13)
19:38:30.486: [obs-backgroundremoval] Failed to open config file /home/stealthcipher/.config/obs-studio/plugin_config/obs-backgroundremoval/config.ini
19:38:30.486: [obs-backgroundremoval] Failed to open config file /home/stealthcipher/.config/obs-studio/plugin_config/obs-backgroundremoval/config.ini
19:38:30.928: [obs-backgroundremoval] Latest release is 
19:38:30.944: [Composite Blur] loaded version 1.1.0
19:38:30.959: [obs-shaderfilter] loaded version 2.3.2
19:38:30.973: [Stroke Glow Shadow] loaded version 1.0.2
19:38:30.988: [Source Clone] loaded version 0.1.5
19:38:31.004: [Vertical Canvas] loaded version 1.4.10
19:38:31.021: [phandasm_waveform]: Registered v1.8.1 x64
19:38:31.021: [phandasm_waveform]: Using CPU capabilities: AVX2 AVX FMA3 SSE2
19:38:31.021: ---------------------------------
19:38:31.021:   Loaded Modules:
19:38:31.021:     waveform.so
19:38:31.021:     vertical-canvas.so
19:38:31.021:     source-clone.so
19:38:31.021:     obs-stroke-glow-shadow.so
19:38:31.021:     obs-shaderfilter.so
19:38:31.021:     obs-composite-blur.so
19:38:31.021:     obs-backgroundremoval.so
19:38:31.021:     obs-advanced-masks.so
19:38:31.021:     move-transition.so
19:38:31.021:     linux-pipewire-audio.so
19:38:31.021:     gradient-source.so
19:38:31.021:     downstream-keyer.so
19:38:31.021:     aitum-multistream.so
19:38:31.021:     3d-effect.so
19:38:31.021:     vlc-video.so
19:38:31.021:     text-freetype2.so
19:38:31.021:     rtmp-services.so
19:38:31.021:     obs-x264.so
19:38:31.021:     obs-websocket.so
19:38:31.021:     obs-webrtc.so
19:38:31.021:     obs-vst.so
19:38:31.021:     obs-transitions.so
19:38:31.021:     obs-qsv11.so
19:38:31.021:     obs-outputs.so
19:38:31.021:     obs-nvenc.so
19:38:31.021:     obs-libfdk.so
19:38:31.021:     obs-filters.so
19:38:31.021:     obs-ffmpeg.so
19:38:31.021:     obs-browser.so
19:38:31.021:     linux-vkcapture.so
19:38:31.021:     linux-v4l2.so
19:38:31.021:     linux-pulseaudio.so
19:38:31.021:     linux-pipewire.so
19:38:31.021:     linux-jack.so
19:38:31.021:     linux-capture.so
19:38:31.021:     linux-alsa.so
19:38:31.021:     image-source.so
19:38:31.021:     frontend-tools.so
19:38:31.021: ---------------------------------
19:38:31.021: [Vertical Canvas] Loaded configuration file
19:38:31.033: QLayout: Attempting to add QLayout "" to CanvasDock "contextContainer", which already has a layout
19:38:31.037: [obs-websocket] [obs_module_post_load] WebSocket server is enabled, starting...
19:38:31.037: [obs-websocket] [WebSocketServer::Start] Not locked to IPv4 bindings
19:38:31.037: [obs-websocket] [WebSocketServer::ServerRunner] IO thread started.
19:38:31.037: [obs-websocket] [WebSocketServer::Start] Server started successfully on port 4455. Possible connect address: 172.17.45.61
19:38:31.037: ---------------------------------
19:38:31.037: Available Encoders:
19:38:31.037:   Video Encoders:
19:38:31.037:   - ffmpeg_svt_av1 (SVT-AV1)
19:38:31.037:   - ffmpeg_aom_av1 (AOM AV1)
19:38:31.037:   - obs_nvenc_h264_tex (NVIDIA NVENC H.264)
19:38:31.037:   - obs_nvenc_hevc_tex (NVIDIA NVENC HEVC)
19:38:31.037:   - obs_nvenc_av1_tex (NVIDIA NVENC AV1)
19:38:31.037:   - obs_x264 (x264)
19:38:31.037:   Audio Encoders:
19:38:31.037:   - ffmpeg_aac (FFmpeg AAC)
19:38:31.037:   - ffmpeg_opus (FFmpeg Opus)
19:38:31.037:   - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
19:38:31.037:   - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
19:38:31.037:   - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
19:38:31.037:   - ffmpeg_alac (FFmpeg ALAC (24-bit))
19:38:31.037:   - ffmpeg_flac (FFmpeg FLAC (16-bit))
19:38:31.037:   - libfdk_aac (libfdk AAC)
19:38:31.037: ==== Startup complete ===============================================
19:38:31.074: All scene data cleared
19:38:31.074: ------------------------------------------------
19:38:31.076: [pipewire] Created stream 0x46c8670
19:38:31.079: [pipewire] Created app capture sink 118 with 2 channels and position FL,FR
19:38:31.090: [pipewire] 0x46c8670 Got format: rate 48000 - channels 2 - format 8
19:38:31.094: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: game audio (PipeWire))
19:38:31.094: 
19:38:31.169: v4l2-input: Start capture from /dev/video1
19:38:31.282: v4l2-input: Input: 0
19:38:31.357: v4l2-input: Resolution: 1280x720
19:38:31.357: v4l2-input: Pixelformat: MJPG
19:38:31.357: v4l2-input: Linesize: 0 Bytes
19:38:31.357: v4l2-input: Framerate: 30.00 fps
19:38:31.358: v4l2-input: /dev/video1: select timeout set to 166666 (5x frame periods)
19:38:31.363: [pipewire] Created stream 0x4da9b20
19:38:31.364: [pipewire] 0x4da9b20 streaming from 86
19:38:31.366: [pipewire] Created stream 0x52525f0
19:38:31.370: PipeWire initialized
19:38:31.371: [pipewire] Created app capture sink 134 with 2 channels and position FL,FR
19:38:31.373: ext_screencopy_manager_v1 not available
19:38:31.375: Switched to scene 'stream'
19:38:31.376: [pipewire] 0x4da9b20 Got format: rate 48000 - channels 2 - format 8
19:38:31.380: ------------------------------------------------
19:38:31.380: Loaded scenes:
19:38:31.380: - scene 'Intro':
19:38:31.380:     - source: 'starting' (browser_source)
19:38:31.380:     - source: 'Waveform Visualizer' (phandasm_waveform_source)
19:38:31.380:     - source: 'logo' (image_source)
19:38:31.380: - scene 'stream':
19:38:31.380:     - source: 'game' (group)
19:38:31.380:         - source: 'game audio (PipeWire)' (pipewire_audio_application_capture)
19:38:31.380:         - source: 'Game Capture' (vkcapture-source)
19:38:31.380:     - source: 'mic' (pipewire_audio_input_capture)
19:38:31.380:         - filter: 'Gain' (gain_filter)
19:38:31.380:         - filter: 'Noise Gate' (noise_gate_filter)
19:38:31.380:         - filter: 'Compressor' (compressor_filter)
19:38:31.380:         - filter: 'Noise Suppression' (noise_suppress_filter_v2)
19:38:31.380:     - source: 'Screen Capture (PipeWire)' (pipewire-screen-capture-source)
19:38:31.380:     - source: 'strimlogo' (source-clone)
19:38:31.380:     - source: 'alerts' (browser_source)
19:38:31.380:     - source: 'chat' (browser_source)
19:38:31.380:     - source: 'streamcam' (source-clone)
19:38:31.380:         - filter: 'Advanced Mask' (advanced_masks_filter_v2)
19:38:31.380:         - filter: 'Glow' (obs_glow_filter)
19:38:31.380: - scene 'chatting':
19:38:31.380:     - source: 'background' (browser_source)
19:38:31.380:     - source: 'Browser' (browser_source)
19:38:31.380:     - source: 'chatcam' (v4l2_input)
19:38:31.380:     - source: 'chatmic' (source-clone)
19:38:31.380:     - source: 'chatlogo' (source-clone)
19:38:31.380:     - source: 'chatlogo2' (source-clone)
19:38:31.380:     - source: 'chattingchat' (source-clone)
19:38:31.380:     - source: 'socials' (text_ft2_source_v2)
19:38:31.380: - scene 'Vertical Scene':
19:38:31.380: - scene 'brb':
19:38:31.380:     - source: 'be right back' (browser_source)
19:38:31.380:     - source: 'brblogo' (source-clone)
19:38:31.380:     - source: 'Source Clone' (source-clone)
19:38:31.380: - scene 'ending':
19:38:31.380:     - source: 'streamending' (browser_source)
19:38:31.380:     - source: 'endinglogo' (source-clone)
19:38:31.380:     - source: 'endingvisualiser' (source-clone)
19:38:31.380: - scene 'global':
19:38:31.380:     - source: 'music' (pipewire_audio_application_capture)
19:38:31.380: ------------------------------------------------
19:38:31.395: Reparenting QWidgetWindow(0x4424aa0, name="previewWindow") before destroying 0x4588570
19:38:31.408: [pipewire] 0x52525f0 Got format: rate 48000 - channels 2 - format 8
19:38:31.436: [Aitum Multistream] Loaded configuration file
19:38:31.457: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: chatmic)
19:38:31.457: 
19:38:31.460: [pipewire] Screencast session created
19:38:31.535: v4l2-input: /dev/video1: select timed out
19:38:31.535: v4l2-input: /dev/video1: failed to log status
19:38:31.538: [pipewire] Asking for monitor and window
19:38:31.890: [obs-browser: 'Browser'] Error: Uncaught (in promise) NotAllowedError: Failed to execute 'request' on 'WakeLock': The requesting page is not visible (https://wos.gg/scripts/index.js?v=1720805205566:1)
19:38:31.981: [obs-browser: 'background'] Error: zaraz is loaded twice (https://widgets.streamelements.com/z/i.js:1)
19:38:32.024: [obs-browser: 'starting'] Error: zaraz is loaded twice (https://widgets.streamelements.com/z/i.js:1)
19:38:32.223: [obs-browser: 'be right back'] Error: zaraz is loaded twice (https://widgets.streamelements.com/z/i.js:1)
19:38:32.229: [obs-browser: 'streamending'] Error: zaraz is loaded twice (https://widgets.streamelements.com/z/i.js:1)
19:38:32.870: [obs-browser: 'alerts'] Error: [GraphQL] One or more GraphQL errors were detected on request 01JCG2P3BYG1K9FDBR3J9WBQY3. AlertsFeatureLaunchFlags: unauthenticated, ActivityListContextV2Query: unauthenticated [object Object],[object Object] (https://assets.twitch.tv/assets/sunlight-overlay-90863671df44ee43e1ee.js:1)
19:38:33.211: [obs-browser: 'chat'] Error: zaraz is loaded twice (https://streamelements.com/overlay/662c90adf2cee26d1b7d71dd/flDp8tkMDqXkO0AnlcNoizTzPIZfG_XGinxr2eqYnLldEGVV:4)
19:38:34.080: [pipewire] Failed to start screencast, denied or cancelled by user
19:38:36.439: [obs-browser: 'be right back'] Error: Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:* ws://localhost:* wss://localhost:* ws://127.0.0.1:* wss://127.0.0.1:* *.googleapis.com *.gstatic.com *.streamelements.com https://cdn.trovo.live http://cdn.trovo.live https://fonts.gstatic.com https://edge.fullstory.com elementsusercontent.com https://elementsusercontent.com http://cdn.jsdelivr.net https://cdn.jsdelivr.net http://cdnjs.cloudflare.com https://cdnjs.cloudflare.com http://code.jquery.com https://code.jquery.com http://ajax.googleapis.com https://ajax.googleapis.com http://unpkg.com https://unpkg.com http://static-cdn.jtvnw.net https://static-cdn.jtvnw.net http://cdn.jtvnw.net https://cdn.jtvnw.net *.cloudfront.net https://cdn.betterttv.net https://cdn.7tv.app https://cdn.frankerfacez.com https://pkg.streamelements.com/ data: localhost 127.0.0.1". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
19:38:36.439:  (https://pkg.streamelements.com/widgets-v2-demo@0.19.0/index.html:0)
19:38:36.484: [obs-browser: 'streamending'] Error: Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:* ws://localhost:* wss://localhost:* ws://127.0.0.1:* wss://127.0.0.1:* *.googleapis.com *.gstatic.com *.streamelements.com https://cdn.trovo.live http://cdn.trovo.live https://fonts.gstatic.com https://edge.fullstory.com elementsusercontent.com https://elementsusercontent.com http://cdn.jsdelivr.net https://cdn.jsdelivr.net http://cdnjs.cloudflare.com https://cdnjs.cloudflare.com http://code.jquery.com https://code.jquery.com http://ajax.googleapis.com https://ajax.googleapis.com http://unpkg.com https://unpkg.com http://static-cdn.jtvnw.net https://static-cdn.jtvnw.net http://cdn.jtvnw.net https://cdn.jtvnw.net *.cloudfront.net https://cdn.betterttv.net https://cdn.7tv.app https://cdn.frankerfacez.com https://pkg.streamelements.com/ data: localhost 127.0.0.1". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
19:38:36.484:  (https://pkg.streamelements.com/widgets-v2-demo@0.19.0/index.html:0)
19:38:37.213: [obs-browser: 'starting'] Error: Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:* ws://localhost:* wss://localhost:* ws://127.0.0.1:* wss://127.0.0.1:* *.googleapis.com *.gstatic.com *.streamelements.com https://cdn.trovo.live http://cdn.trovo.live https://fonts.gstatic.com https://edge.fullstory.com elementsusercontent.com https://elementsusercontent.com http://cdn.jsdelivr.net https://cdn.jsdelivr.net http://cdnjs.cloudflare.com https://cdnjs.cloudflare.com http://code.jquery.com https://code.jquery.com http://ajax.googleapis.com https://ajax.googleapis.com http://unpkg.com https://unpkg.com http://static-cdn.jtvnw.net https://static-cdn.jtvnw.net http://cdn.jtvnw.net https://cdn.jtvnw.net *.cloudfront.net https://cdn.betterttv.net https://cdn.7tv.app https://cdn.frankerfacez.com https://pkg.streamelements.com/ data: localhost 127.0.0.1". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
19:38:37.213:  (https://pkg.streamelements.com/widgets-v2-demo@0.19.0/index.html:0)
19:38:37.592: [obs-browser: 'background'] Error: Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' http://localhost:* https://localhost:* http://127.0.0.1:* https://127.0.0.1:* ws://localhost:* wss://localhost:* ws://127.0.0.1:* wss://127.0.0.1:* *.googleapis.com *.gstatic.com *.streamelements.com https://cdn.trovo.live http://cdn.trovo.live https://fonts.gstatic.com https://edge.fullstory.com elementsusercontent.com https://elementsusercontent.com http://cdn.jsdelivr.net https://cdn.jsdelivr.net http://cdnjs.cloudflare.com https://cdnjs.cloudflare.com http://code.jquery.com https://code.jquery.com http://ajax.googleapis.com https://ajax.googleapis.com http://unpkg.com https://unpkg.com http://static-cdn.jtvnw.net https://static-cdn.jtvnw.net http://cdn.jtvnw.net https://cdn.jtvnw.net *.cloudfront.net https://cdn.betterttv.net https://cdn.7tv.app https://cdn.frankerfacez.com https://pkg.streamelements.com/ data: localhost 127.0.0.1". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
19:38:37.592:  (https://pkg.streamelements.com/widgets-v2-demo@0.19.0/index.html:0)
19:38:37.689: [obs-browser: 'background'] Error: Uncaught (in promise) AbortError: The play() request was interrupted because video-only background media was paused to save power. https://goo.gl/LdLk22 (https://pkg.streamelements.com/widgets-v2-demo@0.19.0/index.html:0)
19:38:56.432: Creating a popup with a parent, QWidgetWindow(0x2ff7740, name="OBSBasicWindow") which does not match the current topmost grabbing popup, QWidgetWindow(0x691d090, name="QMenuClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.
19:38:58.873: User Removed source 'Screen Capture (PipeWire)' (pipewire-screen-capture-source) from scene 'stream'
19:39:29.855: [linux-vkcapture] Client 1 connected (pid=16632)
19:39:31.010: [pipewire] Could not connect port 148 of node 131 to app capture sink. No port of app capture sink has channel AUX0
19:39:31.010: [pipewire] Could not connect port 129 of node 131 to app capture sink. No port of app capture sink has channel AUX1
19:39:31.010: [pipewire] Could not connect port 144 of node 131 to app capture sink. No port of app capture sink has channel AUX2
19:39:31.010: [pipewire] Could not connect port 145 of node 131 to app capture sink. No port of app capture sink has channel AUX3
19:39:31.010: [pipewire] Could not connect port 125 of node 131 to app capture sink. No port of app capture sink has channel AUX4
19:39:31.010: [pipewire] Could not connect port 142 of node 131 to app capture sink. No port of app capture sink has channel AUX5
19:39:31.025: [pipewire] Could not connect port 142 of node 131 to app capture sink. No port of app capture sink has channel AUX0
19:39:31.025: [pipewire] Could not connect port 165 of node 131 to app capture sink. No port of app capture sink has channel AUX1
19:39:31.025: [pipewire] Could not connect port 125 of node 131 to app capture sink. No port of app capture sink has channel AUX2
19:39:31.025: [pipewire] Could not connect port 122 of node 131 to app capture sink. No port of app capture sink has channel AUX3
19:39:31.025: [pipewire] Could not connect port 145 of node 131 to app capture sink. No port of app capture sink has channel AUX4
19:39:31.025: [pipewire] Could not connect port 140 of node 131 to app capture sink. No port of app capture sink has channel AUX5
19:39:31.039: [pipewire] Could not connect port 140 of node 131 to app capture sink. No port of app capture sink has channel AUX0
19:39:31.039: [pipewire] Could not connect port 141 of node 131 to app capture sink. No port of app capture sink has channel AUX1
19:39:31.790: [linux-vkcapture] Client 1 disconnected
19:39:32.054: [linux-vkcapture] Client 2 connected (pid=16682)
19:39:33.072: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:216172782120099860
19:39:33.072: [linux-vkcapture]  [0] fd:272 stride:10240 offset:0
19:39:40.573: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:216172782120099860
19:39:40.573: [linux-vkcapture]  [0] fd:270 stride:10240 offset:0
19:39:50.155: adding 149 milliseconds of audio buffering, total audio buffering is now 192 milliseconds (source: chatmic)
19:39:50.155: 
19:40:03.831: [linux-vkcapture] Client 2 disconnected
19:40:32.101: [linux-vkcapture] Client 3 connected (pid=20875)
19:40:33.262: [pipewire] Could not connect port 147 of node 156 to app capture sink. No port of app capture sink has channel AUX0
19:40:33.262: [pipewire] Could not connect port 143 of node 156 to app capture sink. No port of app capture sink has channel AUX1
19:40:33.262: [pipewire] Could not connect port 153 of node 156 to app capture sink. No port of app capture sink has channel AUX2
19:40:33.262: [pipewire] Could not connect port 160 of node 156 to app capture sink. No port of app capture sink has channel AUX3
19:40:33.262: [pipewire] Could not connect port 122 of node 156 to app capture sink. No port of app capture sink has channel AUX4
19:40:33.262: [pipewire] Could not connect port 129 of node 156 to app capture sink. No port of app capture sink has channel AUX5
19:40:33.277: [pipewire] Could not connect port 129 of node 156 to app capture sink. No port of app capture sink has channel AUX0
19:40:33.277: [pipewire] Could not connect port 125 of node 156 to app capture sink. No port of app capture sink has channel AUX1
19:40:33.278: [pipewire] Could not connect port 122 of node 156 to app capture sink. No port of app capture sink has channel AUX2
19:40:33.278: [pipewire] Could not connect port 164 of node 156 to app capture sink. No port of app capture sink has channel AUX3
19:40:33.278: [pipewire] Could not connect port 160 of node 156 to app capture sink. No port of app capture sink has channel AUX4
19:40:33.278: [pipewire] Could not connect port 152 of node 156 to app capture sink. No port of app capture sink has channel AUX5
19:40:33.292: [pipewire] Could not connect port 152 of node 156 to app capture sink. No port of app capture sink has channel AUX0
19:40:33.292: [pipewire] Could not connect port 142 of node 156 to app capture sink. No port of app capture sink has channel AUX1
19:40:34.039: [linux-vkcapture] Client 3 disconnected
19:40:34.319: [linux-vkcapture] Client 4 connected (pid=20925)
19:40:35.339: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:216172782120099860
19:40:35.339: [linux-vkcapture]  [0] fd:278 stride:10240 offset:0
19:40:42.974: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:216172782120099860
19:40:42.974: [linux-vkcapture]  [0] fd:287 stride:10240 offset:0
19:41:24.940: [linux-vkcapture] Creating texture from dmabuf 2560x1440 modifier:216172782120099860
19:41:24.940: [linux-vkcapture]  [0] fd:94 stride:10240 offset:0

Game log:

I will paste log later
Make sure to set OBS_VKCAPTURE_QUIET=0 environment variable.

Please note: OBS 31 beta 2 build 6 contained the following commit:

https://github.com/obsproject/obs-studio/commit/23e772cc2ce57cbc94f2873b92395b3de9223cf1

which I believe may have some bearing on this issue because it modified the file UI/importers/studio.cpp to modify the behaviour of the windowing system selection. It was working fine in the previous OBS 31 beta builds before this commit and afaict that's the only pertinent change that would affect OBS-VKCapture.

nowrep commented 4 days ago

I'll need the logs. It works fine for me with OBS git.

term1n4l commented 3 days ago

I thought it had worked after a recompile but maybe my screen capture with pipewire was just capping the screen, anyway obs log is now there. Not sure where to grab the game log though, is that documented anywhere?

nowrep commented 3 days ago

Does it also happen in clean scene with only one game capture and nothing else?

term1n4l commented 2 days ago

it works without issue on a clean scene

nowrep commented 2 days ago

Please try to make a reproducer with as little sources as possible and send me the scene (Scene Collection -> Export).

term1n4l commented 2 days ago

testcollect.json

this is kinda the bare minimum for my game cap albeit minus my usual alert and chat overlay browser sources

nowrep commented 2 days ago

Still can't reproduce.

What happens if you add another game capture source in the scene?

Can you also try with igpu? DRI_PRIME=1 obs + obs-gamecapture vkcube --gpu_number 1

term1n4l commented 2 days ago

I just modified the original scene and removed the 'game' group that I had in it and re-added game capture and the game capture is working on the original scene now without the group. I had previously found that if I added a second game capture source that second instance worked fine. When I try with the iGPU i definitely don't get any capture from vkcube if trying to use the igpu, in fact vkcube crashes if I try to run it on the igpu. if I run vkcube outside of my toolbox I can capture it in obs fine though now that I have removed the group