Skip to content

scaledteam/obs-vkcapture

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Changes

Added kmsgrab utility. To activate, compile and install plugin, then run:

sudo vkcapture-kmsgrab

In list of vkcapture sources you will find "vkcapture-kmsgrab", which is fullscreen capture, universal to X11, Wayland, and even virtual console.

To select different video card, use -d argument:

sudo vkcapture-kmsgrab -d /dev/dri/card1

To select exact display, first run OBS and then sudo vkcapture-kmsgrab. Examine which CRTC looks like your display and select it with -c argument:

sudo vkcapture-kmsgrab -c 170

To allow utility to run without root, find vkcapture executable with whereis vkcapture-kmsgrab and run:

sudo setcap cap_sys_admin+ep /usr/bin/vkcapture-kmsgrab

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 -DCMAKE_BUILD_TYPE=Release ..
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.

About

VKCapture with KMSGrab included

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 97.1%
  • CMake 2.7%
  • Shell 0.2%