nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
519 stars 25 forks source link

Game Capture show up but doesnt let me select any window #88

Closed AmyRoxwell closed 2 years ago

AmyRoxwell commented 2 years ago

Os: Pop_OS 22.04 X11 I have install Obs-vkcapture and set up everything to make it work (like putting the env var "OBS_USE_EGL=1" into the OBS flatpak using flatseal), game capture show up but after click on it doesnt let select a window to stream, what can I do to fix it?

Screenshot from 2022-08-24 16-23-06

nowrep commented 2 years ago

Please post logs from both OBS and the game.

AmyRoxwell commented 2 years ago

Obs log: 2022-08-25 13-01-24.txt Game log? I dont know how to do that but the game is ultrakill, also, I tried to use Wayland and it didnt work neither, gamecapture just refuse to let me select any window.

nowrep commented 2 years ago

If you play it on steam, change the startup command to PROTON_LOG=1 obs-gamecapture %command% and the log will be in your home directory.

AmyRoxwell commented 2 years ago

Well, I tried the startup command but the game refuses to start if "obs-gamecapture" is included, if I put just PROTON_LOG=1 then the game starts just fine

nowrep commented 2 years ago

Try PROTON_LOG=1 OBS_VKCAPTURE=1 %command%. Also please post log when it fails to start (it will still create a log file).

AmyRoxwell commented 2 years ago

It actually start without issue with the new command! Here is the log file for the game: steam-1229490.log

nowrep commented 2 years ago

It doesn't seem to load the vkcapture layer. Can you post log with PROTON_LOG=1 VK_LOADER_DEBUG=all %command%?

Alberto-vgdd commented 2 years ago

Hi, I am having the same exact issue as AmyRoxwell. Whenever I try launching a game using obs-gamecapture %command% the application doesn't launch at all. I just tried launching Elden Ring using PROTON_LOG=1 VK_LOADER_DEBUG=all %command% and it opened a white screen (I believe the game froze) and spit this log. steam-1245620.log

I am using EndeavourOS (arch based) with a Ryzen 7 3700x and a Radeon RX 6700 XT. My obs, as well as the obs-vkcapture, is installed using flatpak

nowrep commented 2 years ago

Sorry, the command needs to be PROTON_LOG=1 OBS_VKCAPTURE=1 VK_LOADER_DEBUG=all %command%. Can you please run it again?

Alberto-vgdd commented 2 years ago

Sure, I just tried that new launch command on DOOM Eternal instead, as Elden Ring's white screen seems to be a different issue. steam-782330.log

nowrep commented 2 years ago

The layer is either installed in wrong directory or Steam pressure-vessel doesn't pick it up for some reason. Does it work with native applications? obs-gamecapture vkcube. Is the layer available in vulkaninfo? vulkaninfo | grep VK_LAYER_OBS_vkcapture

How did you build this? cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib .. won't work on Debian based distros. It should be

cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu ..
Alberto-vgdd commented 2 years ago

This might be it. My computer does not recognize obs-gamecapture. I did install it through flatpak following the readme.md. Is there an extra step to "expose" the program to my computer that I missed? image

nowrep commented 2 years ago

Flatpak only works if you use Steam flatpak too. Otherwise you need to build obs-vkcapture native.

nowrep commented 2 years ago

I added note about Flatpak in README.