From the last sticky thread in this subforum:
The Linux version of OBS is still under development and contains many bugs, but if you're feeling brave, and can install Ubuntu PPAs, then you can give this a try. If you're on Ubuntu 14.04 LTS, you'll first need to install FFmpeg: sudo apt-add-repository ppa:kirillshkrogalev/ffmpeg-next sudo...
obsproject.com
Code:
sudo apt-add-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studio
Or if OBS is already installed natively, change the last line to
sudo apt upgrade
or
sudo apt full-upgrade
.
Don't use flatpak or any other container for OBS. Yes, they exist, but most of the questions about things not working seem to come from containers. Containers are meant for security and portability. They're fine for things that are entirely self-contained and don't need much connection to anything else, but OBS practically needs to access major parts of the entire machine. (this is also why it doesn't work so well on virtual machines) A container can be made to work, but by the time you jump through all of those hoops, you've pretty well nullified the purpose of the container, and kept the downsides.
Don't use containers for OBS. Always install it natively. And since it seems that the distribution repos can't be trusted to have a decent version (again), you'll need to get it from our PPA, as above. (or build it from source; that works too)