nowrep / obs-vkcapture

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

[flatpak] obs-gamecapture: command not found #220

Closed LunasShade closed 1 month ago

LunasShade commented 1 month ago

Describe the bug Me again ^^, the plugin is now active in obs, but the games don't start with obs-gamecapture %command%

Other informations I have also given all three network access

Screenshots or video

https://github.com/user-attachments/assets/6fe1ec03-1139-481a-85f3-d7cdd0048c06

System (please complete the following information):

OBS log:

debug: Found portal inhibitor
debug: Attempted path: /app/bin/../share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /app/bin/../share/obs/obs-studio/themes
debug: Attempted path: /app/bin/../share/obs/obs-studio/themes/
info: Platform: Wayland
info: CPU Name: 13th Gen Intel(R) Core(TM) i9-13900KS
info: CPU Speed: 5600.000MHz
info: Physical Cores: 24, Logical Cores: 32
info: Physical Memory: 128517MB Total, 107446MB Free
info: Kernel Version: Linux 6.10.0-1-cachyos-eevdf
info: Flatpak Branch: stable
info: Flatpak Arch: x86_64
info: Flatpak Runtime: runtime/org.kde.Platform/x86_64/6.6
info: App Extensions:
info:  - com.obsproject.Studio.Plugin.Gstreamer
info:  - com.obsproject.Studio.Plugin.MoveTransition
info:  - com.obsproject.Studio.Plugin.OBSVkCapture
info:  - com.obsproject.Studio.Plugin.TransitionTable
info:  - com.obsproject.Studio.Locale
info: Runtime Extensions:
info:  - org.freedesktop.Platform.GL.default
info:  - org.freedesktop.Platform.GL.nvidia-550-100
info:  - org.freedesktop.Platform.openh264
info:  - org.freedesktop.Platform.VulkanLayer.OBSVkCapture
info:  - org.gtk.Gtk3theme.Catppuccin-Mocha
info:  - org.kde.PlatformTheme.QGnomePlatform
info:  - org.kde.WaylandDecoration.QAdwaitaDecorations
info:  - org.kde.Platform.Locale
info:  - org.freedesktop.Platform.GL.default
info: Flatpak Framework Version: 1.15.8
info: Desktop Environment: GNOME (GNOME)
info: Session Type: wayland
info: Qt Version: 6.6.3 (runtime), 6.6.3 (compiled)
info: Portable mode: false
info: OBS 30.2.0 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 48000
    speakers:        2
    max buffering:   960 milliseconds
    buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter NVIDIA Corporation NVIDIA GeForce RTX 4090/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 550.100, shading language 3.30 NVIDIA via Cg compiler
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1920x1080
    downscale filter:  Lanczos
    fps:               60/1
    format:            NV12
    YUV mode:          Rec. 709/Partial
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
    name: Standard
    id: default
info: ---------------------------------
warning: No AJA devices found, skipping loading AJA UI plugin
warning: Failed to initialize module 'aja-output-ui.so'
warning: No AJA devices found, skipping loading AJA plugin
warning: Failed to initialize module 'aja.so'
info: [pipewire] Available capture sources:
info: [pipewire]     - Monitor source
info: [pipewire]     - Window source
info: [obs-browser]: Version 2.23.5
info: [obs-browser]: CEF Version 103.0.5060.134 (runtime), 103.0.0-5060-shared-textures.2594+g17f8588+chromium-103.0.5060.134 (compiled)
info: NVENC supported
error: VAAPI: Failed to initialize display in vaapi_device_h264_supported
info: FFmpeg VAAPI H264 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_av1_supported
info: FFmpeg VAAPI AV1 encoding not supported
error: VAAPI: Failed to initialize display in vaapi_device_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.5.1 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.6.3 | Qt version (run-time): 6.6.3
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 103002
info: [obs-websocket] [obs_module_load] Module loaded.
info: [linux-vkcapture] plugin loaded successfully (version 1.5.1)
error: os_dlopen(/app/plugins/lib/obs-plugins/move-transition.so->/app/plugins/lib/obs-plugins/move-transition.so): libobs-frontend-api.so.0: cannot open shared object file: No such file or directory

