nowrep / obs-vkcapture

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

unable to get vkcapture to capture vseeface for transparency manjaro(arch). #126

Closed KaziiTheAvali closed 1 year ago

KaziiTheAvali commented 1 year ago

so im trying to get obs to see vseeface using this due to the fact that this allows for transparency. since vseeface is a virtual webcam im really wanting that transparency for streaming but i can not for the life of me get it to capture

the code i use to start up vseeface is obs-gamecapture lutris rungame/vseeface

log

Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /usr/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/themes/Yami.qss
Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Using EGL/X11
info: CPU Name: AMD Ryzen 7 2700X Eight-Core Processor
info: CPU Speed: 4016.992MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 32020MB Total, 11438MB Free
info: Kernel Version: Linux 6.1.1-1-MANJARO
info: Distribution: "Manjaro Linux" Unknown
info: Session Type: x11
info: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.21.1
info: Qt Version: 6.4.1 (runtime), 6.4.1 (compiled)
info: Portable mode: false
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /usr/share/obs/obs-studio/themes/Dark/no_sources.svg
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_tbar_position_valueChanged(int)
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionShowTransitionProperties_triggered()
qt.core.qmetaobject.connectslotsbyname: QMetaObject::connectSlotsByName: No matching signal for on_actionHideTransitionProperties_triggered()
info: OBS 28.1.2-2 (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: Loading up OpenGL on adapter AMD AMD Radeon RX 5700 (navi10, LLVM 14.0.6, DRM 3.49, 6.1.1-1-MANJARO)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 22.3.1, shading language 4.60
info: ---------------------------------
info: video settings reset:
        base resolution:   1920x1080
        output resolution: 1920x1080
        downscale filter:  Bicubic
        fps:               60/1
        format:            NV12
        YUV mode:          Rec. 709/Partial
info: NV12 texture support not available
info: P010 texture support not available
info: Audio monitoring device:
        name: Default
        id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] Available captures:
