The first OBS recording is often where small assumptions become visible: the preview is black, the microphone meter never moves, or a long session is saved in a format that an editor dislikes. A calm ten-minute setup avoids most of that. This walkthrough builds one dependable Ubuntu recording scene and proves the whole path—from desktop pixels and audio inputs to the file on disk.

Before opening OBS

Terminalbash
printf 'Session: %s\nDesktop: %s\n' "$XDG_SESSION_TYPE" "$XDG_CURRENT_DESKTOP"
df -h "$HOME"

Why these two checks matter

  • XDG_SESSION_TYPE normally reports wayland or x11; that result determines which Linux capture source is appropriate.

  • XDG_CURRENT_DESKTOP helps identify the desktop environment when portal or window-picker behaviour differs.

  • df -h is read-only and reports free space in human-readable units; recordings can consume gigabytes surprisingly quickly.

  • The command does not test encoder capacity, microphone access, or capture permission; the short recording later does that.

Install OBS from a source you can maintain

If OBS is already installed and updates cleanly, keep that package source and move to configuration. For a new Ubuntu installation, OBS currently documents its official PPA. Lynxbee’s dedicated OBS installation article can carry version-specific package details; the minimal official route is included here so this setup remains usable on its own.

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

Risk level: caution. Review the command before running it.

What the installation changes

  • add-apt-repository adds a third-party package source and its signing configuration; review the displayed PPA identity before confirming.

  • apt install resolves dependencies and changes installed system packages; inspect its transaction summary before accepting.

  • The PPA is the route documented by OBS for Ubuntu 18.04 or newer, but a distribution package or Flatpak may have different update and plugin behaviour.

  • Do not mix package sources casually. Plugins must match the OBS packaging model and supported ABI.

Terminalbash
obs --version
apt-cache policy obs-studio

What successful verification looks like

  • obs --version should print an OBS Studio version instead of a command-not-found error.

  • apt-cache policy is diagnostic: it shows which APT repository supplied the installed version and which version would be selected next.

  • A working version command proves the binary launches far enough to identify itself, not that screen capture, audio, or hardware encoding works.

Let the Auto-Configuration Wizard establish a baseline

Launch OBS from the application menu. On first run, choose “Optimize just for recording, I will not be streaming” when local recording is the goal. If the wizard no longer appears, open Tools → Auto-Configuration Wizard. OBS uses the intended workload, hardware, and—when streaming—network conditions to suggest a baseline.

  1. Choose recording or streaming according to the job you will actually perform; those workloads are tuned differently.

  2. Keep the base canvas at the display or application’s native aspect ratio. Downscale the output when the machine cannot encode the native resolution reliably.

  3. Start with 30 FPS for documentation, lectures, and mostly static desktops. Consider 60 FPS only when motion clarity justifies the extra encoder and storage load.

  4. Review the proposed settings, apply them, and treat them as a tested starting point—not a permanent rule.

Build one scene whose purpose is obvious

In the Scenes dock, rename the default scene to something concrete such as “Desktop tutorial.” A scene is a composition; sources are the visual and audio inputs inside it. Naming them “Laptop screen,” “Terminal window,” and “USB microphone” makes later troubleshooting much less mysterious than a stack of “Source 2” entries.

Choose the Linux capture source by session type

  • Wayland: add Screen Capture (PipeWire) for a monitor or window and choose the target in the desktop portal. PipeWire and the portal mediate consent rather than giving applications unrestricted desktop access.

  • X11: use the available X11 display capture for a monitor or Window Capture (Xcomposite) for one application window.

  • One application only: prefer window capture when possible; it reduces accidental exposure from notifications, password managers, and unrelated windows.

  • Blank preview: do not disable Wayland system-wide as a first response. Check the session type, source kind, portal selection, package permissions, and GPU path first.

Fit and lock the composition

  1. Select the capture source and use Transform → Fit to Screen when its aspect ratio matches the canvas.

  2. Check the preview for stretching, unintended borders, hidden dialogs, and readable text at the final output resolution.

  3. Place webcam, logo, or text sources only after the primary capture is correct.

  4. Lock stable sources in the Sources dock so an accidental drag does not ruin framing midway through a session.

Make audio visible before making it loud

Speak normally and play a short desktop sound while watching the Audio Mixer. A moving meter proves OBS receives a signal; it does not prove the correct device, track routing, balance, or absence of distortion. Mute inputs you do not need, especially laptop microphones that duplicate a USB microphone.

  • Choose the intended microphone and desktop-audio devices in Settings → Audio or add explicit audio sources to the scene.

  • Keep ordinary speech out of the red clipping region. Move the physical microphone closer before relying on aggressive digital gain.

  • Open Advanced Audio Properties only when you need monitoring, synchronization offsets, or separate track routing.

  • Wear headphones when monitoring a live microphone to prevent speaker feedback and echo.

  • If the final editor expects separate microphone and desktop tracks, enable and route those tracks deliberately, then test them in that editor.

Choose output settings that survive interruption

For a first setup, Settings → Output → Simple is easier to reason about. Select a recording path with enough space and a quality preset the machine can sustain. OBS describes High Quality as a sensible medium-size preset; Indistinguishable costs more storage and can stress older hardware, while Lossless can create enormous files.

Encoder choice is a workload decision

  • Hardware encoder available: it can reduce CPU load, but supported codecs and quality controls depend on the GPU, driver, OBS build, and target editor.

  • Software x264: broadly available but competes with applications for CPU time; lower resolution, FPS, or preset complexity if encoding overload appears.

  • Compatibility first: H.264 with AAC remains broadly playable. AV1 or HEVC can improve efficiency on suitable hardware but may complicate editing or playback.

  • Do not copy bitrate blindly: motion, resolution, frame rate, codec, quality target, and platform constraints all change what is appropriate.

Record a 30-second rehearsal

  1. Start recording and move a window or scroll text so dropped or uneven frames are visible.

  2. Speak a sentence, pause, and play a desktop sound so microphone and system audio can be distinguished.

  3. Switch to every scene and exercise any transitions or hotkeys you plan to use.

  4. Stop recording normally, then open the file from the configured recording path.

  5. Watch the entire clip with headphones. Check image, cursor, both audio sources, lip sync, framing, resolution, and duration.

  6. Open View → Stats during a second test if the first clip stutters; rendering lag and encoding lag point to different bottlenecks.

Troubleshooting without random setting changes

  • Black or frozen capture: confirm Wayland versus X11, recreate the source using the matching capture method, and follow the OBS black-screen diagnosis.

  • No microphone meter: select the correct input, unmute it, check Ubuntu input permissions and level, then close applications that may hold the device exclusively.

  • No desktop audio: verify the output device and PipeWire/PulseAudio routing while sound is actively playing.

  • Choppy recording: inspect OBS Stats, reduce canvas/output resolution or FPS, simplify scenes, and test a supported hardware encoder.

  • File will not import: remux MKV to MP4 in OBS or choose a codec/container combination supported by the editor.

  • Hotkeys do nothing: desktop environments may reserve the same shortcut; assign a conflict-free combination and test it before a full-screen recording.

  • Storage fills rapidly: lower the quality target, shorten rehearsals, choose another recording path, and monitor free space during long sessions.

A setup worth trusting

The reassuring moment is not when the preview first appears—it is when a saved rehearsal plays back with the expected picture, microphone, desktop audio, timing, and file format. Once that works, export or back up the scene collection and profile names, note the OBS and Ubuntu versions, and repeat the short test after major GPU-driver, desktop, portal, or OBS updates.

Authoritative references