flathub / com.obsproject.Studio

This repository is no longer used to build OBS. Issues should be reported at https://github.com/obsproject/obs-studio
https://github.com/obsproject/obs-studio
29 stars 19 forks source link

Weird behavior Gnome Screencast #74

Closed modzilla99 closed 2 years ago

modzilla99 commented 4 years ago

Hey,

when using PipeWire on Fedora 32 on an RX5700 the screencast is completely scattered. Any idea why this is? Bildschirmfoto von 2020-07-28 12-34-40

Log:

Failed to create wl_display (No such file or directory)
qt.qpa.plugin: Could not load the Qt platform plugin "wayland" in "" even though it was found.
Gtk-Message: 12:36:42.324: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:36:42.324: Failed to load module "pk-gtk-module"
Gtk-Message: 12:36:42.324: Failed to load module "canberra-gtk-module"
Gtk-Message: 12:36:42.324: Failed to load module "pk-gtk-module"
Qt: Session management error: None of the authentication protocols specified are supported
Attempted path: share/obs/obs-studio/locale/en-US.ini
Attempted path: /app/share/obs/obs-studio/locale/en-US.ini
Attempted path: share/obs/obs-studio/locale.ini
Attempted path: /app/share/obs/obs-studio/locale.ini
Attempted path: share/obs/obs-studio/locale/de-DE.ini
Attempted path: /app/share/obs/obs-studio/locale/de-DE.ini
info: Using preferred locale 'de-DE'
Attempted path: share/obs/obs-studio/themes/Dark.qss
Attempted path: /app/share/obs/obs-studio/themes/Dark.qss
info: CPU Name: AMD Ryzen 7 2700X Eight-Core Processor
info: CPU Speed: 4153.388MHz
info: Physical Cores: 8, Logical Cores: 16
info: Physical Memory: 16015MB Total, 8043MB Free
info: Kernel Version: Linux 5.7.8-200.fc32.x86_64
info: Distribution: "KDE Flatpak runtime" "5.14"
info: Window System: X11.0 - vendor string: Fedora Project - vendor release: 12008000
info: Portable mode: false
qt.svg: Cannot open file '/app/share/obs/obs-studio/themes/Dark/Close.svg', because: No such file or directory
qt.svg: Cannot open file '/app/share/obs/obs-studio/themes/Dark/Close.svg', because: No such file or directory
qt.svg: Cannot open file '/app/share/obs/obs-studio/themes/Dark/Popout.svg', because: No such file or directory
qt.svg: Cannot open file '/app/share/obs/obs-studio/themes/Dark/Popout.svg', because: No such file or directory
Attempted path: share/obs/obs-studio/themes/Dark/no_sources.svg
Attempted path: /app/share/obs/obs-studio/themes/Dark/no_sources.svg
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_clicked()
QMetaObject::connectSlotsByName: No matching signal for on_advAudioProps_destroyed()
QMetaObject::connectSlotsByName: No matching signal for on_actionGridMode_triggered()
QMetaObject::connectSlotsByName: No matching signal for on_program_customContextMenuRequested(QPoint)
info: OBS 25.0.8 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
    samples per sec: 44100
    speakers:        2
info: ---------------------------------
info: Initializing OpenGL...
info: Loading up OpenGL on adapter X.Org AMD NAVI10 (DRM 3.37.0, 5.7.8-200.fc32.x86_64, LLVM 9.0.1)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 20.1.2, shading language 4.60
info: ---------------------------------
info: video settings reset:
    base resolution:   3440x1440
    output resolution: 2224x930
    downscale filter:  Bicubic
    fps:               60/1
    format:            NV12
    YUV mode:          601/Partial
info: NV12 texture support not available
info: Audio monitoring device:
    name: Standard
    id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-ouput-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
info: No blackmagic support
error: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

