You are not logged in.

#1 2023-06-18 01:55:40

MoonBurst
Member
Registered: 2023-06-17
Posts: 2

Obs and Wayland. Only streams black screens and mouse

Obs when trying to stream fails to show anything. I'm fairly sure it's an xdg-desktop-portal issue, that my compositor isn't actually reading the portal, but I'm in part guessing.

I've tried assorted QT_QPA_PLATFORMs, and found an assortment of "use xdg-desktop-portal$wlr/kde/gnome/etc", along with suggests to remove wireplumber or to replace it with other options. But to simply put it... I'm kind of lost here. Anyone who might be able to point me in the right direction would be a huge help!


OS: Arch Linux x86_64
Kernel: 6.3.8-arch1-1
WM: sway
Obs-Studio logs: https://pastebin.com/3PFXTCHW
WM environment vars

[Desktop Entry]
Name=Sway
Exec=env __GL_GSYNC_ALLOWED=0 __GL_VRR_ALLOWED=0 WLR_DRM_NO_ATOMIC=1 QT_AUTO_SCREEN_SCALE_FACTOR=1 QT_QPA_PLATFORM=wayland QT_WAYLAND_DISABLE_WINDOWDECORATION=1 GDK_BACKEND=wayland XDG_CURRENT_DESKTOP=sway GBM_BACKEND=nvidia-drm __GLX_VENDOR_LIBRARY_NAME=nvidia MOZ_ENABLE_WAYLAND=1 WLR_NO_HARDWARE_CURSORS=1  XWAYLAND_NO_GLAMOR=0 sway --unsupported-gpu

Related Sway start config

exec dbus-update-activation-environment DISPLAY I3SOCK SWAYSOCK WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway;
exec systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP && bus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway;
exec --no-startup-id dbus-update-activation-environment --all

Offline

#2 2023-06-22 15:11:15

ashixu
Member
Registered: 2023-06-22
Posts: 2

Re: Obs and Wayland. Only streams black screens and mouse

Have you solved this problem? I have the same problem with you, and i am in hyprland.




it‘s mine logs:
=======================
debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /usr/share/obs/obs-studio/themes/Yami.qss
info: Platform: Wayland
info: CPU Name: AMD Ryzen 7 6800H with Radeon Graphics
info: CPU Speed: 4530.810MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 14744MB Total, 13547MB Free
info: Kernel Version: Linux 6.3.9-arch1-1
info: Distribution: "Arch Linux" Unknown
info: Desktop Environment: Hyprland
info: Session Type: wayland
info: Qt Version: 6.5.1 (runtime), 6.5.1 (compiled)
info: Portable mode: false
info: OBS 29.1.1-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: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter AMD AMD Radeon Graphics (rembrandt, LLVM 15.0.7, DRM 3.52, 6.3.9-arch1-1)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 23.1.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   1920x1080
    output resolution: 1280x720
    downscale filter:  Bicubic
    fps:               30/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'