error: os_dlopen(/app/plugins/lib/obs-plugins/move-transition.so->/app/plugins/lib/obs-plugins/move-transition.so): libobs-frontend-api.so.0: cannot open shared object file: No such file or directory

warning: Module '/app/plugins/lib/obs-plugins/move-transition.so' not loaded
info: [obs-gstreamer] build: 7dd3e69, gst-runtime: 1.22.12
error: os_dlopen(/app/plugins/lib/obs-plugins/transition-table.so->/app/plugins/lib/obs-plugins/transition-table.so): libobs-frontend-api.so.0: cannot open shared object file: No such file or directory

error: os_dlopen(/app/plugins/lib/obs-plugins/transition-table.so->/app/plugins/lib/obs-plugins/transition-table.so): libobs-frontend-api.so.0: cannot open shared object file: No such file or directory

warning: Module '/app/plugins/lib/obs-plugins/transition-table.so' not loaded
info: ---------------------------------
info:   Loaded Modules:
info:     linux-pipewire-audio.so
info:     obs-gstreamer.so
info:     linux-vkcapture.so
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-websocket.so
info:     obs-webrtc.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-qsv11.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     obs-browser.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     image-source.so
info:     frontend-tools.so
info: ---------------------------------
info: ---------------------------------
info: Available Encoders:
info:   Video Encoders:
info:   - ffmpeg_svt_av1 (SVT-AV1)
info:   - ffmpeg_aom_av1 (AOM AV1)
info:   - jim_nvenc (NVIDIA NVENC H.264)
info:   - jim_hevc_nvenc (NVIDIA NVENC HEVC)
info:   - jim_av1_nvenc (NVIDIA NVENC AV1)
info:   - obs_x264 (x264)
info:   - gstreamer-encoder-h264 (GStreamer Encoder H.264)
info:   - gstreamer-encoder-h265 (GStreamer Encoder H.265)
info:   Audio Encoders:
info:   - ffmpeg_aac (FFmpeg AAC)
info:   - ffmpeg_opus (FFmpeg Opus)
info:   - ffmpeg_pcm_s16le (FFmpeg PCM (16-bit))
info:   - ffmpeg_pcm_s24le (FFmpeg PCM (24-bit))
info:   - ffmpeg_pcm_f32le (FFmpeg PCM (32-bit float))
info:   - ffmpeg_alac (FFmpeg ALAC (24-bit))
info:   - ffmpeg_flac (FFmpeg FLAC (16-bit))
info:   - libfdk_aac (libfdk AAC)
info: ==== Startup complete ===============================================

Game log:

/bin/sh: line 1: obs-gamecapture: command not found
pid 23203 != 23202, skipping destruction (fork without exec?)
nowrep commented 1 month ago

You'll have to also build it natively (can only build capture tools with plugin disabled) if you don't have Steam flatpak, it's in README.

LunasShade commented 1 month ago

I have the normal steam from pacman. And building doesn't work:

~/Downloads/obs-vkcapture-1.5.1 via △ v3.30.0 
❯ mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
  make && make install
-- The C compiler identification is GNU 14.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Vulkan: /lib/libvulkan.so (found version "1.3.285") found components: glslc glslangValidator
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.1")
-- Checking for module 'egl'
--   Found egl, version 1.5
-- Checking for module 'x11'
--   Found x11, version 1.8.9
-- Checking for module 'xcb'
--   Found xcb, version 1.17.0
-- Checking for module 'xcb-xfixes'
--   Found xcb-xfixes, version 1.17.0
-- Checking for module 'wayland-client'
--   Found wayland-client, version 1.23.0
-- Checking for module 'libobs'
--   Package 'libobs', required by 'virtual:world', not found
CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:645 (message):
  The following required packages were not found:

   - libobs

Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPkgConfig.cmake:873 (_pkg_check_modules_internal)
  CMakeLists.txt:61 (pkg_check_modules)

-- Configuring incomplete, errors occurred!
make: *** No targets specified and no makefile found.  Stop.
nowrep commented 1 month ago

You need to have OBS installed to build it.

LunasShade commented 1 month ago

thanks, everything works now