Skip to content

nowrep/obs-vkcapture

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
September 11, 2023 10:46
August 25, 2023 10:50
March 21, 2021 16:21
October 2, 2023 12:48
March 21, 2021 16:25

OBS Linux Vulkan/OpenGL game capture

OBS plugin for Vulkan/OpenGL game capture on Linux.

AUR: obs-vkcapture-git

Flatpak:

About Flatpak

If you use Flatpak OBS, you need to install Flatpak OBS plugin.
If you use Flatpak Steam, you need to install Flatpak Capture tools to be able to capture games running inside Flatpak Steam runtine.

For capturing games outside Flatpak runtime, you need native build regardless of if you are using Flatpak OBS or not.

Dependencies

  • cmake
  • libobs
  • libvulkan
  • libgl
  • libegl
  • libX11 (optional)
  • libxcb (optional)
  • libwayland-client (optional)
  • wayland-scanner (optional)

Building

mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make && make install

Usage

  1. Add Game Capture to your OBS scene.
  2. Start the game with capture enabled obs-gamecapture %command%.
  3. (Recommended) Start the game with only Vulkan capture enabled env OBS_VKCAPTURE=1 %command%.

Troubleshooting

NVIDIA

Driver version >= 515.43.04 and nvidia-drm.modeset=1 kernel parameter are required. In Wayland session make sure OBS is running on Wayland and not XWayland.

No Game Capture source available in OBS 27

If you are on X11, make sure you run OBS with EGL enabled: OBS_USE_EGL=1 obs.