flathub / com.obsproject.Studio

This repository is no longer used to build OBS. Issues should be reported at https://github.com/obsproject/obs-studio
https://github.com/obsproject/obs-studio
29 stars 21 forks source link

question: virtual camera support in flatpak #91

Closed soredake closed 3 years ago

soredake commented 3 years ago

OBS 26.1 will support virtual camera output on Linux, and it requires v4l2loopback module, so how is it gonna work with flatpak? https://github.com/obsproject/obs-studio/releases/tag/26.1.0-rc1

GeorgesStavracas commented 3 years ago

I don't think it can be supported in Flatpak, unfortunately. The only way something like this can work is by using PipeWire to export a camera, but it may take a long time for it to happen...

GeorgesStavracas commented 3 years ago

I proved myself wrong and managed to craft an upstream PR making the V4L2 implementation of VirtualCam support Flatpak. It's not ideal since it uses flatpak-spawn to run a couple of unsandboxed commands, but at least we can have this feature working for now :slightly_smiling_face:

I'll go ahead and close this issue since it's being addressed upstream, and if we're lucky, it'll be merged before the OBS Studio 27 release.

GeorgesStavracas commented 3 years ago

And seems like we are lucky! \o/ obsproject/obs-studio#4552 landed just in time for the 27 release.