webcamoid / akvirtualcamera

akvirtualcamera, virtual camera for Mac and Windows
GNU General Public License v3.0
407 stars 52 forks source link

Unable to find virtual camera on M1 Mac (Chrome, Firefox, Zoom) #52

Closed mattrossman closed 1 year ago

mattrossman commented 1 year ago

Summary

After installing the latest AkVirtualCamera .pkg on my M1 Mac and following the configuration guide, I am unable to see the virtual camera in any client applications.

Current Behavior

In the browser, I use https://webcamtests.com/ to enumerate available cameras. I only see my existing cameras here, I don't see the new virtual camera. I have tested this in the latest Chrome and Firefox. I don't see the new virtual camera in Zoom either.

Expected Behavior

I should see some virtual camera listing appear here, at least with the default "no signal" dots pattern.

Steps to Reproduce

  1. Download and install the 9.1.0 .pkg
  2. Open a terminal
  3. Configure a virtual camera as follows:
$ alias AkVCamManager=/Applications/AkVirtualCamera/AkVirtualCamera.plugin/Contents/Resources/AkVCamManager

$ AkVCamManager add-device "AkVirtualCamera"
Device created as AkVCamVideoDevice0

$ AkVCamManager add-format AkVCamVideoDevice0 YUY2 640 480 30

$ AkVCamManager update
  1. Restart Chrome and navigate to https://webcamtests.com/ granting permission as needed
  2. Inspect dropdown of detected devices

Suggestions and tips

🤷‍♂️

Your Environment

I have other virtual camera applications installed such as OBS Virtual Camera, I'm not sure if that would cause some conflict.

Output of AkVCamManager dump ```xml AkVCamVideoDevice0 AkVirtualCamera YUY2 640 480 30/1 RGB32 640 480 30/1 RGB24 640 480 30/1 hflip Horizontal Mirror Boolean 0 1 1 0 0 vflip Vertical Mirror Boolean 0 1 1 0 0 scaling Scaling Menu 0 1 1 0 0 Fast Linear aspect_ratio Aspect Ratio Menu 0 2 1 0 0 Ignore Keep Expanding swap_rgb Swap RGB Boolean 0 1 1 0 0 RGB24 RGB24 RGB32 RGB24 UYVY YUY2 YUY2 -1 ```

Other things I have tried

hipersayanX commented 1 year ago

The pkg is for x86_64 not for ARM M1, it won't work there.

I tried building and installing from source, with the same result

Run /Applications/AkVirtualCamera/uninstall.sh for uninstalling everything you have installed from the pkg. When you compiled from the source, you probably did not linked the plugin or the plist file was not properly set.

mattrossman commented 1 year ago

Interestingly, I tried building from source before I tried the pkg installation, so I'm pretty sure it wasn't a conflict from the pkg install.

However, I just ran the uninstall script and re-tried the source build. It works! I don't know what I did differently this time 🙃 but I won't question it. I wish there was some error message that could explain what wasn't working before.

hipersayanX commented 1 year ago

I'll try later to add a M1 build and mark the architecture of the installer, but just in case, I don't have a M1 Mac to test it, so I can't go much further than that.