OBS (Open Broadcaster Software) is free and open source software for video recording and live streaming.
- OBS
Important
A portion of this guide assumes that you are using an NVIDIA GPU. If this is not the case, make any required adjustments accordingly.
This details how to install and set up OBS.
- Install the OBS Studio (
com.obsproject.Studio
) app as a Flatpak.
-
Launch the OBS Studio application.
-
Start and complete the initial setup wizard.
-
Click the Settings button in the bottom right corner.
-
In the General page, locate the System Tray section and configure the following:
- Enable
- Minimize to system tray when started
-
In the Output page, configure the following:
-
Streaming:
- Output Mode:
Advanced
- Audio Encoder:
libfdk AAC
- Video Encoder:
NVIDIA NVENC H.264 (FFmpeg)
- Rescale Output:
Disabled
- Rate Control:
VBR
- Bitrate:
6000 Kbps
- Max Bitrate:
6000 Kbps
- Keyframe Interval:
2s
- Preset:
P5: Slow (Good Quality)
- Tuning:
High Quality
- Multipass Mode:
Two Passes (Quarter Resolution)
- Profile:
high
- Psycho Visual Tuning:
Enabled
- GPU:
0
- Max B-frames:
2
- Output Mode:
-
Recording:
- Type:
Standard
- Recording Path:
~/Videos/Screen Recording
- Generate File Name without Space:
Disabled
- Recording Format:
Matroska Video (.mkv)
- Video Encoder:
NVIDIA NVENC H.264 (FFmpeg)
- Audio Encoder:
libfdk AAC
- Audio Track:
1
- Rescale Output:
Disabled
- Automatic File Splitting:
Disabled
- Rate Control:
VBR
- Bitrate:
30000 Kbps
- Max Bitrate:
50000 Kbps
- Keyframe Interval:
0s
- Preset:
P5: Slow (Good Quality)
- Tuning:
High Quality
- Multipass Mode:
Two Passes (Quarter Resolution)
- Profile:
high
- Psycho Visual Tuning:
Disabled
- GPU:
0
- Max B-frames:
1
- Type:
-
Audio:
- Audio Bitrate (All tracks):
160
- Audio Bitrate (All tracks):
-
Replay Buffer:
- Enable Replay Buffer:
Enabled
- Maximum Replay Time:
30s
- Enable Replay Buffer:
-
-
In the Video page, configure the following:
- Base (Canvas) Resolution:
1920x1080
(Change to your monitor's resolution) - Output (Scaled) Resolution:
1920x1080
(Change to your monitor's resolution) - Common FPS Values:
60
- Base (Canvas) Resolution:
-
In the Hotkeys page, configure the following:
- Start Replay Buffer: Control + Shift + S
- Save Replay: Home
-
In the Advanced page, configure the following:
-
Video:
- Color Format:
NV12
- Color Space:
Rec. 709
- Color Range:
Limited
- SDR White Level:
300 nits
- HDR Nominal Peak Level:
1000 nits
- Color Format:
-
Recording:
- Filename Formatting:
%hh%mm%ss %DD-%MM-%CCYY
- Overwrite if file exists:
Disabled
- Automatically remux to MP4:
Disabled
- Replay Buffer Filename Prefix:
Replay
- Replay Buffer Filename Suffix: (Leave blank)
- Filename Formatting:
-
-
Click the Apply button in the bottom right corner and then click OK.
This details how to add a source in OBS.
-
Launch the OBS Studio application.
-
In the Scenes section in the bottom left corner, select a scene (highlighted in blue) you wish to add a source to.
-
In the Sources section next to it, click the + button and select the desired source type (i.e.
Window Capture (Xcomposite)
). -
Enter a unique name for the source and click the OK button.
-
Some sources may require further configuration. Configure the source as needed and click the OK button to finish.
Note
This guide covers the Native version of Steam, and the Native/Flatpak version of OBS.
This details how to capture and record Steam games using OBS.
-
Install
obs-vkcapture-git
from theAUR
usingyay
. -
Additionally, if you are using the Flatpak version of OBS, install the
com.obsproject.Studio.Plugin.OBSVkCapture
OBS plugin Flatpak. -
Restart the system.
-
Launch the OBS Studio application.
-
Add a source of type,
Game Capture
, and the name,Game Capture
. -
Configure the
Game Capture
source properties as follows:- Window:
Capture any window
- Capture Cursor:
Enabled
- Allow Transparency:
Disabled
- Window:
-
Click the OK button.
-
Launch the Steam application.
-
Navigate to the Library tab.
-
Locate the game you wish to capture.
-
Right click the game and select Properties....
-
In the Launch Options section within the General tab, add the following launch command/parameter:
If the game runs on Vulkan:
env OBS_VKCAPTURE=1 %command%
Otherwise, if the game does not run on Vulkan (i.e. OpenGL):
obs-gamecapture %command%
Any other launch options (i.e.
gamemoderun
,mangohud
) should placed after the above launch option, before the%command%
parameter. Example:env OBS_VKCAPTURE=1 gamemoderun mangohud %command%
-
Click the X button in the top right corner to close the game Properties window.
-
Launch and run the game as per usual and it should now be captured in OBS.
Important
This guide requires PipeWire and WirePlumber to be installed and configured.
This details how to separate audio tracks by application virtually in OBS using PipeWire.
Note
If you are using the native (non-Flatpak) version of OBS, you could potentially install the obs-pipewire-audio-capture
package using yay
and skip this section.
-
Download the latest release's
linux-pipewire-audio-<version-number>.tar.gz
file from obs-pipewire-audio-capture's Releases page. If you are using the Flatpak version of OBS, download the file with-flatpak
in the filename. -
Create a
plugins
folder for OBS.-
The plugins path will differ depending on the version of OBS you are using:
- Flatpak version:
~/.var/app/com.obsproject.Studio/config/obs-studio/plugins
- Native version:
~/.config/obs-studio/plugins
- Flatpak version:
-
Create the plugins folder according to the version of OBS you are using if it does not exist:
mkdir -p <plugins-path>
[!TIP]
Replace<plugins-path>
with the path to the OBS plugins directory.
-
-
Extract the downloaded
linux-pipewire-audio-<version-number>.tar.gz
archive into the OBS plugins directory:tar -C <plugins-path> -xzf ~/Downloads/linux-pipewire-audio-<version-number>.tar.gz
[!TIP]
In addition to replacing<plugins-path>
, you should replace<version-number>
with the version number of the downloaded release (i.e.1.1.3
). -
Restart the system.
-
Launch the OBS Studio application.
-
Add a source of type,
Application Audio Capture (PipeWire)
, and the name of the application you wish to add a separate audio track for, i.e.Discord
. -
In the source's Properties, configure as follows:
-
Match Priority:
Match by binary name, fallback to app name
-
Application: Expand the dropdown and select the desired application (i.e.
discord
)[!NOTE]
If the desired application is not listed, try launching the application and then collapse/reopen the dropdown.
-
-
Click the OK button.
-
Now in the Audio Mixer section, you can enable said application's audio track and mute the other tracks by toggling the Speaker icon for each track.
This details the recommended configuration for the Magewell USB Capture HDMI 4K Plus on OBS.
-
Launch the OBS Studio application.
-
Add a source of type,
Video Capture Device (V4L2)
, and the name,Magewell USB Capture HDMI 4K Plus
. -
Configure the capture device as follows:
- Device:
USB Capture HDMI 4K+
- Input:
Camera 1
- Video Format:
YUYV 4:2:2
- Resolution:
2560x1440
(Change to your desired capture resolution) - Frame Rate:
Leave Unchanged
- Color Range:
Limited
- Use Buffering:
Enabled
- Autoreset on Timeout:
Disabled
- Frames Until Timeout:
5
- Device:
-
Click the OK button.
-
Add a source of type,
Audio Input Capture (PulseAudio)
(this works even if you're using Pipewire), and the name,Magewell USB Capture HDMI 4K Plus Audio
. -
Set the Device to
USB Capture HDMI 4K+ Analog Stereo
. -
Click the OK button.
-
In the Audio Mixer section, click the Gear button at the bottom.
-
Locate the Magewell USB Capture HDMI 4K Plus Audio source.
-
Set its corresponding Audio Monitoring setting to
Monitor and Output
. -
Click the Close button.
-
Lock both the Magewell USB Capture HDMI 4K Plus and Magewell USB Capture HDMI 4K Plus Audio sources by clicking each of their corresponding Lock buttons in the Sources section.