Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Error] OBS in Ubuntu distrobox cannot use the obs-vkcapture plugin (isolation issue?) #1499

Closed
ItsRogueRen opened this issue Jul 28, 2024 · 6 comments
Labels
blocked bug Something isn't working help wanted Extra attention is needed wait-on-user waiting for a reply

Comments

@ItsRogueRen
Copy link

Please, before opening a bug:

  • make sure you've read the documentation.
  • Ensure there isn't already an open issue about this.
  • Ensure there isn't already a closed/resolved issue about this.

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) the obs-vkcapture plugin 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

To Reproduce
Install an Ubuntu distrobox
Install OBS Studio
Compile the obs-vkcapture plugin from source (no binary is provided)
Run a flatpak application with OBS Game Capture enabled (i.e. something in Bottles)
Make a Game Capture in OBS

Expected behavior
Game Capture sees the running flatpak program and captures it

Logs
Run the commands with --verbose and post the log here as a file upload
Attach also the output of podman logs or docker logs, possibly with --latest flag

Desktop (please complete the following information):

  • Are you using podman, docker or lilipod? podman
  • Which version or podman, docker or lilipod? 5.1.1
  • Which version of distrobox? 1.7.2.1
  • Which host distribution? Nobara 40
  • How did you install distrobox? dnf

Additional context
Everything is done with GUIs so I'm not sure how to get the logs needed

@ItsRogueRen ItsRogueRen added the bug Something isn't working label Jul 28, 2024
@ItsRogueRen
Copy link
Author

obs-vkcapture dev has responded and it does seem to be a distrobox related issue.

nowrep/obs-vkcapture#224 (comment)

Would there be a way to allow this to work within a distrobox with a flatpak running outside of distrobox?

@89luca89
Copy link
Owner

Hi @ItsRogueRen do you still have this problem?
Can you ensure obs in dbox is running on wayland with portals and not with xway?

I'll need help here to debug this

@89luca89 89luca89 added help wanted Extra attention is needed blocked wait-on-user waiting for a reply labels Oct 12, 2024
@ItsRogueRen
Copy link
Author

Hi @ItsRogueRen do you still have this problem?
Can you ensure obs in dbox is running on wayland with portals and not with xway?

I'll need help here to debug this

I can set it back up and test tonight

@ItsRogueRen
Copy link
Author

ItsRogueRen commented Oct 12, 2024

I quickly set this up on my laptop (same distro, same desktop, same install method, but Intel iGPU instead of a dedicated AMD GPU). Distrobox is the same version but podman has since updated to 5.2.3

The setup seems to be working on my laptop. I'm using the obs-vkcapture on the program VSeeFace which is running in wine via bottles (flatpak). OBS is running in an Ubuntu 22-04 distrobox which I have not changed any default settings in. The version should be on wayland by default. the Game Capture does appear to work with transparency enabled when previously it did not see the window to capture at all. I'll be setting this back up on my production desktop later tonight to see if the same results happen.

Image below of the capture working correctly:

image

@ItsRogueRen
Copy link
Author

I quickly set this up on my laptop (same distro, same desktop, same install method, but Intel iGPU instead of a dedicated AMD GPU). Distrobox is the same version but podman has since updated to 5.2.3

The setup seems to be working on my laptop. I'm using the obs-vkcapture on the program VSeeFace which is running in wine via bottles (flatpak). OBS is running in an Ubuntu 22-04 distrobox which I have not changed any default settings in. The version should be on wayland by default. the Game Capture does appear to work with transparency enabled when previously it did not see the window to capture at all. I'll be setting this back up on my production desktop later tonight to see if the same results happen.

Image below of the capture working correctly:

image

Just tested it on my main desktop as well, and it is also working there. I'm honestly confused as to why it's now working when it failed no matter what I did before...

@89luca89
Copy link
Owner

Ok marking as solved then, if you get to reproduce feel free to reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked bug Something isn't working help wanted Extra attention is needed wait-on-user waiting for a reply
Projects
None yet
Development

No branches or pull requests

2 participants