I’m using EndeavourOS and trying to capture gameplay from Minecraft (via Prism Launcher) using vkcapture. I have installed both the AUR obs-vkcapture and the -git version, but OBS doesn’t seem to recognize the game. I followed some advice from this subreddit and made changes to the /etc/environment file, but I still can’t get it to work. Is there any other way to fix this? Thanks in advance!
Edit: I noticed that using the recommended `env OBS_VKCAPTURE=1 %command%` doesn’t help. However, when I try `obs-vkcapture %command%`, it works fine.
3 Answers
It sounds like you’re running into issues because vkcapture only works with Vulkan apps. Since Minecraft’s non-raytracing version runs on OpenGL, vkcapture won’t work unless the game is in Vulkan mode. Instead of modifying /etc/environment, you might want to set the vkcapture layer as an environment variable at the application level only.
What if I use Zink to run OpenGL through Vulkan?
Actually, obs-vkcapture can also support OpenGL, but you shouldn’t use it through an environment variable. Instead, use `obs-gamecapture %command%`—that will preload the right library for capturing OpenGL. It’s a bit more reliable!
You might want to consider using GPU Screen Recorder as an alternative. It could be more straightforward for your needs!
That could work! But just make sure you properly configure it to run with Vulkan for it to be recognized.