-
Notifications
You must be signed in to change notification settings - Fork 53
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
pyvirtualcam does not detect OBS on macOS 14: 'obs' backend: OBS Virtual Camera is not installed #111
Comments
After digging into the code, I narrowed down to two areas in camera.py:
and
Could it be that the _native_macos_obs module must be adapted to macOS 14 changes? The last idea I had was to look at the OBS mac-virtualcam plugin Here I reached my limits - |
Thanks for reporting this, I will need a bit of time to look into it though. Is there any reason you're using a beta version of OBS? Does it work with the previous one (29)? |
Yes, definitely. |
I am having this same problem and I have tried OBS 28.1, 29 and 30. Not sure if it's relevant to this but I am on an M2 Apple chip set, so Arm rather than Intel. |
@lillekemiker Interesting! @letmaik Again, here I reached my limits how I could help to expedite fixing this issue, apologies. |
Just to be clear, the mentioned github issue with Ventura says that they can't run OBS. I have no issue running OBS. Pyvirtualcam just can't seem to connect to it |
I had a quick look and here are some notes:
Supporting the new camera extension method of OBS 30 in pyvirtualcam will require quite a bit of effort and testing. Since I don't own a mac myself it will be tricky to do it myself. Community contributions would be much appreciated here. |
@letmaik
Thanks for this tip, I'll try it. If this doesn't work, is there a way to make the DAL plugin still work from OBS 30? |
For those who are looking for more background info, here's a good explanation why the DAL plugin doesn't work any more with OBS on macOS 14 on the OBS github issue I filed there. |
@letmaik @lillekemiker @JayFoxRox @Jaiaid As you know, pyvirtualcam has become almost a standard library for implementing a virtual camera. Dear Authors of pyvirtualcam, |
I've originally implemented the macOS support, but despite only being 2 years ago, I don't remember even doing it 🙊 . From what I gather from my original message at #16 it should be as simple as copying the new files from the obs-plugin directory, then use the plugin-main.mm as main.mm, adapting it a slight bit. Personally, I don't plan to work on it. |
@JayFoxRox Thanks so much for the info @letmaik @lillekemiker @Jaiaid There must be someone else who cares about preventing the extinction of |
Is there a way to upvote this bug? it's resolution would be super useful!! |
@ykk648 Congratulations - that's a genius idea to use ChatGPT for porting the script! |
I tried to port, and figured this out:
It is not a bug. It is technically not possible to use other system extensions on macOS 14, and could be added somewhere to the documentation, and that's it. I will use the following workaround: Streaming MJPEG images to OBS. |
Have there been any developments on this? I have just heard of this library and want to use it on my Macbook. I may consider attempting to fix this, but my experience with Obj-C is limited. Other than downgrading OBS to 29, are there any other workarounds? |
It cannot be done. I didn't buy an Apple Developer Account, and that's what I did instead: I created a MJPEG server in my python application. Then I use OBS to read that stream, and use the OBS virtual camera in other apps. The delay by OBS is approx. 1 second. Or I just read the MJPEG stream in a browser, that's basically no delay. |
I'm not clued into the specifics here - There's the ability with Sonoma to boot in recovery mode and enable legacy camera plugins. This might be a temporary fix? (along with some other code changes still required?). |
@HughEdwards1 it works now!
in the terminal, then reboot. |
Did you apply any of the additional fixes mentioned above? Reason I dropped into this thread is was I was curious to develop some stuff with mediapipe but couldn't get this working on my M2 mac |
Macos 14.4.1 (23E224) reboot in repair mode and execute
but some error :(((
|
@kir3d This procedure "installs" the virtual camera feature. |
@agilebean
|
@nilspo This may help to consider: |
@agilebean |
I faced the same issue and was able to partially resolve it. I'm still continuing the path but some help guidance would be appreciated. Firstly I could not use the mac os virtual cam because the system extension was not enabled. This was the solution after I upgraded to macos 15. Then I wanted to debug the pyvirtualcam but I don't know anything about https://github.com/obsproject/obs-studio/tree/master/plugins/mac-virtualcam/src/obs-plugin. So I'm trying to see if I can use the websocket plugin(https://github.com/aatikturk/obsws-python) and set the virtual cam to output of a program and show the frames on that program or not. |
Describe the bug
OBS in 30.0.0 beta versions changed its implementation of the virtualcam to make it compatible for macOS 14 Sonoma. Now, the pyvirtualcam code does not detect the OBS virtualcam even though it is detected by Zoom or Google Meet.
The following error is thrown:
RuntimeError: 'obs' backend: OBS Virtual Camera is not installed in your system. Use the Virtual Camera function in OBS to trigger installation.
To Reproduce
The OBS virtualcam is detected by pyvirtualcam by the following Python script:
The text was updated successfully, but these errors were encountered: