OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
Kerplunk1992
Posts: 2
Joined: Wed Nov 15, 2023 2:18 am

OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#1 Post by Kerplunk1992 »

Hello,

I'm using the Flatpak version of OBS 30.0.0 in my MX Linux KDE Wayland session and I am not able to choose a screen with the screen capture (PipeWire) source. This is what it looks like:
obs_problem.jpg
(language is set to german, but I think the problem is still understandable)

Also, when I start obs through the terminal, I get this:

Code: Select all

debug: Found portal inhibitor
debug: Attempted path: share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /app/share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: share/obs/obs-studio/locale.ini
debug: Attempted path: /app/share/obs/obs-studio/locale.ini
debug: Attempted path: share/obs/obs-studio/locale/de-DE.ini
debug: Attempted path: /app/share/obs/obs-studio/locale/de-DE.ini
info: Using preferred locale 'de-DE'
debug: Attempted path: share/obs/obs-studio/themes/Yami.qss
debug: Attempted path: /app/share/obs/obs-studio/themes/Yami.qss
info: Platform: Wayland
info: CPU Name: AMD Ryzen 5 5600 6-Core Processor
info: CPU Speed: 3540.735MHz
info: Physical Cores: 6, Logical Cores: 12
info: Physical Memory: 32010MB Total, 24621MB Free
info: Kernel Version: Linux 6.5.0-1mx-ahs-amd64
info: Flatpak Branch: stable
info: Flatpak Arch: x86_64
info: Flatpak Runtime: runtime/org.kde.Platform/x86_64/6.5
info: App Extensions:
info:  - com.obsproject.Studio.Locale
info: Runtime Extensions:
info:  - org.freedesktop.Platform.GL.default
info:  - org.freedesktop.Platform.GL.nvidia-525-125-06
info:  - org.freedesktop.Platform.openh264
info:  - org.gtk.Gtk3theme.Breeze
info:  - org.kde.Platform.Locale
info:  - org.freedesktop.Platform.GL.default
info: Flatpak Framework Version: 1.14.4
info: Desktop Environment: KDE (KDE)
info: Session Type: wayland
info: Qt Version: 6.5.3 (runtime), 6.5.3 (compiled)
info: Portable mode: false
info: OBS 30.0.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 GTX 1060 6GB/PCIe/SSE2
info: OpenGL loaded successfully, version 3.3.0 NVIDIA 525.125.06, shading language 3.30 NVIDIA via Cg compiler
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: 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'
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: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden
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
warning: v4l2loopback not installed, virtual camera disabled
info: [obs-browser]: Version 2.22.1
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_hevc_supported
info: FFmpeg VAAPI HEVC encoding not supported
info: [obs-websocket] [obs_module_load] you can haz websockets (Version: 5.3.3 | RPC Version: 1)
info: [obs-websocket] [obs_module_load] Qt version (compile-time): 6.5.3 | Qt version (run-time): 6.5.3
info: [obs-websocket] [obs_module_load] Linked ASIO Version: 102800
info: [obs-websocket] [obs_module_load] Module loaded.
info: ---------------------------------
info:   Loaded Modules:
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:     decklink-output-ui.so
info:     decklink-captions.so
info: ---------------------------------
info: ==== Startup complete ===============================================
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.65) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_06_00.4.analog-stereo.monitor' (default)
info: [Loaded global audio device]: 'Desktop-Audio'
info: pulse-input: Server name: 'PulseAudio (on PipeWire 0.3.65) 15.0.0'
info: pulse-input: Audio format: s32le, 48000 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor' (default)
info: [Loaded global audio device]: 'Mikrofon-/AUX-Audio'
info: PipeWire initialized
info: Switched to scene 'Szene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Szene':
info:     - source: 'Bildschirmaufnahme (PipeWire)' (pipewire-desktop-capture-source)
info: ------------------------------------------------
info: [pipewire] Screencast session created
info: [pipewire] Asking for desktop
warning: [pipewire] Failed to start screencast, denied or cancelled by user
info: adding 21 milliseconds of audio buffering, total audio buffering is now 21 milliseconds (source: Desktop-Audio)