info: [pipewire]     - Desktop capture
info: [pipewire]     - Window capture
info: [linux-vkcapture] plugin loaded successfully (version 1.2.2)
info: [Move Transition] loaded version 2.8.0
info: FFMPEG VAAPI supported
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-x264.so
info:     obs-vst.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     move-transition.so
info:     linux-vkcapture.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-pipewire.so
info:     linux-jack.so
info:     linux-capture.so
info:     linux-alsa.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
QLayout: Attempting to add QLayout "" to OBSBasic "OBSBasic", which already has a layout
QWidget::setTabOrder: 'first' and 'second' must be in the same window
info: ==== Startup complete ===============================================
info: Switched to Preview/Program mode
info: ------------------------------------------------
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 16.1'
info: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_0c_00.3.analog-stereo.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
info: pulse-input: Server name: 'pulseaudio 16.1'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_0c_00.3.analog-stereo' (default)
info: [Loaded global audio device]: 'Mic/Aux'
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Image' (image_source)
info:     - source: 'Game Capture' (vkcapture-source)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /usr/share/obs/obs-studio/images/overflow.png
info: ==== Shutting down ==================================================
info: pulse-input: Stopped recording from 'alsa_output.pci-0000_0c_00.3.analog-stereo.monitor'
info: pulse-input: Got 208494 packets with 10530137 frames
info: pulse-input: Stopped recording from 'alsa_input.pci-0000_0c_00.3.analog-stereo'
info: pulse-input: Got 17331 packets with 9674060 frames
info: [linux-vkcapture] destroy
info: All scene data cleared
info: ------------------------------------------------
info: [linux-vkcapture] plugin unloaded
info: [Scripting] Total detached callbacks: 0
info: Freeing OBS context data
warning: 1 views remain at shutdown
info: == Profiler Results =============================
info: run_program_init: 644.96 ms
info:  ┣OBSApp::AppInit: 5.811 ms
info:  ┃ ┗OBSApp::InitLocale: 1.212 ms
info:  ┗OBSApp::OBSInit: 600.669 ms
info:    ┣obs_startup: 1.225 ms
info:    ┗OBSBasic::OBSInit: 552.563 ms
info:      ┣OBSBasic::InitBasicConfig: 0.069 ms
info:      ┣OBSBasic::ResetAudio: 0.151 ms
info:      ┣OBSBasic::ResetVideo: 113.557 ms
info:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
info:      ┣OBSBasic::InitHotkeys: 0.05 ms
info:      ┣obs_load_all_modules2: 308.689 ms
info:      ┃ ┣obs_init_module(decklink-captions.so): 0 ms
info:      ┃ ┣obs_init_module(decklink-output-ui.so): 0 ms
info:      ┃ ┣obs_init_module(decklink.so): 0.145 ms
info:      ┃ ┣obs_init_module(frontend-tools.so): 77.489 ms
info:      ┃ ┣obs_init_module(image-source.so): 0.01 ms
info:      ┃ ┣obs_init_module(linux-alsa.so): 0.002 ms
info:      ┃ ┣obs_init_module(linux-capture.so): 0.38 ms
info:      ┃ ┣obs_init_module(linux-jack.so): 0.003 ms
info:      ┃ ┣obs_init_module(linux-pipewire.so): 1.341 ms
info:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.005 ms
info:      ┃ ┣obs_init_module(linux-v4l2.so): 5.257 ms
info:      ┃ ┣obs_init_module(linux-vkcapture.so): 0.117 ms
info:      ┃ ┣obs_init_module(move-transition.so): 0.06 ms
info:      ┃ ┣obs_init_module(obs-ffmpeg.so): 1.329 ms
info:      ┃ ┃ ┗nvenc_check: 1.196 ms
info:      ┃ ┣obs_init_module(obs-filters.so): 0.039 ms
info:      ┃ ┣obs_init_module(obs-libfdk.so): 0.002 ms
info:      ┃ ┣obs_init_module(obs-outputs.so): 0.004 ms
info:      ┃ ┣obs_init_module(obs-transitions.so): 0.01 ms
info:      ┃ ┣obs_init_module(obs-vst.so): 0.006 ms
info:      ┃ ┣obs_init_module(obs-x264.so): 0.002 ms
info:      ┃ ┣obs_init_module(rtmp-services.so): 1.023 ms
info:      ┃ ┗obs_init_module(text-freetype2.so): 0.014 ms
info:      ┣OBSBasic::ResetOutputs: 0.114 ms
info:      ┣OBSBasic::CreateHotkeys: 0.039 ms
info:      ┣OBSBasic::InitService: 1.328 ms
info:      ┣OBSBasic::InitPrimitives: 0.139 ms
info:      ┗OBSBasic::Load: 33.54 ms
info: obs_hotkey_thread(25 ms): min=0.047 ms, median=0.064 ms, max=96.418 ms, 99th percentile=0.964 ms, 99.7354% below 25 ms
info: audio_thread(Audio): min=0.009 ms, median=0.041 ms, max=0.423 ms, 99th percentile=0.071 ms
info: obs_graphics_thread(16.6667 ms): min=0.073 ms, median=0.542 ms, max=110.003 ms, 99th percentile=1.187 ms, 99.7871% below 16.667 ms
info:  ┣tick_sources: min=0 ms, median=0.009 ms, max=0.128 ms, 99th percentile=0.014 ms
info:  ┣output_frame: min=0.041 ms, median=0.093 ms, max=3.679 ms, 99th percentile=0.168 ms
info:  ┃ ┗gs_context(video->graphics): min=0.041 ms, median=0.093 ms, max=3.673 ms, 99th percentile=0.167 ms
info:  ┃   ┣render_video: min=0.007 ms, median=0.023 ms, max=0.222 ms, 99th percentile=0.041 ms
info:  ┃   ┃ ┗render_main_texture: min=0.005 ms, median=0.02 ms, max=0.188 ms, 99th percentile=0.035 ms
info:  ┃   ┗gs_flush: min=0.001 ms, median=0.002 ms, max=0.106 ms, 99th percentile=0.007 ms
info:  ┗render_displays: min=0.002 ms, median=0.419 ms, max=109.85 ms, 99th percentile=0.943 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.064 ms, median=25.125 ms, max=121.481 ms, 98.7343% within ±2% of 25 ms (0% lower, 1.26568% higher)
info: obs_graphics_thread(16.6667 ms): min=4.164 ms, median=16.667 ms, max=110.008 ms, 99.4982% within ±2% of 16.667 ms (0.250912% lower, 0.250912% higher)
info: =================================================
info: Number of memory leaks: 0
nowrep commented 1 year ago

Please post logs from the application itself. Is it using OpenGL or Vulkan?

KaziiTheAvali commented 1 year ago

i am unshure nor can i even replicate it. maby it was cause i havent ran obs befor opening up the application for the first time on that boot

nowrep commented 1 year ago

You don't need to start OBS before starting the application to capture. But since it is working now, I'm closing the issue.