This article was written in 2018-02-10. As of the end of this article, there is no known method to allow OBS to function properly in a Wayland environment.
Workaround
- Discard the use of Wayland and switch to x Window
- To record the screen on Wanyland, you can use Gnome's extended easyscreencast (https://extensions.gnome.org/extension/690/easyscreencast/)
- There are also some tools you can record on the Wayland screen, you can choose. Like Https://github.com/foss-project/green-recorder.
Reasons not to be used
The following finishing respective forum, does not represent my point of view
- Wayland uses a sandbox-like mechanism to separate the display services for each application
- Obs recording on X11 is the display data obtained directly to X11, Wayland does not provide the relevant interface
- Obs very want to communicate with Wayland to solve this problem, but Wayland not actively
Possible workarounds
Workaround from Askubuntu: Adding an environment variable QT_QPA_PLATFORM=xcb
might make him work.
Https://askubuntu.com/questions/966778/obs-is-not-working-with-wayland-display-server
After my testing, this method does not work for me, if you wish you could try.
Reference: Https://www.youtube.com/watch?v=B-O_yF46Exk https://obsproject.com/mantis/view.php?id=609 https:// obsproject.com/forum/threads/wayland-works-and-doesnt-work.67753/https://forum.level1techs.com/t/ Screen-recorder-for-wayland/112195/4
The response of OBS in Linux to display only mouse in Wayland environment