Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wayland support #50

Closed
samalapsy opened this issue Jun 12, 2020 · 6 comments
Closed

Wayland support #50

samalapsy opened this issue Jun 12, 2020 · 6 comments
Labels
enhancement New feature or request

Comments

@samalapsy
Copy link

I installed OBS on Ubuntu 20.04. I used it once or twice.. I worked when. The next time I wanted to use it again, The below image was what I saw. When I started recording, the result came out blank.
Screenshot from 2020-06-12 21-49-25

This is my the content of my log file

21:51:42.157: CPU Name: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
21:51:42.157: CPU Speed: 859.741MHz
21:51:42.157: Physical Cores: 4, Logical Cores: 8
21:51:42.157: Physical Memory: 15752MB Total, 1841MB Free
21:51:42.157: Kernel Version: Linux 5.4.0-37-generic
21:51:42.158: Distribution: "Ubuntu Core" "18"
21:51:42.158: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.8
21:51:42.159: Portable mode: false
21:51:42.200: OBS 25.0.8-modified (linux)
21:51:42.200: ---------------------------------
21:51:42.201: ---------------------------------
21:51:42.201: audio settings reset:
21:51:42.201: 	samples per sec: 44100
21:51:42.201: 	speakers:        2
21:51:42.209: ---------------------------------
21:51:42.209: Initializing OpenGL...
21:51:42.257: Loading up OpenGL on adapter Intel Open Source Technology Center Mesa DRI Intel(R) UHD Graphics 620 (Kabylake GT2) 
21:51:42.257: OpenGL loaded successfully, version 4.5 (Core Profile) Mesa 19.2.8, shading language 4.50
21:51:42.275: ---------------------------------
21:51:42.275: video settings reset:
21:51:42.275: 	base resolution:   1920x1080
21:51:42.275: 	output resolution: 1280x720
21:51:42.275: 	downscale filter:  Bicubic
21:51:42.275: 	fps:               30/1
21:51:42.275: 	format:            NV12
21:51:42.275: 	YUV mode:          601/Partial
21:51:42.276: NV12 texture support not available
21:51:42.276: Audio monitoring device:
21:51:42.276: 	name: Default
21:51:42.276: 	id: default
21:51:42.276: ---------------------------------
21:51:42.281: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
21:51:42.454: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
21:51:42.454: No blackmagic support
21:51:42.460: [obs-browser]: Version 2.8.6
21:51:42.465: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
21:51:42.465: 
21:51:42.465: FFMPEG VAAPI supported
21:51:42.474: [obs-websocket] you can haz websockets (version 4.7.0)
21:51:42.475: [obs-websocket] qt version (compile-time): 5.9.5 ; qt version (run-time): 5.9.5
21:51:42.479: [obs-websocket] module loaded!
21:51:42.488: VLC found, VLC video source enabled
21:51:42.489: ---------------------------------
21:51:42.489:   Loaded Modules:
21:51:42.489:     vlc-video.so
21:51:42.489:     v4l2sink.so
21:51:42.489:     text-freetype2.so
21:51:42.489:     rtmp-services.so
21:51:42.489:     obs-x264.so
21:51:42.489:     obs-websocket.so
21:51:42.489:     obs-transitions.so
21:51:42.489:     obs-outputs.so
21:51:42.489:     obs-libfdk.so
21:51:42.489:     obs-filters.so
21:51:42.489:     obs-ffmpeg.so
21:51:42.489:     obs-browser.so
21:51:42.489:     linux-v4l2.so
21:51:42.489:     linux-pulseaudio.so
21:51:42.489:     linux-jack.so
21:51:42.489:     linux-decklink.so
21:51:42.489:     linux-capture.so
21:51:42.489:     linux-alsa.so
21:51:42.489:     image-source.so
21:51:42.489:     frontend-tools.so
21:51:42.489:     decklink-ouput-ui.so
21:51:42.489:     advanced-scene-switcher.so
21:51:42.489: ---------------------------------
21:51:42.489: os_dlopen(../obs-plugins/obs-browser->../obs-plugins/obs-browser.so): ../obs-plugins/obs-browser.so: cannot open shared object file: No such file or directory
21:51:42.489: 
21:51:42.489: ==== Startup complete ===============================================
21:51:42.489: Service '' not found
21:51:42.492: All scene data cleared
21:51:42.492: ------------------------------------------------
21:51:42.496: pulse-input: Server name: 'pulseaudio 13.99.1'
21:51:42.497: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
21:51:42.497: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.hdmi-stereo.monitor'
21:51:42.497: [Loaded global audio device]: 'Desktop Audio'
21:51:42.498: pulse-input: Server name: 'pulseaudio 13.99.1'
21:51:42.498: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
21:51:42.498: pulse-input: Started recording from 'alsa_input.pci-0000_00_1f.3.analog-stereo'
21:51:42.498: [Loaded global audio device]: 'Mic/Aux'
21:51:42.499: xshm-input: Geometry 1920x1080 @ 1920,0
21:51:42.501: xshm-input: Geometry 1920x1080 @ 0,0
21:51:42.502: Switched to scene 'Scene'
21:51:42.502: ------------------------------------------------
21:51:42.502: Loaded scenes:
21:51:42.502: - scene 'Scene':
21:51:42.502:     - source: 'HDMI Screen Capture' (xshm_input)
21:51:42.502:     - source: 'Main Screen Capture (XSHM)' (xshm_input)
21:51:42.502: ------------------------------------------------
21:51:42.560: [obs-websocket] server started successfully on port 4444
21:51:42.560: [obs-websocket] io thread started
21:51:42.564: Failed to fetch parent window geometry!
21:51:42.564: gl_platform_init_swapchain  failed
21:51:42.564: obs_display_init: Failed to create swap chain
21:51:42.594: Failed to fetch parent window geometry!
21:51:42.594: gl_platform_init_swapchain  failed
21:51:42.594: obs_display_init: Failed to create swap chain
21:51:42.595: Failed to fetch parent window geometry!
21:51:42.596: gl_platform_init_swapchain  failed
21:51:42.596: obs_display_init: Failed to create swap chain
21:51:42.619: Failed to fetch parent window geometry!
21:51:42.619: gl_platform_init_swapchain  failed
21:51:42.619: obs_display_init: Failed to create swap chain
21:51:42.646: Failed to fetch parent window geometry!
21:51:42.646: gl_platform_init_swapchain  failed
21:51:42.646: obs_display_init: Failed to create swap chain
21:51:44.803: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 12
21:51:44.803: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 16
21:51:44.805: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 59
21:51:45.107: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 63
21:51:45.108: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 67
21:51:45.120: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 109
21:51:45.421: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 113
21:51:45.422: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 117
21:51:45.424: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 159
21:51:45.724: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 163
21:51:45.725: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 167
21:51:45.727: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 209
21:51:46.028: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 213
21:51:46.029: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 217
21:51:46.034: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 259
21:51:46.335: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 263
21:51:46.336: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 267
21:51:46.342: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 309
21:51:46.643: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 313
21:51:46.645: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 317
21:51:46.648: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 359
21:51:46.949: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 363
21:51:46.949: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 367
21:51:46.953: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 409
21:51:47.254: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 413
21:51:47.254: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 417
21:51:47.256: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 459
21:51:47.557: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 463
21:51:47.557: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 467
21:51:47.560: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 509
21:51:47.861: X Error: BadWindow, Major opcode: 20, Minor opcode: 0, Serial: 513
@samalapsy
Copy link
Author

