Code Monkey home page Code Monkey logo

Comments (9)

nowrep avatar nowrep commented on August 22, 2024 2

@galvertez Yes, you can use either OBS_VKCAPTURE=1 %command% or obs-vkcapture %command% for Steam games.

from obs-vkcapture.

nowrep avatar nowrep commented on August 22, 2024 2

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.

nowrep avatar nowrep commented on August 22, 2024 2

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.

nowrep avatar nowrep commented on August 22, 2024

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.

Hubro avatar Hubro commented on August 22, 2024

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.

nowrep avatar nowrep commented on August 22, 2024

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.

cfrederrrr avatar cfrederrrr commented on August 22, 2024

@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.

Hubro avatar Hubro commented on August 22, 2024

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?

    image

  • How does it get the window name? In this case, World of Warcraft becomes "wine64-preloader". This is how the process tree looks:

    image

    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.

Hubro avatar Hubro commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.