obs-vkcapture icon indicating copy to clipboard operation
obs-vkcapture copied to clipboard

Does not capture flatpaks when running inside distrobox

Open ItsRogueRen opened this issue 1 year ago • 2 comments

Describe the bug When using OBS from a Distrobox container (i.e. Ubuntu so that you have the API log in for Twitch/YouTube/etc) obs-vkcapture is unable to capture flatpaks running outside of the distrobox. Currently trying to figure out of this is an issue with the plugin or distrobox

Screenshots or video If applicable, add screenshots or video to help explain your problem.

System (please complete the following information):

  • OS: Nobara 40
  • GPU: AMD RX 7700XT
  • Mesa version: Mesa 24.3.0-devel
  • obs-vkcapture version: git (July 28th 2024)

OBS log:

https://pastebin.com/2wt6x3Li

Game log:

Paste game terminal output here.
Make sure to set OBS_VKCAPTURE_QUIET=0 environment variable.

ItsRogueRen avatar Jul 28 '24 17:07 ItsRogueRen

The OBS plugin creates abstract unix socket which the clients (games) connect to. So if you run OBS in some kind of sandbox, you need to make sure the socket is visible from outside.

nowrep avatar Aug 04 '24 19:08 nowrep

The OBS plugin creates abstract unix socket which the clients (games) connect to. So if you run OBS in some kind of sandbox, you need to make sure the socket is visible from outside.

OK that would probably be a distrobox issue then, I'll have to see if there is something that can be done for that to allow it to see flatpaks

ItsRogueRen avatar Aug 04 '24 19:08 ItsRogueRen

I do the opposite. I run my game in a distrobox container (archlinux), but obs is run via the client. OBS doesn't manage to capture the game.

How can I fix this. What is the socket that should be visible, do you have more info on that ?

ilyasturki avatar Apr 07 '25 07:04 ilyasturki

I do the opposite. I run my game in a distrobox container (archlinux), but obs is run via the client. OBS doesn't manage to capture the game.

How can I fix this. What is the socket that should be visible, do you have more info on that ?

I'm running a game in distrobox (Fedora container) and running OBS on host linux via Flatpak.

I got it working by doing sudo dnf install obs-studio-plugin-vkcapture inside distrobox container, then run the game with obs-gamecapture %game_launch_command%, then the host OBS can capture it. Maybe you could achieve the same after installing the plugin in the archlinux container.

fsworld009 avatar Jun 25 '25 11:06 fsworld009

I do the opposite. I run my game in a distrobox container (archlinux), but obs is run via the client. OBS doesn't manage to capture the game. How can I fix this. What is the socket that should be visible, do you have more info on that ?

I'm running a game in distrobox (Fedora container) and running OBS on host linux via Flatpak.

I got it working by doing sudo dnf install obs-studio-plugin-vkcapture inside distrobox container, then run the game with obs-gamecapture %game_launch_command%, then the host OBS can capture it. Maybe you could achieve the same after installing the plugin in the archlinux container.

Thanks I will try that, will get back to you if it works.

ilyasturki avatar Jun 26 '25 07:06 ilyasturki