error: os_dlopen(/usr//lib/obs-plugins/frontend-tools.so->/usr//lib/obs-plugins/frontend-tools.so): libluajit-5.1.so.2: cannot open shared object file: No such file or directory

error: os_dlopen(/usr//lib/obs-plugins/frontend-tools.so->/usr//lib/obs-plugins/frontend-tools.so): libluajit-5.1.so.2: cannot open shared object file: No such file or directory

warning: Module '/usr//lib/obs-plugins/frontend-tools.so' not loaded
info: [pipewire] Available captures:
info: [pipewire]     - Desktop capture
warning: v4l2loopback not installed, virtual camera disabled
info: VAAPI: API version 1.18
info: FFmpeg VAAPI H264 encoding supported
info: FFmpeg VAAPI HEVC encoding supported
error: os_dlopen(/usr//lib/obs-plugins/obs-libfdk.so->/usr//lib/obs-plugins/obs-libfdk.so): libfdk-aac.so.2: cannot open shared object file: No such file or directory

error: os_dlopen(/usr//lib/obs-plugins/obs-libfdk.so->/usr//lib/obs-plugins/obs-libfdk.so): libfdk-aac.so.2: cannot open shared object file: No such file or directory

warning: Module '/usr//lib/obs-plugins/obs-libfdk.so' not loaded
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-filters.so
info:     obs-ffmpeg.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:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
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_33_00.6.analog-stereo.monitor' (default)
info: [Loaded global audio device]: 'Desktop Audio'
[swscaler @ 0x55a80d080980] deprecated pixel format used, make sure you did set range correctly
info: PipeWire initialized
info: Switched to scene 'Scene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Scene':
info:     - source: 'Image' (image_source)
info:     - source: 'Screen Capture (PipeWire)' (pipewire-desktop-capture-source)
info: ------------------------------------------------
info: [pipewire] Screencast session created
info: [pipewire] Asking for desktop
info: [pipewire] desktop selected, setting up screencast
info: [pipewire] Server version: 0.3.71
info: [pipewire] Library version: 0.3.71
info: [pipewire] Header version: 0.3.71
info: [pipewire] Created stream 0x55a80d623390
info: [pipewire] Stream 0x55a80d623390 state: "connecting" (error: none)
info: [pipewire] Playing stream 0x55a80d623390
info: [pipewire] Stream 0x55a80d623390 state: "paused" (error: none)
info: ==== Shutting down ==================================================
info: pulse-input: Stopped recording from 'alsa_output.pci-0000_33_00.6.analog-stereo.monitor'
info: pulse-input: Got 1528 packets with 372592 frames
'loop->recurse > 0' failed at ../pipewire/src/pipewire/thread-loop.c:417 pw_thread_loop_wait()
info: [pipewire] Stream 0x55a80d623390 state: "unconnected" (error: none)
info: All scene data cleared
info: ------------------------------------------------
info: Freeing OBS context data
info: == Profiler Results =============================
info: run_program_init: 326.065 ms
info:  ┣OBSApp::AppInit: 2.751 ms
info:  ┃ ┗OBSApp::InitLocale: 0.478 ms
info:  ┗OBSApp::OBSInit: 303.006 ms
info:    ┣obs_startup: 1.796 ms
info:    ┗OBSBasic::OBSInit: 278.313 ms
info:      ┣OBSBasic::InitBasicConfig: 0.086 ms
info:      ┣OBSBasic::ResetAudio: 0.142 ms
info:      ┣OBSBasic::ResetVideo: 61.944 ms
info:      ┣OBSBasic::InitOBSCallbacks: 0.003 ms
info:      ┣OBSBasic::InitHotkeys: 0.021 ms
info:      ┣obs_load_all_modules2: 117.25 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.099 ms
info:      ┃ ┣obs_init_module(image-source.so): 0.007 ms
info:      ┃ ┣obs_init_module(linux-alsa.so): 0.002 ms
info:      ┃ ┣obs_init_module(linux-capture.so): 0 ms
info:      ┃ ┣obs_init_module(linux-jack.so): 0.001 ms
info:      ┃ ┣obs_init_module(linux-pipewire.so): 1.652 ms
info:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.003 ms
info:      ┃ ┣obs_init_module(linux-v4l2.so): 3.68 ms
info:      ┃ ┣obs_init_module(obs-ffmpeg.so): 14.271 ms
info:      ┃ ┃ ┗nvenc_check: 0.467 ms
info:      ┃ ┣obs_init_module(obs-filters.so): 0.041 ms
info:      ┃ ┣obs_init_module(obs-outputs.so): 0.002 ms
info:      ┃ ┣obs_init_module(obs-transitions.so): 0.01 ms
info:      ┃ ┣obs_init_module(obs-vst.so): 0.004 ms
info:      ┃ ┣obs_init_module(obs-x264.so): 0.002 ms
info:      ┃ ┣obs_init_module(rtmp-services.so): 0.428 ms
info:      ┃ ┗obs_init_module(text-freetype2.so): 0.006 ms
info:      ┣OBSBasic::InitService: 0.792 ms
info:      ┣OBSBasic::ResetOutputs: 0.117 ms
info:      ┣OBSBasic::CreateHotkeys: 0.027 ms
info:      ┣OBSBasic::InitPrimitives: 0.078 ms
info:      ┗OBSBasic::Load: 78.495 ms
info: obs_hotkey_thread(25 ms): min=0 ms, median=0.001 ms, max=0.008 ms, 99th percentile=0.003 ms, 100% below 25 ms
info: audio_thread(Audio): min=0.01 ms, median=0.053 ms, max=0.167 ms, 99th percentile=0.123 ms
info: obs_graphics_thread(33.3333 ms): min=0.201 ms, median=0.916 ms, max=28.557 ms, 99th percentile=2.214 ms, 100% below 33.333 ms
info:  ┣tick_sources: min=0 ms, median=0.013 ms, max=28.315 ms, 99th percentile=0.029 ms
info:  ┣output_frame: min=0.173 ms, median=0.401 ms, max=2.173 ms, 99th percentile=1.078 ms
info:  ┃ ┗gs_context(video->graphics): min=0.172 ms, median=0.399 ms, max=2.166 ms, 99th percentile=1.077 ms
info:  ┃   ┣render_video: min=0.016 ms, median=0.061 ms, max=0.149 ms, 99th percentile=0.121 ms
info:  ┃   ┃ ┗render_main_texture: min=0.014 ms, median=0.053 ms, max=0.14 ms, 99th percentile=0.105 ms
info:  ┃   ┗gs_flush: min=0.002 ms, median=0.008 ms, max=0.027 ms, 99th percentile=0.017 ms
info:  ┗render_displays: min=0.003 ms, median=0.45 ms, max=7.629 ms, 99th percentile=0.728 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25.064 ms, median=25.121 ms, max=26.246 ms, 96.5087% within ±2% of 25 ms (0% lower, 3.49127% higher)
info: obs_graphics_thread(33.3333 ms): min=32.685 ms, median=33.332 ms, max=33.988 ms, 100% within ±2% of 33.333 ms (0% lower, 0% higher)
info: =================================================
info: Number of memory leaks: 0

Last edited by ashixu (2023-06-23 00:56:03)

Offline

#3 2023-06-23 18:35:05

MoonBurst
Member
Registered: 2023-06-17
Posts: 2

Re: Obs and Wayland. Only streams black screens and mouse

ashixu wrote:

Have you solved this problem? I have the same problem with you, and i am in hyprland.

Not exactly, I myself switched from sway to hyprland-nvidia from the AUR and it seemed to fix. But as far as sway goes? I have no idea why it was happening.

Offline

#4 2023-06-24 01:04:50

Skidout
Member
Registered: 2023-05-26
Posts: 37

Re: Obs and Wayland. Only streams black screens and mouse

A few months ago a had to use Sway because my new 7900 XTX was too new for everything else. The way I found to use OBS to capture the screen was to install the AUR package "wlrobs" which provided some additional options that worked. Also, I'm noticing a few mentions of Xcomposite in the first logs, which would be for Xorg obviously.

Offline

Board footer

Powered by FluxBB