info: adding 21 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mikrofon-/AUX-Audio)
The warning at the end seems to be important.

I already installed xdg-desktop-portal-kde additionally to even be able to choose the PipeWire screen capture as source.

Has someone an idea, how to fix this? I'd be really thankful.

Here are my specs:

Code: Select all

System:
  Kernel: 6.5.0-1mx-ahs-amd64 [6.5.3-1~mx23ahs] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.5.0-1mx-ahs-amd64 root=UUID=<filter> ro quiet splash
    resume=UUID=<filter> resume_offset=20774912
  Desktop: KDE Plasma v: 5.27.5 wm: kwin_wayland vt: 8 dm: SDDM Distro: MX-23.1_KDE_x64 Libretto
    October 15 2023 base: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: Gigabyte product: B550M DS3H v: -CF serial: <superuser required>
  Mobo: Gigabyte model: B550M DS3H v: x.x serial: <superuser required> UEFI: American Megatrends
    LLC. v: FDb date: 08/10/2023
CPU:
  Info: model: AMD Ryzen 5 5600 bits: 64 type: MT MCP arch: Zen 3+ gen: 4 level: v3 note: check
    built: 2022 process: TSMC n6 (7nm) family: 0x19 (25) model-id: 0x21 (33) stepping: 2
    microcode: 0xA20120A
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache: L1: 384 KiB
    desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 2298 high: 2743 min/max: 2200/4467 boost: enabled scaling:
    driver: acpi-cpufreq governor: ondemand cores: 1: 2200 2: 2200 3: 2200 4: 2504 5: 2538 6: 2200
    7: 2196 8: 2200 9: 2200 10: 2200 11: 2743 12: 2200 bogomips: 83835
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow mitigation: safe RET, no microcode
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW, STIBP: always-on, RSB
    filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: ZOTAC driver: nvidia v: 525.125.06
    non-free: 530.xx+ status: current (as of 2023-03) arch: Pascal code: GP10x process: TSMC 16nm
    built: 2016-21 pcie: gen: 3 speed: 8 GT/s lanes: 16 ports: active: none off: DP-3,HDMI-A-1
    empty: DP-1,DP-2,DVI-D-1 bus-ID: 04:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_wayland
    driver: X: loaded: nvidia gpu: nvidia d-rect: 3280x1080 display-ID: 0
  Monitor-1: DP-3 pos: primary,left res: 1920x1080 size: N/A modes: N/A
  Monitor-2: HDMI-A-1 pos: right res: 1360x768 size: N/A modes: N/A
  API: OpenGL v: 4.6.0 NVIDIA 525.125.06 renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
    direct-render: Yes
