Screencast only records a black box [duplicate]

Using Kazam or OBS to record my screen always results in a blank screen. Google searches do not show results for 19.04, only past versions. Any help?


After looking through some comments, I have found that you need to have XORG video server enabled.

You can check that by running echo $XDG_SESSION_TYPE.

If it says Wayland, then you can take these steps:

  1. Save your files and log out of your account.

  2. Go to log in normally, but do not click sign in. Instead, click the gear beside the sign in button.

  3. Select either Ubuntu if you also see Ubuntu on Wayland as an option, or Ubuntu on XORG.

And you can now use your screencast app.

(Thanks to user535733, pomsky, and K7AAY for providing help!)