nowrep / obs-vkcapture

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

Game Capture source doesn't work at all on AMD Vega 56 #68

Closed tyisafk closed 2 years ago

tyisafk commented 2 years ago

I assume all I have to do is run a Vulkan/GL game and load the source and it results in no detected windows for either OGL or Vulkan. Here's my OBS log. Log is from flatpak but native has the same issue.

OBS 27.2.4 (linux) log file uploaded at 2022-05-15, 06:21:25 PM

18:20:55.259: Platform: Wayland
18:20:55.271: CPU Name: AMD Ryzen 9 3900X 12-Core Processor
18:20:55.271: CPU Speed: 4000.000MHz
18:20:55.271: Physical Cores: 12, Logical Cores: 24
18:20:55.271: Physical Memory: 32066MB Total, 25631MB Free
18:20:55.271: Kernel Version: Linux 5.17.7-zen1-1-zen
18:20:55.271: Distribution: "KDE Flatpak runtime" "5.15-21.08"
18:20:55.271: Session Type: wayland
18:20:55.273: Qt Version: 5.15.3 (runtime), 5.15.3 (compiled)
18:20:55.273: Portable mode: false
18:20:55.303: OBS 27.2.4 (linux)
18:20:55.303: ---------------------------------
18:20:55.303: ---------------------------------
18:20:55.303: audio settings reset:
18:20:55.303:   samples per sec: 48000
18:20:55.303:   speakers:        2
18:20:55.306: ---------------------------------
18:20:55.306: Initializing OpenGL...
18:20:55.306: Using EGL/Wayland
18:20:55.344: Initialized EGL 1.5
18:20:55.359: Loading up OpenGL on adapter AMD Radeon RX Vega (VEGA10, DRM 3.44.0, 5.17.7-zen1-1-zen, LLVM 12.0.1)
18:20:55.359: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 21.3.8 (git-813ee839be), shading language 4.60
18:20:55.370: ---------------------------------
18:20:55.370: video settings reset:
18:20:55.370:   base resolution:   1920x1080
18:20:55.370:   output resolution: 1280x720
18:20:55.370:   downscale filter:  Bicubic
18:20:55.370:   fps:               30/1
18:20:55.370:   format:            NV12
18:20:55.370:   YUV mode:          709/Partial
18:20:55.370: NV12 texture support not available
18:20:55.372: Audio monitoring device:
18:20:55.372:   name: Default
18:20:55.372:   id: default
18:20:55.372: ---------------------------------
18:20:55.377: No AJA devices found, skipping loading AJA UI plugin
18:20:55.377: Failed to initialize module 'aja-output-ui.so'
18:20:55.380: No AJA devices found, skipping loading AJA plugin
18:20:55.380: Failed to initialize module 'aja.so'
18:20:55.381: Failed to load 'en-US' text for module: 'decklink-captions.so'
18:20:55.382: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
18:20:55.461: [pipewire] Available captures:
18:20:55.461: [pipewire]     - Desktop capture
18:20:55.461: [pipewire]     - Window capture
18:20:55.462: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
18:20:55.462: No blackmagic support
18:20:55.471: v4l2loopback not installed, virtual camera disabled
18:20:55.473: [obs-browser]: Version 2.17.13
18:20:55.473: [obs-browser]: CEF Version 95.0.0-MediaHandler.2463+g3b3ac84+chromium-95.0.4638.69
18:20:55.473: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
18:20:55.473: 
18:20:55.473: FFMPEG VAAPI supported
18:20:55.478: [linux-vkcapture] plugin loaded successfully (version 1.1.3)
18:20:55.478: ---------------------------------
18:20:55.478:   Loaded Modules:
18:20:55.478:     linux-vkcapture.so
18:20:55.478:     text-freetype2.so
18:20:55.478:     rtmp-services.so
18:20:55.478:     obs-x264.so
18:20:55.478:     obs-vst.so
18:20:55.478:     obs-transitions.so
18:20:55.478:     obs-outputs.so
18:20:55.478:     obs-libfdk.so
18:20:55.478:     obs-filters.so
18:20:55.478:     obs-ffmpeg.so
18:20:55.478:     obs-browser.so
18:20:55.478:     linux-v4l2.so
18:20:55.478:     linux-pulseaudio.so
18:20:55.478:     linux-jack.so
18:20:55.478:     linux-decklink.so
18:20:55.478:     linux-capture.so
18:20:55.478:     image-source.so
18:20:55.478:     frontend-tools.so
18:20:55.478:     decklink-ouput-ui.so
18:20:55.478:     decklink-captions.so
18:20:55.478: ---------------------------------
18:20:55.478: ==== Startup complete ===============================================
18:20:55.514: All scene data cleared
18:20:55.514: ------------------------------------------------
18:20:55.516: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.51) 15.0.0'
18:20:55.516: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
18:20:55.516: pulse-input: Started recording from 'alsa_output.pci-0000_0b_00.4.analog-stereo.monitor'
18:20:55.516: [Loaded global audio device]: 'Desktop Audio'
18:20:55.516: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.51) 15.0.0'
18:20:55.517: pulse-input: Audio format: s32le, 48000 Hz, 3 channels
18:20:55.517: pulse-input: Started recording from 'alsa_input.usb-PreSonus_Revelator_IO_24_AB7C21182489-00.analog-surround-21'
18:20:55.517: [Loaded global audio device]: 'Mic/Aux'
18:20:55.517: Switched to scene 'Scene'
18:20:55.517: ------------------------------------------------
18:20:55.517: Loaded scenes:
18:20:55.517: - scene 'Scene':
18:20:55.517: ------------------------------------------------
18:20:56.251: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop Audio)
18:20:56.251: 
18:20:56.293: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
18:20:56.293: 
18:21:12.618: zext_screencopy_manager_v1 not available
18:21:12.620: User added source 'Game Capture' (vkcapture-source) to scene 'Scene'
nowrep commented 2 years ago

You need to run the game with either obs-glcapture or obs-vkcapture, please read README.

Try to run obs-vkcapture vkcube and post the logs form both OBS and the game itself (vkcube).

tyisafk commented 2 years ago

Oh, I must have missed that! Doing that fixed it. Thank you!