nowrep / obs-vkcapture

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

Not working for game capture after Gnome 46 update #200

Closed xfceKris closed 3 months ago

xfceKris commented 3 months ago

Describe the bug env OBS_VKCAPTURE=1 %command% and obs-gamecapture %command% not showing steam games in OBS scene after the recent Gnome 46 update. OBS, Steam, VkCapture, and Capture Tools are all installed via flatpak with most recent versions. Also can no longer resize the Game Capture source within OBS scene since update. Adding Game Capture source places resize handle in top left corner of scene, and "Ctrl+f" fills scene canvas with the source, but manual resizing is impossible.

System (please complete the following information):

OBS log:

https://obsproject.com/logs/p4eEOQxBA8xsc17e
13:34:35.211: Platform: Wayland
13:34:35.211: CPU Name: AMD Ryzen 3 3200G with Radeon Vega Graphics
13:34:35.211: CPU Speed: 4003.039MHz
13:34:35.211: Physical Cores: 4, Logical Cores: 4
13:34:35.211: Physical Memory: 15908MB Total, 4878MB Free
13:34:35.211: Kernel Version: Linux 6.8.2-zen1-1-zen
13:34:35.211: Flatpak Branch: stable
13:34:35.211: Flatpak Arch: x86_64
13:34:35.211: Flatpak Runtime: runtime/org.kde.Platform/x86_64/6.6
13:34:35.211: App Extensions:
13:34:35.211:  - com.obsproject.Studio.Plugin.GStreamerVaapi
13:34:35.211:  - com.obsproject.Studio.Plugin.Gstreamer
13:34:35.211:  - com.obsproject.Studio.Plugin.InputOverlay
13:34:35.211:  - com.obsproject.Studio.Plugin.OBSVkCapture
13:34:35.211:  - com.obsproject.Studio.Plugin.SceneSwitcher
13:34:35.211:  - com.obsproject.Studio.Locale
13:34:35.211: Runtime Extensions:
13:34:35.211:  - org.freedesktop.Platform.GL.default
13:34:35.211:  - org.freedesktop.Platform.openh264
13:34:35.211:  - org.freedesktop.Platform.VulkanLayer.MangoHud
13:34:35.211:  - org.freedesktop.Platform.VulkanLayer.OBSVkCapture
13:34:35.211:  - org.freedesktop.Platform.VulkanLayer.gamescope
13:34:35.211:  - org.freedesktop.Platform.VulkanLayer.vkBasalt
13:34:35.211:  - org.gtk.Gtk3theme.Adwaita-dark
13:34:35.211:  - org.kde.PlatformTheme.QGnomePlatform
13:34:35.211:  - org.kde.WaylandDecoration.QAdwaitaDecorations
13:34:35.211:  - org.kde.Platform.Locale
13:34:35.211:  - org.freedesktop.Platform.GL.default
13:34:35.211: Flatpak Framework Version: 1.15.6
13:34:35.211: Desktop Environment: GNOME (gnome)
13:34:35.211: Session Type: wayland
13:34:35.214: Qt Version: 6.6.2 (runtime), 6.6.2 (compiled)
13:34:35.214: Portable mode: false
13:34:35.251: OBS 30.1.1 (linux)
13:34:35.251: ---------------------------------
13:34:35.251: ---------------------------------
13:34:35.251: audio settings reset:
13:34:35.251:   samples per sec: 48000
13:34:35.251:   speakers:        2
13:34:35.251:   max buffering:   960 milliseconds
13:34:35.251:   buffering type:  dynamically increasing
13:34:35.254: ---------------------------------
13:34:35.254: Initializing OpenGL...
13:34:35.254: Using EGL/Wayland
13:34:35.286: Initialized EGL 1.5
13:34:35.301: Loading up OpenGL on adapter AMD AMD Radeon R9 380 Series (radeonsi, tonga, LLVM 17.0.6, DRM 3.57, 6.8.2-zen1-1-zen)
13:34:35.301: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 24.0.3 (git-c4d371fa7e), shading language 4.60
13:34:35.339: ---------------------------------
13:34:35.339: video settings reset:
13:34:35.339:   base resolution:   1920x1080
13:34:35.339:   output resolution: 1920x1080
13:34:35.339:   downscale filter:  Bicubic
13:34:35.339:   fps:               60/1
13:34:35.339:   format:            NV12
13:34:35.339:   YUV mode:          Rec. 709/Partial
13:34:35.340: NV12 texture support enabled
13:34:35.340: P010 texture support not available
13:34:35.343: Audio monitoring device:
13:34:35.343:   name: Default
13:34:35.343:   id: default
13:34:35.343: ---------------------------------
13:34:35.357: No AJA devices found, skipping loading AJA UI plugin
13:34:35.357: Failed to initialize module 'aja-output-ui.so'
13:34:35.371: No AJA devices found, skipping loading AJA plugin
13:34:35.371: Failed to initialize module 'aja.so'
13:34:35.376: Failed to load 'en-US' text for module: 'decklink-captions.so'
13:34:35.382: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
13:34:35.387: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
13:34:35.387: Failed to initialize module 'decklink.so'
13:34:35.586: [pipewire] Available captures:
13:34:35.586: [pipewire]     - Desktop capture
13:34:35.586: [pipewire]     - Window capture
13:34:35.608: v4l2loopback not installed, virtual camera disabled
13:34:35.617: [obs-browser]: Version 2.23.4
13:34:35.617: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled)
13:34:35.634: VAAPI: API version 1.19
13:34:35.636: FFmpeg VAAPI H264 encoding supported
13:34:35.644: FFmpeg VAAPI AV1 encoding not supported
13:34:35.652: FFmpeg VAAPI HEVC encoding not supported
13:34:35.738: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.4.2 | RPC Version: 1)
13:34:35.738: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.2 | Qt version (run-time): 6.6.2
13:34:35.738: [obs-websocket] [obs_module_load] Linked ASIO Version: 102900
13:34:35.743: [obs-websocket] [obs_module_load] Module loaded.
13:34:35.782: [adv-ss] version: 1.25.3
13:34:35.782: [adv-ss] version: 70dad8ebb4d5b28e6abe73103870949418ed2d4a
13:34:35.782: [adv-ss] attempting to load "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
13:34:35.784: [adv-ss] successfully loaded "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-base.so"
13:34:35.784: [adv-ss] attempting to load "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
13:34:35.795: [adv-ss] successfully loaded "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-midi.so"
13:34:35.795: [adv-ss] attempting to load "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
13:34:35.802: [adv-ss] successfully loaded "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-opencv.so"
13:34:35.802: [adv-ss] attempting to load "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
13:34:35.804: [adv-ss] successfully loaded "/app/plugins/lib/obs-plugins/adv-ss-plugins/advanced-scene-switcher-twitch.so"
13:34:35.805: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
13:34:35.805: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
13:34:35.806: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
13:34:35.807: QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
13:34:35.849: [input-overlay] Loading v5.0.5-HEAD (e90e7e9) build time 2024.03.06 22:00
13:34:35.856: [linux-vkcapture] plugin loaded successfully (version 1.4.9)
13:34:35.870: [obs-gstreamer] build: 7dd3e69, gst-runtime: 1.22.10
13:34:35.887: [obs-vaapi] version: 0.4.1, gst-runtime: 1.22.10
13:34:35.887: [obs-vaapi] found vah264enc
13:34:35.895: [obs-teleport] version: 0.6.6
13:34:35.896: ---------------------------------
13:34:35.896:   Loaded Modules:
13:34:35.896:     obs-teleport.so
13:34:35.896:     obs-vaapi.so
13:34:35.896:     obs-gstreamer.so
13:34:35.896:     linux-vkcapture.so
13:34:35.896:     input-overlay.so
13:34:35.896:     advanced-scene-switcher.so
13:34:35.896:     text-freetype2.so
13:34:35.896:     rtmp-services.so
13:34:35.896:     obs-x264.so
13:34:35.896:     obs-websocket.so
13:34:35.896:     obs-webrtc.so
13:34:35.896:     obs-vst.so
13:34:35.896:     obs-transitions.so
13:34:35.896:     obs-qsv11.so
13:34:35.896:     obs-outputs.so
13:34:35.896:     obs-libfdk.so
13:34:35.896:     obs-filters.so
13:34:35.896:     obs-ffmpeg.so
13:34:35.896:     obs-browser.so
13:34:35.896:     linux-v4l2.so
13:34:35.896:     linux-pulseaudio.so
13:34:35.896:     linux-pipewire.so
13:34:35.896:     linux-jack.so
13:34:35.896:     linux-capture.so
13:34:35.896:     image-source.so
13:34:35.896:     frontend-tools.so
13:34:35.896:     decklink-output-ui.so
13:34:35.896:     decklink-captions.so
13:34:35.896: ---------------------------------
13:34:35.896: ==== Startup complete ===============================================
13:34:35.925: QObject::connect: No such slot io_settings_dialog::RefreshUi()
13:34:35.925: QObject::connect:  (receiver name: 'io_config_dialog')
13:34:35.938: All scene data cleared
13:34:35.938: ------------------------------------------------
13:34:35.944: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.944: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
13:34:35.944: pulse-input: Started recording from 'alsa_output.usb-Logitech_Logitech_G35_Headset-00.analog-stereo.monitor' (default)
13:34:35.944: [Loaded global audio device]: 'Desktop Audio'
13:34:35.945: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.945: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
13:34:35.946: pulse-input: Started recording from 'alsa_output.usb-Logitech_Logitech_G35_Headset-00.analog-stereo.monitor' (default)
13:34:35.946: [Loaded global audio device]: 'Desktop Audio 2'
13:34:35.946: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.946: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
13:34:35.946: pulse-input: Started recording from 'alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_797_2020_11_23_99234-00.mono-fallback'
13:34:35.947: [Loaded global audio device]: 'Mic/Aux'
13:34:35.947:     - filter: 'Noise Suppression' (noise_suppress_filter_v2)
13:34:35.947: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.947: pulse-input: An error occurred while getting the source info!
13:34:35.948: [Loaded global audio device]: 'Mic/Aux 2'
13:34:35.948: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.948: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
13:34:35.949: pulse-input: Started recording from 'alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_797_2020_11_23_99234-00.mono-fallback' (default)
13:34:35.949: [Loaded global audio device]: 'Mic/Aux 3'
13:34:35.950: pulse-input: Server name: 'PulseAudio (on PipeWire 1.0.4) 15.0.0'
13:34:35.951: pulse-input: Audio format: s16le, 48000 Hz, 1 channels
13:34:35.951: pulse-input: Started recording from 'alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_797_2020_11_23_99234-00.mono-fallback' (default)
13:34:35.951: [Loaded global audio device]: 'Mic/Aux 4'
13:34:36.074: v4l2-input: Start capture from /dev/video0
13:34:36.074: v4l2-input: Input: 0
13:34:36.152: v4l2-input: Resolution: 800x600
13:34:36.152: v4l2-input: Pixelformat: MJPG
13:34:36.152: v4l2-input: Linesize: 0 Bytes
13:34:36.152: v4l2-input: Framerate: 30.00 fps
13:34:36.153: v4l2-input: /dev/video0: select timeout set to 166666 (5x frame periods)
13:34:36.155: Switched to scene 'Streaming'
13:34:36.155: [adv-ss] trying to reconnect to  in 10 seconds.
13:34:36.155: ------------------------------------------------
13:34:36.155: Loaded scenes:
13:34:36.155: - scene 'Streaming':
13:34:36.156:     - source: 'Background' (image_source)
13:34:36.156:     - source: 'Video Capture Device (V4L2)' (v4l2_input)
13:34:36.156: ------------------------------------------------
13:34:36.335: v4l2-input: /dev/video0: select timed out
13:34:36.335: v4l2-input: /dev/video0: failed to log status
13:34:36.503: v4l2-input: /dev/video0: select timed out
13:34:36.503: v4l2-input: /dev/video0: failed to log status
13:34:36.512: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)
13:34:36.512: 
13:34:36.596: adding 42 milliseconds of audio buffering, total audio buffering is now 64 milliseconds (source: Mic/Aux)
13:34:36.596: 
13:34:36.670: v4l2-input: /dev/video0: select timed out
13:34:36.670: v4l2-input: /dev/video0: failed to log status
13:34:36.837: v4l2-input: /dev/video0: select timed out
13:34:36.837: v4l2-input: /dev/video0: failed to log status
13:34:37.004: v4l2-input: /dev/video0: select timed out
13:34:37.004: v4l2-input: /dev/video0: failed to log status
13:34:37.171: v4l2-input: /dev/video0: select timed out
13:34:37.171: v4l2-input: /dev/video0: failed to log status
13:34:37.337: v4l2-input: /dev/video0: select timed out
13:34:37.338: v4l2-input: /dev/video0: failed to log status
13:34:47.107: ext_screencopy_manager_v1 not available
13:34:47.113: User added source 'Game Capture' (vkcapture-source) to scene 'Streaming'
13:35:37.374: adding 106 milliseconds of audio buffering, total audio buffering is now 170 milliseconds (source: Mic/Aux)
13:35:37.374: 
13:35:39.679: adding 85 milliseconds of audio buffering, total audio buffering is now 256 milliseconds (source: Mic/Aux)
13:35:39.679: 

Game log: To long for github. Pastebin link below.

https://pastebin.com/mFmf3gep
zastrixarundell commented 3 months ago

It's an issue with Steam. Fixed in https://github.com/flathub/com.valvesoftware.Steam/pull/1281

zastrixarundell commented 3 months ago

Can be marked as closed.