This error occurs on Wayland. I had to signout of Wayland and I got it working back.

@lotharsm
Copy link
Member

I can reproduce this on my 20.04 install as well. Since wayland will eventually replace X11, I propose to re-open this issue for further investigation.

@samalapsy samalapsy changed the title OBS Diplay issues OBS Display issues Jun 21, 2020
@samalapsy samalapsy reopened this Jun 21, 2020
@lotharsm
Copy link
Member

This is most likely related due to the missing screen capturing capabilities in wayland itself. I try to circumvent this by implementing obs-xdg-portal, even though I don't know if it works inside a snap and not only flatpaks yet.

@yerbestpal
Copy link

I know the Flatpak build can now capture the desktop using Wayland. It might be worth checking it out. https://feaneron.com/2019/11/21/screencasting-with-obs-studio-on-wayland/

@flexiondotorg
Copy link
Member

I've looked into adding support for the obs-xdg-portal plugin. When I update this snap to use core20 I will try to get it integrated.

@flexiondotorg
Copy link
Member

Upstream OBS Studio has pull requests in progress that add Wayland support. I won't be attempting to improve Wayland support via plugins and will instead await the improved Wayland support from OBS Studio.

@flexiondotorg flexiondotorg changed the title OBS Display issues Wayland support Aug 22, 2020
@flexiondotorg flexiondotorg added the enhancement New feature or request label Aug 22, 2020
popey added a commit to popey/obs-studio that referenced this issue Dec 22, 2023
What's Changed

* feat: update scene switcher to 1.24.2 by @flexiondotorg in snapcrafters#49
* feat: update to composite blur 1.1.0 by @flexiondotorg in snapcrafters#50
* feat: update move transition to 2.9.7 by @flexiondotorg in snapcrafters#54
* feat: update advanced masks to 1.0.1 by @flexiondotorg in snapcrafters#51
* feat: update OBS Studio to 30.0.2 by @flexiondotorg in snapcrafters#55
* feat: update local vocal to 0.0.8 by @flexiondotorg in snapcrafters#53
* feat: update background removal to 1.1.8 by @flexiondotorg in snapcrafters#52
Full Changelog: r23344...r23356
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants