3 min read

Professional Content Creation: Setting Up OBS Studio on Ubuntu

For many years, the standard for recording and streaming has been OBS Studio (Open Broadcaster Software). On Ubuntu, OBS is incredibly powerful because the operating system stays out of the way, allowing the software to access your hardware directly. However, to get "professional" quality without lag, you need to configure the backend specifically for Linux.


1. Installation: Avoid the Standard Version

While you can install OBS via sudo apt install, the version in the standard Ubuntu repositories is often outdated and lacks essential plugins.

The Best Way (PPA): To get the latest features and hardware acceleration support, use the official project PPA:

sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt update
sudo apt install obs-studio

2. Enabling Hardware Encoding

The "Secret Sauce" to smooth recording is ensuring your CPU isn't doing all the work. You want your Graphics Card (GPU) to handle the video encoding.

  • NVIDIA Users: Look for NVENC. Ubuntu supports this natively if you have the proprietary drivers installed.
  • AMD/Intel Users: Look for VA-API. This is the Linux standard for hardware acceleration.

How to configure:

  1. Go to Settings > Output.
  2. Change "Output Mode" to Advanced.
  3. Under the Recording tab, change the Video Encoder to NVIDIA NVENC H.264 (NVIDIA) or FFmpeg VAAPI (AMD/Intel).

3. Capturing Audio with PipeWire

As we discussed with Discord, Ubuntu uses PipeWire. To capture game audio and your microphone separately in OBS:

  1. In the Sources dock, click the + icon.
  2. Select Screen Capture (PipeWire) for your visuals.
  3. Select Application Audio Capture (PipeWire) for your game. This is a game-changer; it allows you to record your game audio without recording your Spotify music or Discord chat.

4. Setting the Quality (The "Sweet Spot")

For a balance of high-quality video and manageable file sizes, use these "Pro" settings in the Recording tab:

  • Rate Control: CQP (Constant Quality Parameter).
  • CQ Level: 18 to 23. (Lower numbers mean higher quality but larger files. 0 is "lossless").
  • Profile: High.
  • Format: .mkv. (Always record in MKV. If OBS crashes, an MKV file is saved. If you record in MP4 and it crashes, the entire video is corrupted and lost).

Pro Tip: You can easily convert MKV to MP4 inside OBS by going to File > Remux Recordings.


5. Eliminating Desktop Lag (Wayland vs X11)

In 2026, Ubuntu uses Wayland by default. While Wayland is smoother for daily use, some older OBS plugins prefer X11.

  • If your screen capture looks "choppy" despite high FPS, try logging out of Ubuntu.
  • Before logging back in, click the small gear icon in the bottom right and select "Ubuntu on Xorg." This often provides a more stable capture environment for high-end gaming.

6. Essential Plugins for Linux

To truly reach professional levels, install these via the terminal:

  • OBS-Background-Removal: Uses AI to remove your background without a green screen.
  • OBS-Gstreamer: Allows for ultra-low latency monitoring.
  • Looking Glass: If you are running Windows in a Virtual Machine and want to "beam" the game into your Ubuntu OBS session.

Comparison of Recording Formats

Format Crash Proof? Edit-Friendly? File Size
MKV Yes Requires Remuxing Moderate
MP4 No Yes Moderate
FLV Yes No Small
MOV No High Large