Comments (9)
@galvertez Yes, you can use either OBS_VKCAPTURE=1 %command%
or obs-vkcapture %command%
for Steam games.
from obs-vkcapture.
You can now select which window to capture, so you can just set the Vulkan layer to be loaded for all Vulkan apps and it should work just like on Windows.
echo "export OBS_VKCAPTURE=1" > /etc/profile.d/obs-vkcapture.sh
from obs-vkcapture.
The "empty" choice at the top, does it basically mean "Auto"? Should it perhaps say "Auto" rather than be empty?
Yes, I think it's like that in the Windows plugin too?
How does it get the window name? In this case, World of Warcraft becomes "wine64-preloader". This is how the process tree looks:
It's just a name of the executable, I need to add special handling for wine.
from obs-vkcapture.
For Vulkan, you can set OBS_VKCAPTURE=1 environment variable (eg. in your ~/.profile
) and it will be used for all Vulkan apps, same as on Windows. But then there is an issue where multiple running applications will try to connect to the OBS plugin, and you can't select which one to use because there is currently no support for capturing multiple games. But even if/when this is implemented, I still don't think loading the layer for all apps unconditionally is a good idea.
For OpenGL it's not really feasible, as it would mean setting global LD_PRELOAD.
from obs-vkcapture.
How is all this done on Windows? Pretty much all games (Direct3D, OpenGL, Vulkan) can be captured by OBS without doing any setup beforehand. Is it possible to do anything similar in Linux?
from obs-vkcapture.
I don't know how the OpenGL is done, but Vulkan is exactly the same as on Linux. They just load the Vulkan layer to all Vulkan apps.
from obs-vkcapture.
@nowrep would i be able to use OBS_VKCAPTURE=1
in the steam launch options of a game, so that only that game will attempt to connect to obs?
from obs-vkcapture.
You can now select which window to capture, so you can just set the Vulkan layer to be loaded for all Vulkan apps and it should work just like on Windows.
echo "export OBS_VKCAPTURE=1" > /etc/profile.d/obs-vkcapture.sh
Dude, that's awesome! 😁 And it remembers the selection between sessions, which is perfect! This is a huge UX improvement.
I have a couple of questions:
-
The "empty" choice at the top, does it basically mean "Auto"? Should it perhaps say "Auto" rather than be empty?
-
How does it get the window name? In this case, World of Warcraft becomes "wine64-preloader". This is how the process tree looks:
In this case I would expect the window name to either be "WoWClassic.exe" (the name of the process) or "World of Warcraft", the name of the Wayland window.
The "optimal" solution would be if the recorder could check the process tree and detect that the game is a child process of "lutris-wrapper" (because the game was launched by Lutris, then grab the game name from there. (In this case, "World of Warcraft (Classic)".) I assume something similar could be done for Steam.
from obs-vkcapture.
The "empty" choice at the top, does it basically mean "Auto"? Should it perhaps say "Auto" rather than be empty?
Yes, I think it's like that in the Windows plugin too?
Possibly, but it's not very intuitive. Here's an opportunity to be better than the Windows counterpart 😁
from obs-vkcapture.
Related Issues (20)
- Does an environment variable exist for obs-gamecapture? HOT 2
- Severe degradation using obs-vkcapture together with gamescope on Steam games HOT 17
- Feature request: Possible environment variable to capture? HOT 1
- game capture will capture game video, but not audio HOT 1
- [Crash bug] Using vkcapture on Helldivers 2 will hard crash the system, leading to a black screen. You cannot recover. HOT 2
- Plugin loaded, OBS_USE_EGL is set, source can't be added HOT 2
- build fails even with dependencies HOT 3
- Black Screen when Streaming with OBS specifically in Steamdeck's Gaming Mode HOT 1
- Minecraft (java edition) doesn't start HOT 2
- No "Select Window" Dropdown option HOT 7
- Build Fails on Ubuntu for OBS 30.2.0 HOT 12
- [flatpak] libobs.so.0: cannot open shared object file: No such file or directory HOT 3
- [flatpak] obs-gamecapture: command not found HOT 4
- Incompatible with streaming from gamescope headless backend HOT 2
- Ubuntu package names for dependancies HOT 1
- Cannot capture on NVIDIA wayland
- Does not capture flatpaks when running inside distrobox HOT 2
- Is there way to get system installed vkcapture to work on a flatpak app. HOT 3
- Window selection for multiple Vulkan outputs HOT 1
- Won't capture any program. Can't find library file.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obs-vkcapture.