Audio:
  Device-1: NVIDIA GP106 High Definition Audio vendor: ZOTAC driver: snd_hda_intel v: kernel pcie:
    gen: 3 speed: 8 GT/s lanes: 16 bus-ID: 04:00.1 chip-ID: 10de:10f1 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel pcie:
    gen: 4 speed: 16 GT/s lanes: 16 bus-ID: 06:00.4 chip-ID: 1022:1487 class-ID: 0403
  API: ALSA v: k6.5.0-1mx-ahs-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
    v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 03:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 2.27 TiB used: 100.48 GiB (4.3%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Crucial model: CT500MX500SSD1 size: 465.76 GiB block-size:
    physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 023 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Samsung model: SSD 870 QVO 1TB size: 931.51 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 2B6Q
    scheme: GPT
  ID-3: /dev/sdc maj-min: 8:32 vendor: Samsung model: HD103SJ size: 931.51 GiB block-size:
    physical: 512 B logical: 512 B speed: 3.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: 00E5
    scheme: MBR
Partition:
  ID-1: / raw-size: 215.76 GiB size: 211.32 GiB (97.94%) used: 100.45 GiB (47.5%) fs: ext4
    dev: /dev/sda5 maj-min: 8:5
  ID-2: /boot/efi raw-size: 100 MiB size: 96 MiB (96.00%) used: 29.3 MiB (30.5%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 37.26 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 44.1 C mobo: 31.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: 2593 pm: dpkg pkgs: 2574 libs: 1432 tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0
    pm: flatpak pkgs: 19
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm main non-free
    2: deb http://ftp.halifax.rwth-aachen.de/mxlinux/packages/mx/repo/ bookworm ahs
Info:
  Processes: 297 Uptime: 21m wakeups: 1 Memory: 31.26 GiB used: 3.07 GiB (9.8%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
You do not have the required permissions to view the files attached to this post.

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#2 Post by l0dr3 »

Hallo @Kerplunk1992

as always if theres a problem with 'flatpak' and/or 'appimage' : TRY a SystemD boot, to check wheter the problem persists ...

greetz l0dr3

User avatar
Kerplunk1992
Posts: 2
Joined: Wed Nov 15, 2023 2:18 am

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#3 Post by Kerplunk1992 »

I tried it with SystemD. Unfortunately, the problem is still the same.

User avatar
Lerothas
Posts: 2
Joined: Sat Dec 02, 2023 5:45 am

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#4 Post by Lerothas »

I have the same Problem with systemd and Wayland. Unfortunately I think the problem comes down to

Code: Select all

[pipewire] Failed to start screencast, denied or cancelled by user
This problem exists not only in OBS-Studio but with other screen capture applications as well.
So I think there is a privilege probelm with pipewire?
Very annoying!

(In X11 the screen capture works, but the graphic tablet settings are not appearing in the settings, so no option for me...)

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#5 Post by l0dr3 »

Lerothas wrote: Sat Dec 02, 2023 6:08 am I have the same Problem with systemd and Wayland. Unfortunately I think the problem comes down to

Code: Select all

[pipewire] Failed to start screencast, denied or cancelled by user
This problem exists not only in OBS-Studio but with other screen capture applications as well.
So I think there is a privilege probelm with pipewire?
Very annoying!

(In X11 the screen capture works, but the graphic tablet settings are not appearing in the settings, so no option for me...)
There are several bug reports for (but not only) nVidia cards and ScreenShare/Recording in KDE due to wayland :rolleyes:

see e.g.: https://forums.developer.nvidia.com/t/b ... a-6/273368

User avatar
Stevo
Developer
Posts: 14886
Joined: Fri Dec 15, 2006 7:07 pm

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#6 Post by Stevo »

It is possible to start KDE with an x11 session from the login screen menu, if I'm not mistaken, so that's worth an experiment.

We have 29.1.3 in the MX 23 test repo, backported from that same version in Debian Sid at present.

Though deb-multimedia has 30.0.0 packages, I've had bad experiences with porting obs-studio from there in the past, in that it was successful, but when Debian finally would package the same version, packages and files would end up in conflicts between the two versions.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
Lerothas
Posts: 2
Joined: Sat Dec 02, 2023 5:45 am

Re: OBS 30.0.0 Flatpak: no screen in screen capture (PipeWire) through Wayland

#7 Post by Lerothas »

It is possible to start KDE with an x11 session from the login screen menu, if I'm not mistaken, so that's worth an experiment.
I tested that and it works. But several things under X11 doesn't work with KDE e.g. accessing the Wacom tablet settings.
(I don't want to talk about security flaws of X11 and flatpaks working better with Wayland imho.)

Using Plasma 5.27 on other distros with Wayland or under GNOME Wayland screen recording works just fine. So I guess it's a problem with pipewire (or not using pipewire by default?).

Post Reply

Return to “MX KDE Official Release”