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

Feature request: mutiple OBS instances for the same captured game #184

Open
AdelKS opened this issue Nov 23, 2023 · 4 comments
Open

Feature request: mutiple OBS instances for the same captured game #184

AdelKS opened this issue Nov 23, 2023 · 4 comments

Comments

@AdelKS
Copy link

AdelKS commented Nov 23, 2023

Hello!

Hope you have been doing well and would like to thank you again for this project.

I just tried to lunch two OBS instances for the same game to try something: one to do H264 CPU encoding (twitch) and the other for H265 GPU encoding (youtube, enables better quality). And it looks like obs-vkcapture is not quite ready to handle multiple clients on its socket: the first obs instance successfully binds, but the second cannot

info: [linux-vkcapture] plugin loaded successfully (version 1.4.5)
error: [linux-vkcapture] Cannot bind unix socket to : 98

Is it a hard thing to implement ?

Thanks!

Adel

@nowrep
Copy link
Owner

nowrep commented Nov 23, 2023

It's not going to work like that, yes.

I can add env variable (OBS_VKCAPTURE_SOCKET_PATH) that you would set for both the game and OBS instance and then it should work:

OBS_VKCAPTURE_SOCKET_PATH=/tmp/vkcpature1.sock obs
OBS_VKCAPTURE_SOCKET_PATH=/tmp/vkcpature2.sock obs

OBS_VKCAPTURE_SOCKET_PATH=/tmp/vkcpature1.sock obs-gamecapture %game1%
OBS_VKCAPTURE_SOCKET_PATH=/tmp/vkcpature2.sock obs-gamecapture %game2%

@AdelKS
Copy link
Author

AdelKS commented Nov 23, 2023

Thank you for your feedback !

Unfortunately, in the use case I am having I need the same game instance to be captured twice. In the approach you suggest it would mean that obs-gamecapture would receive a list of socket paths instead of a single socket, for my use case to be handled.

OBS_VKCAPTURE_SOCKET_PATH=/tmp/vkcpature1.sock;/tmp/vkcpature2.sock obs-gamecapture %game1%

Another possibility for me is to look into obs plugins that enable multi-streaming, I wonder if there's a solid one.

@AdelKS
Copy link
Author

AdelKS commented Nov 23, 2023

As I understand it, this issue is not really a limitation to obs-vkcapture, at least in my use case, and it's more related to obs needing to be able to do simulcast, but that is gonna take some more years from what it looks like haha (see obsproject/rfcs#27 and obsproject/rfcs#39 (comment)).

So implementing something in obs-vkcapture would be more of a "temporary" workaround, at least if my use case. But maybe it can be very useful/necessary for other use cases. Please feel free to close this issue at your discretion.

Also found this that I need to test https://sorayuki.github.io/obs-multi-rtmp/

@AdelKS
Copy link
Author

AdelKS commented Nov 28, 2023

https://sorayuki.github.io/obs-multi-rtmp/ worked for me. This feature request isn't needed for my use case any longer.

Thanks! Feel free to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants