akvirtualcamera icon indicating copy to clipboard operation
akvirtualcamera copied to clipboard

zoom.us can't find virtual camera in Mac

Open dx12346789 opened this issue 2 years ago • 8 comments

I use the viki's Build and install to install virtual camera.But I can't find the camera in zoom.us. Following my terminal code:

soda@sodadeiMac Resources % ./AkVCamManager devices
soda@sodadeiMac Resources % ./AkVCamManager load setting.ini 
soda@sodadeiMac Resources % ./AkVCamManager devices
+--------------------+-------------------------+
| Device             | Description             |
+--------------------+-------------------------+
| AkVCamVideoDevice0 | My Other Virtual Camera |
| MyFakeCamera0      | My Virtual Camera       |
+--------------------+-------------------------+
soda@sodadeiMac Resources % ./AkVCamManager update
soda@sodadeiMac Resources % ./AkVCamManager formats MyFakeCamera0
0: YUY2 1280x720 30/1 FPS

and the setting.ini:

[Cameras]
cameras/size = 2

cameras/1/description = My Virtual Camera
cameras/1/formats = 1
cameras/1/id = MyFakeCamera0

cameras/2/description = My Other Virtual Camera
cameras/2/formats = 1, 2

[Formats]
formats/size = 2

formats/1/format = YUY2
formats/1/width = 1280
formats/1/height = 720
formats/1/fps = 30

formats/2/format = RGB24
formats/2/width = 1280
formats/2/height = 720
formats/2/fps = 30

[General]
default_frame = /Users/soda/xcodepoject/akvirtualcamera-master/cmake_build/build/AkVirtualCamera.plugin/Contents/Resources/default.jpg 

Is there anything I missed?

dx12346789 avatar Feb 16 '22 07:02 dx12346789

Dit you installed the service?

hipersayanX avatar Feb 16 '22 14:02 hipersayanX

I tested it and it's working fine for me, with the same configuration as you.

Captura de Pantalla 2022-02-16 a la(s) 11 19 24

If you did followed the wiki word by word, it should be working fine for you too.

hipersayanX avatar Feb 16 '22 14:02 hipersayanX

Thank you for your reply. Here are my services:

soda@sodadeiMac Resources % launchctl list | grep -E "Assistant"
-	0	com.apple.AddressBook.AssistantService
soda@sodadeiMac Resources % sudo launchctl list | grep -E "Assistant"
20686	0	org.webcamoid.cmio.AkVCam.Assistant
-	0	com.apple.cmio.iOSScreenCaptureAssistant
-	0	com.apple.systempreferences.cacheAssistant
-	0	com.apple.cmio.AppleCameraAssistant
-	0	com.apple.cmio.IIDCVideoAssistant
276	0	com.apple.cmio.VDCAssistant
-	0	com.apple.cmio.AVCAssistant

The first service returned by sudo.

I add service by this code:

sudo launchctl enable system/org.webcamoid.cmio.AkVCam.Assistant

sudo launchctl bootstrap system /Library/LaunchDaemons/org.webcamoid.cmio.AkVCam.Assistant.plist

I copy and paste it to the terminal.

dx12346789 avatar Feb 17 '22 01:02 dx12346789

My proccess is as follows:

  1. Make alias for AkVirtualCamera.plugin to /Library/CoreMediaIO/Plug-Ins/DAL/
  2. Copy the code to create plist file to /Library/LaunchDaemons/
  3. Create the service with the above code
  4. Then use sudo launchctl start /Library/LaunchDaemons/org.webcamoid.cmio.AkVCam.Assistant.plist to start the service

FFmpeg also can't found the virtual camera

dx12346789 avatar Feb 17 '22 01:02 dx12346789

Everything seems to be correct. Are you using an x86_64 or a M1 processor? Does installing the virtual camera using the pkg works?

hipersayanX avatar Feb 17 '22 15:02 hipersayanX

oh. My zoom can find the virtual camera. I can't understand it. I changed the camera format from YUY2 to RGB24, then zoom can find it. After that I changed to YUY2, zoom can also found it.

dx12346789 avatar Feb 18 '22 01:02 dx12346789

When I use: ffmpeg -i ./1.mp4 -pix_fmt rgb24 -f rawvideo - | ./AkVCamManager stream MyFakeCamera0 RGB24 1280 720 Then I changed size from 1280x720 to 640x480,It's also slow.
It look like slower that the original. What can i do?

dx12346789 avatar Feb 18 '22 05:02 dx12346789

oh. My zoom can find the virtual camera. I can't understand it.

Could it be that you closed and then reopened Zoom? that could be the reason because it can find the camera now.

It look like slower that the original.

The vcam still needs a lot of optimizations.

What can i do?

If you know, C++ then start optimizing the code.

hipersayanX avatar Feb 18 '22 14:02 hipersayanX