carlosonunez / obs-installer-for-apple-silicon

Conveniently build and install OBS from source on your ultra-fast Apple M1 MacBook or Mac
206 stars 22 forks source link

Virtual camera not working #38

Closed lucouto closed 2 years ago

lucouto commented 3 years ago

I've just run the script and installed OBS successfully on my M1 Mac mini. But the Virtual Camera in not working. When I click "Start Virtual Camera" the button blinks and doesn't activate.

Any easy way to debug this, please?

TIA, L.

woogli commented 3 years ago

I've just tried this for the first time and the virtual camera won't start for me either. I'm on a new 14" Macbook Pro with M1 Max (24-core).

typeRob commented 3 years ago

Compiled this few days ago, I've got the same issue. If I click on the "start virtual camera" button it does nothing. I'm on a MBP 13 with M1

carlosonunez commented 3 years ago

Can you please run this command and provide me with the output?

find /Applications/OBS.app -name *virtualcam*
ambirex commented 3 years ago

I just compiled it and when I run the find command I get zsh: no matches found: *virtual*

Here is log from running the install script - https://gist.github.com/ambirex/bbc444186fcd0933cb974245ffc3c9d9

edit: I realized you were missing the quotes so if I run find /Applications/OBS.app/ -name "*virtualcam*" I get:

/Applications/OBS.app//Contents/Resources/obs-plugins/mac-virtualcam.so
/Applications/OBS.app//Contents/Resources/data/obs-plugins/mac-virtualcam
/Applications/OBS.app//Contents/Resources/data/obs-mac-virtualcam.plugin
/Applications/OBS.app//Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/MacOS/obs-mac-virtualcam
typeRob commented 3 years ago

Output from find /Applications/OBS.app/ -name "*virtualcam*"

/Applications/OBS.app//Contents/Resources/obs-plugins/mac-virtualcam.so
/Applications/OBS.app//Contents/Resources/data/obs-plugins/mac-virtualcam
/Applications/OBS.app//Contents/Resources/data/obs-mac-virtualcam.plugin
/Applications/OBS.app//Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/MacOS/obs-mac-virtualcam

Output from install.sh

output.log

Reading from this forum: https://obsproject.com/forum/threads/fyi-macos-virtual-cam-on-obs-26-1.135468/

I tried to:

lucouto commented 3 years ago

Results from find /Applications/OBS.app -name *virtualcam* here:

/Applications/OBS.app/Contents/Resources/obs-plugins/mac-virtualcam.so /Applications/OBS.app/Contents/Resources/data/obs-plugins/mac-virtualcam /Applications/OBS.app/Contents/Resources/data/obs-mac-virtualcam.plugin /Applications/OBS.app/Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/MacOS/obs-mac-virtualcam

There were some warnings during the compilation process. Maybe the log can help you debug this. install_log.txt Terminal Saved Output.txt

richardpeng commented 2 years ago

I had this same issue. For some reason, there's no /Library/CoreMediaIO/Plug-Ins/DAL folder after running install.sh.

I was able to get things working by manually copying the virtualcam plugin:

sudo rsync -ahP ./obs/cmake/_CPack_Packages/Darwin/Bundle/obs-studio-x64-27.1.3-modified/OBS.app/Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/ /Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin/Contents/

typeRob commented 2 years ago

I had this same issue. For some reason, there's no /Library/CoreMediaIO/Plug-Ins/DAL folder after running install.sh.

I was able to get things working by manually copying the virtualcam plugin:

sudo rsync -ahP ./obs/cmake/_CPack_Packages/Darwin/Bundle/obs-studio-x64-27.1.3-modified/OBS.app/Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/ /Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin/Contents/

Tried this solution and it works! Don't know why when I copied the whole .plugin file in the DAL folder didn't worked, but copying the Contents folder inside did the job. Thanks

lucouto commented 2 years ago

I can confirm that manually copying the files from OBS.app to /Library/ fixes the Virtual Camera issue. sudo rsync -ahP /Applications/OBS.app/Contents/Resources/data/obs-mac-virtualcam.plugin/Contents/ /Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin/Contents/

dvcrn commented 2 years ago

Having a similar issue with the native M1 build. Starting Virtual Camera works fine, just doesn't show up anywhere in the system for me to pick.

/Library/CoreMediaIO/Plug-Ins/DAL/obs-mac-virtualcam.plugin/Contents/ has the correct stuff in as well. Thought it might be a codesigning issue and re-signed the App but that didn't do it either