akvirtualcamera icon indicating copy to clipboard operation
akvirtualcamera copied to clipboard

AkVirtualCamera replaces a different virtual camera and renders it unusable

Open hyosettsu opened this issue 1 year ago • 1 comments

  • Use gist to post logs longer than 1024 characters.

Reporting a problem

Summary

I've never had any issues using Snap Camera as a camera input. However, I've just figured out that every time I install AkVirtualCamera, every program including Webcamoid, Chrome, Discord, OBS, etc., Snap Camera stops being recognized as a Video Capture Device, and I have no option to select it as my input source. I have uninstalled and reinstalled Webcamoid, AkVirtualCamera, and Snap Camera. I have cleared my cache from Snap Camera, restarted my computer, and restarted all of the programs several times (making sure to open Snap Camera first).

All of the other applications that I've previously used Snap Camera as a camera source with no problem before now are not displaying it as a camera option.

Through process of elimination, I've realized that AkVirtualCamera is the reason Snap Camera stops being discoverable as a source. The second I install the AkVirtualCamera files onto my computer, even if the virtual camera itself isn't installed in Webcamoid, Snap Camera stops being recognized.

Please note that I am a total beginner with developing. My coding knowledge is extremely minimal, and even getting AkVCamera to work the first time was an overwhelmingly complex process for me. If you know of any possible fixes to run both AkVCamera and Snap Camera at the same time both as virtual cameras, I would be super appreciative! Any responses that are as explained as basic steps-by-step instructions would be the most helpful to me :') If possible, please try to explain any suggestions at as much of an elementary-level as possible, I would really appreciate it! Thank you in advance!

Current Behavior

Once I install AkVirtualCamera as a virtual camera, Snap Camera stops functioning as an availably virtual camera input source in other programs.

Expected Behavior

I would expect to be able to use both Snap Camera and AkVirtualCamera as Virtual Camera output sources simultaneously.

Steps to Reproduce

If akvirtualcamera crashed, try to reproduce the crash several times to be sure where is the problem. Write the steps to reproduce the issue bellow:

  1. Download webcamoid-installer-mac-9.0.0-x86_64.pkg
  2. Install Webcamoid
  3. Open Webcamoid
  4. Click the gear > "Video" > "Sources" > "+ Add source"
  5. Select "Snap Camera", it opens/displays my Snap Camera virtual camera with filters/etc. fine
  6. Download akvirtualcamera-mac-9.1.0.pkg
  7. Download the [Source code .zip] (https://github.com/webcamoid/akvirtualcamera/archive/refs/tags/9.1.0.zip)
  8. Extract the Source code .zip
  9. Download and install Xcode Command Line Tools
  10. Open Terminal
  11. Enter: make -C /Applications/akvirtualcamera/akvirtualcamera-build-directory
  12. Enter: ln -s /Applications/AkVirtualCamera/AkVirtualCamera.plugin /Library/CoreMediaIO/Plug-Ins/DAL/AkVirtualCamera.plugin
  13. Enter:
cat << EOF > /Library/LaunchDaemons/org.webcamoid.cmio.AkVCam.Assistant.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>Label</key>
        <string>org.webcamoid.cmio.AkVCam.Assistant</string>
        <key>ProgramArguments</key>
        <array>
            <string>/Applications/AkVirtualCamera/AkVirtualCamera.plugin/Contents/Resources/AkVCamAssistant</string>
            <string>--timeout</string>
            <string>300.0</string>
        </array>
        <key>MachServices</key>
        <dict>
            <key>org.webcamoid.cmio.AkVCam.Assistant</key>
            <true/>
        </dict>
        <key>StandardOutPath</key>
        <string>/tmp/AkVCamAssistant.log</string>
        <key>StandardErrorPath</key>
        <string>/tmp/AkVCamAssistant.log</string>
    </dict>
</plist>
EOF

At this point, it appears that AkVirtualCamera has been installed, as it is available as a Webcamoid "Video Output" option. This is also the point that Snap Camera stops functioning as a "Video Input" option across every program on my computer.

Your Environment

  • akvirtualcamera information: 9.1.0 Mac
  • Operating System information: macOS Monterey Version 12.6, Intel Processor
  • Any other useful information: Snap Camera 1.20.0 (Newest update)

Again, I am very new to this kind of development, and I'm sure I made multiple obvious errors. I would really appreciate patience and understanding as I'm still trying to learn. Thank you in advance for any help you can provide!

hyosettsu avatar Oct 02 '22 23:10 hyosettsu