Introduction
OBS Studio has become the most popular open‑source tool for capturing, mixing, and streaming video in real time. Although it is cross‑platform, on Linux it offers deep integration with the desktop environment, leveraging native video drivers and sound servers. This article will guide you from installation to advanced optimization, showing how to get the most out of OBS Studio on distributions such as Ubuntu, Fedora, Arch, and their derivatives.
Installing OBS Studio on Linux
The simplest way to obtain OBS Studio is through your distribution’s official repositories. On Ubuntu and derivatives, just run:
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studioOn Fedora, the package is available in the RPM Fusion repository:
sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install obs-studioArch users can install it directly from the community repositories:
sudo pacman -S obs-studioIf you prefer the latest version without relying on repositories, OBS provides AppImage and Flatpak packages. The AppImage is downloaded from the official page, made executable, and run without installation:
chmod +x OBS-Studio-*.AppImage
./OBS-Studio-*.AppImageThe Flatpak format is installed with:
flatpak install flathub com.obsproject.StudioAfter installation, launch OBS from the applications menu or from the terminal with
obs.Basic Configuration
When you start OBS for the first time, the auto‑configuration wizard appears. This step is optional but recommended for beginners, as it adjusts resolution, frame rate, and encoder based on your hardware. Nevertheless, it’s useful to know the parameters manually:
- Base (Canvas) Resolution: the resolution of the canvas you work on; typically it matches your monitor’s resolution (e.g., 1920x1080).
- Output (Scaled) Resolution: the resolution sent to the encoder; you can reduce it to improve performance on modest hardware.
- FPS (Frames per second): 30 fps is sufficient for most content; 60 fps is reserved for games or high‑speed material.
- Encoder: on Linux, the most efficient option is usually
x264(CPU) or, if your GPU supports it,VA‑APIvia theH.264 (VA‑API)encoder. - Bitrate: for 1080p streaming at 30 fps, a range of 2500‑4000 kbps is suitable; adjust according to your upload bandwidth.
In the Audio section, select the sample rate (44.1 kHz or 48 kHz) and the input and output devices you’ll use (microphone, speakers, desktop capture).
Advanced Settings and Plugins
OBS Studio can be extended with plugins. On Linux, the easiest way to install them is via the obs-linuxstudio package manager or by downloading binaries from the project page. Some essential plugins are:
- OBS‑NDI: lets you send and receive video over the network using NewTek’s NDI protocol, ideal for multi‑machine setups.
- StreamFX: adds transitions, 3D effects, and advanced compositing capabilities.
- Move Transition: smooth transitions based on movement and scale.
- Advanced Scene Switcher: automates scene changes based on conditions such as time, audio level, or keyboard activity.
- VST Plugin Wrapper: enables VST audio effects inside OBS, useful for real‑time equalization and compression.
To install a plugin, copy the .so library into ~/.config/obs-studio/plugins/ and restart OBS. You’ll see the new effects appear in the sources filter menu.
Streaming to Popular Platforms
OBS natively supports the most used streaming services: YouTube, Twitch, Facebook Live, and any generic RTMP server. In Settings → Stream select the service, paste your stream key (obtained from the platform’s control panel), and adjust the server if needed (e.g., use a Twitch server closer to your location).
If you want to stream to multiple destinations simultaneously, you can use the OBS‑Multi‑RTMP plugin or configure a custom output that sends the stream to an intermediate server (such as nginx‑rtmp) which then redistributes it.
Remember to enable Low‑latency Mode if you interact with the audience in real time; this reduces the delay between capture and playback, though it may increase CPU usage.
Local Recording and Optimization
For high‑quality recordings, it’s advisable to use the mkv or mp4 format with the x264 encoder in high profile and either constant bitrate (CBR) or variable bitrate (VBR) depending on your needs. In Settings → Output choose Output Mode: Advanced and adjust:
- Encoder Type: x264 (CPU) or VA‑API (GPU).
- Rate Control: CBR for streaming, VBR or CQP for recordings where file size isn’t critical.
- GPU Usage: if your card supports VA‑API, enable hardware encoding to free the CPU.
- Preset:
ultrafast,superfast,veryfast, etc.; a faster preset uses more CPU but yields less compression. - Profile:
highfor broad compatibility;mainif you need lower load.
After recording, you can remux the .mkv file to .mp4 without quality loss using ffmpeg -i input.mkv -c copy output.mp4.
Troubleshooting Common Issues
Although OBS is stable, certain inconveniences may appear on Linux. Here are the most frequent solutions:
- Black screen when capturing desktop: ensure your environment’s compositor (Xorg or Wayland) allows capture. On Wayland, use the Window Capture (Xcomposite) mode or the Wayland‑Capture plugin.
- Audio delay: adjust Audio Sync in Settings → Advanced; a value between -200 and 200 ms usually corrects offsets.
- High CPU usage: lower output resolution or frame rate, switch to a faster preset, or use hardware encoding (VA‑API) if available.
- Plugins not loading: verify that the plugin version matches your OBS version (e.g., OBS 30.x needs plugins compiled against that ABI). Check the logs via Help → Log for error messages.
- Failure to start on Wayland: run OBS with the environment variable
GDK_BACKEND=x11or install theobs-waylandpackage if available in your distribution.
Keeping your system and video drivers up to date is key to avoiding surprises.
Conclusion
OBS Studio on Linux combines the flexibility of open source with performance that rivals proprietary solutions. From easy installation via repositories to deep customization through plugins and encoding tweaks, you have all the tools needed to create professional‑quality content, whether for live streaming, tutorial recordings, or creative productions. Experiment with the settings described, adapt the parameters to your hardware, and take advantage of the active OBS community to keep learning and improving your streams.