info: FFMPEG VAAPI supported
error: os_dlopen(/app//lib/obs-plugins/obs-ndi.so->/app//lib/obs-plugins/obs-ndi.so): /app//lib/obs-plugins/obs-ndi.so: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

warning: Module '/app//lib/obs-plugins/obs-ndi.so' not loaded
info: ---------------------------------
info:   Loaded Modules:
info:     text-freetype2.so
info:     rtmp-services.so
info:     obs-xdg-portal.so
info:     obs-x264.so
info:     obs-transitions.so
info:     obs-outputs.so
info:     obs-libfdk.so
info:     obs-filters.so
info:     obs-ffmpeg.so
info:     linux-v4l2.so
info:     linux-pulseaudio.so
info:     linux-decklink.so
info:     linux-capture.so
info:     image-source.so
info:     frontend-tools.so
info:     decklink-ouput-ui.so
info: ---------------------------------
info: ==== Startup complete ===============================================
error: Service '' not found
info: All scene data cleared
info: ------------------------------------------------
info: pulse-input: Server name: 'pulseaudio 13.99.1-rebootstrapped'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_output.pci-0000_0c_00.1.hdmi-stereo-extra3.monitor'
info: [Loaded global audio device]: 'Desktop‐Audio'
info: pulse-input: Server name: 'pulseaudio 13.99.1-rebootstrapped'
info: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
info: pulse-input: Started recording from 'alsa_input.pci-0000_0e_00.3.analog-stereo'
info: [Loaded global audio device]: 'Mikrofon/AUX‐Audio'
info: OBS XDG initialized (sender name: 1_292)
info: Switched to scene 'Szene'
info: ------------------------------------------------
info: Loaded scenes:
info: - scene 'Szene':
info:     - source: 'Desktop Screencast (Wayland / X11)' (obs-xdg-source)
info: ------------------------------------------------
Attempted path: share/obs/obs-studio/images/overflow.png
Attempted path: /app/share/obs/obs-studio/images/overflow.png
info: [OBS XDG] Screencast session created
info: [OBS XDG] Asking for monitor…
info: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mikrofon/AUX‐Audio)

qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11237, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11270, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11273, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11289, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11358, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11402, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 11405, resource id: 8388678, major code: 130 (Unknown), minor code: 3
info: [OBS XDG] Monitor selected, setting up screencast
info: [OBS XDG] Starting monitor screencast…
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 17792, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 17828, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 17831, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 17906, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 19213, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 19252, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 19255, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 19271, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 22543, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 22582, resource id: 8388678, major code: 130 (Unknown), minor code: 3
qt.qpa.xcb: QXcbConnection: XCB error: 8 (BadMatch), sequence: 22585, resource id: 8388678, major code: 130 (Unknown), minor code: 3
info: User Removed source 'Desktop Screencast (Wayland / X11)' (obs-xdg-source) from scene 'Szene'
info: ==== Shutting down ==================================================
info: Switched to scene '(null)'
info: pulse-input: Stopped recording from 'alsa_output.pci-0000_0c_00.1.hdmi-stereo-extra3.monitor'
info: pulse-input: Got 10589 packets with 2335221 frames
info: pulse-input: Stopped recording from 'alsa_input.pci-0000_0e_00.3.analog-stereo'
info: pulse-input: Got 5736 packets with 2414818 frames
info: All scene data cleared
info: ------------------------------------------------
info: Freeing OBS context data
info: [Scripting] Total detached callbacks: 0
info: == Profiler Results =============================
info: run_program_init: 355,26 ms
info:  ┣OBSApp::AppInit: 1,959 ms
info:  ┃ ┗OBSApp::InitLocale: 1,012 ms
info:  ┗OBSApp::OBSInit: 289,38 ms
info:    ┣obs_startup: 13,467 ms
info:    ┗OBSBasic::OBSInit: 247,647 ms
info:      ┣OBSBasic::InitBasicConfig: 0,058 ms
info:      ┣OBSBasic::ResetAudio: 0,112 ms
info:      ┣OBSBasic::ResetVideo: 84,758 ms
info:      ┣OBSBasic::InitOBSCallbacks: 0,004 ms
info:      ┣OBSBasic::InitHotkeys: 0,033 ms
info:      ┣obs_load_all_modules: 82,555 ms
info:      ┃ ┣obs_init_module(decklink-ouput-ui.so): 0,491 ms
info:      ┃ ┣obs_init_module(frontend-tools.so): 56,981 ms
info:      ┃ ┣obs_init_module(image-source.so): 0,004 ms
info:      ┃ ┣obs_init_module(linux-capture.so): 0,243 ms
info:      ┃ ┣obs_init_module(linux-decklink.so): 0,076 ms
info:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0,001 ms
info:      ┃ ┣obs_init_module(linux-v4l2.so): 0,001 ms
info:      ┃ ┣obs_init_module(obs-ffmpeg.so): 0,108 ms
info:      ┃ ┃ ┗nvenc_check: 0,097 ms
info:      ┃ ┣obs_init_module(obs-filters.so): 0,008 ms
info:      ┃ ┣obs_init_module(obs-libfdk.so): 0 ms
info:      ┃ ┣obs_init_module(obs-outputs.so): 0,001 ms
info:      ┃ ┣obs_init_module(obs-transitions.so): 0,004 ms
info:      ┃ ┣obs_init_module(obs-x264.so): 0,001 ms
info:      ┃ ┣obs_init_module(obs-xdg-portal.so): 10,887 ms
info:      ┃ ┣obs_init_module(rtmp-services.so): 0,366 ms
info:      ┃ ┗obs_init_module(text-freetype2.so): 0,006 ms
info:      ┣OBSBasic::ResetOutputs: 0,081 ms
info:      ┣OBSBasic::CreateHotkeys: 0,024 ms
info:      ┣OBSBasic::InitService: 1,057 ms
info:      ┣OBSBasic::InitPrimitives: 0,075 ms
info:      ┗OBSBasic::Load: 27,92 ms
info: obs_hotkey_thread(25 ms): min=0,034 ms, median=0,064 ms, max=1,568 ms, 99th percentile=0,254 ms, 100% below 25 ms
info: audio_thread(Audio): min=0 ms, median=0,022 ms, max=1,257 ms, 99th percentile=0,073 ms
info: obs_graphics_thread(16,6667 ms): min=0,035 ms, median=0,308 ms, max=16,687 ms, 99th percentile=0,887 ms, 99,9395% below 16,667 ms
info:  ┣tick_sources: min=0 ms, median=0,004 ms, max=5,651 ms, 99th percentile=0,016 ms
info:  ┣output_frame: min=0,029 ms, median=0,095 ms, max=10,662 ms, 99th percentile=0,6 ms
info:  ┃ ┗gs_context(video->graphics): min=0,029 ms, median=0,095 ms, max=10,662 ms, 99th percentile=0,6 ms
info:  ┃   ┣render_video: min=0,004 ms, median=0,026 ms, max=2,931 ms, 99th percentile=0,143 ms
info:  ┃   ┃ ┗render_main_texture: min=0,003 ms, median=0,024 ms, max=2,927 ms, 99th percentile=0,138 ms
info:  ┃   ┗gs_flush: min=0,019 ms, median=0,063 ms, max=7,693 ms, 99th percentile=0,422 ms
info:  ┗render_displays: min=0,002 ms, median=0,174 ms, max=16,559 ms, 99th percentile=0,412 ms
info: =================================================
info: == Profiler Time Between Calls ==================
info: obs_hotkey_thread(25 ms): min=25,049 ms, median=25,13 ms, max=26,633 ms, 99,0428% within ±2% of 25 ms (0% lower, 0,957156% higher)
info: obs_graphics_thread(16,6667 ms): min=16,068 ms, median=16,667 ms, max=17,243 ms, 98,638% within ±2% of 16,667 ms (0,66586% lower, 0,696126% higher)
info: =================================================
info: Number of memory leaks: 0
TingPing commented 4 years ago

CC @GeorgesStavracas

GeorgesStavracas commented 4 years ago

This looks a lot like a wrong row stride. Will need more investigation

modzilla99 commented 4 years ago

I think I figured it out. Setting my aspect ratio from 21:9 to 16:9 solved it. I use a 3440x1440p monitor. Could it be a PipeWire issue?

GeorgesStavracas commented 4 years ago

Interesting. No, I don't believe it's a pipewire issue. I'm also fairly confident with the Mutter code, but it smells like a Mutter issue.

modzilla99 commented 4 years ago

Ah okay. I'd love to help, so if there's anything I could do, don't hesitate to ask!

GeorgesStavracas commented 4 years ago

Thanks! For the purpose of setting the right expectations, allow me to clarify that I'm extremely busy for the next few weeks and it's very unlikely I'll have time to look into it. When I do, I'll ping this issue. Thanks for understanding.

GeorgesStavracas commented 4 years ago

Oh, here's one thing you can try meanwhile. In a terminal, run the following commands:

$ flatpak uninstall com.obsproject.Studio
$ flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
$ flatpak install flathub-beta com.obsproject.Studio

(Adapted from https://github.com/flathub/com.obsproject.Studio/issues/60#issuecomment-641449364)

Try running OBS Studio after these commands and see if it's still broken. That will reduce the number of potential causes for this issue.

modzilla99 commented 4 years ago

Done that already. Didn't change anything.