webcamoid / akvirtualcamera

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

where is the device #14

Closed shersoni610 closed 3 years ago

shersoni610 commented 3 years ago

Hello,

I created a device as shown below.

  1. What is the path to this device?
  2. I do not see this device under avfoundation list. WebCamoid generated device is visible in the list.
  3. How can I use VLC to open this device and play the contents.

Thanks

$ AkVCamManager add-device "AvailCamera0" Device created as "AkVCamVideoDevice"0 $ AkVCamManager devices +----------------------+--------------+ | Device | Description | +----------------------+--------------+ | "AkVCamVideoDevice"0 | AvailCamera0 | +----------------------+--------------+

hipersayanX commented 3 years ago

Once you created a device you must add a format and update.

AkVCamManager add-format AkVCamVideoDevice0 RGB24 640 480 30
AkVCamManager update

If everything was ok, then you should be able to list it with for example ffmpeg:

ffmpeg -f avfoundation -list_devices true -i ""
shersoni610 commented 3 years ago

Hello,

I followed the steps, but still I can not see the device in avfoundation list. What could be the problem?

$ ./AkVCamManager devices +----------------------+--------------+ | Device | Description | +----------------------+--------------+ | "AkVCamVideoDevice"0 | AvailCamera0 | +----------------------+--------------+ $ AkVCamManager add-format \"AkVCamVideoDevice\"0 RGB24 1920 1080 30 $ ./AkVCamManager update

hipersayanX commented 3 years ago

I've fixed the bug already, remove the devices, install the latest daily build:

https://bintray.com/webcamoid/webcamoid/download_file?file_path=mac%2FAkVirtualCamera-daily-master-51.dmg https://bintray.com/webcamoid/webcamoid/download_file?file_path=windows%2FAkVirtualCamera-daily-master-51-win64.exe

and try again.

shersoni610 commented 3 years ago

Hello,

Is the fix available in source code? I see the last update weeks ago.

Thanks

hipersayanX commented 3 years ago

Yes, if you compile from sources and you have the plugin already installed, just replace the files, otherwise you will need to install the service manually. Right now, I'm busy with Webcamoid, I'll return back with akvirtualcamera when I finish with it, and will try to fix the bugs later.

shersoni610 commented 3 years ago

Thank you very much. If you could point me what changes are required then I will try to fix them.

Right now I called only two functions (1) addDevice (2) addFormat. Somehow, I do not see the device in the list of avfoundation , therefore. I can render the images with OpenCV VideoCapture. I do not know what additional functions should I call to start using the Webcam. I will greatly appreciate if you could help out taking your little time.

Regards

shersoni610 commented 3 years ago

There seems to identical functions in the API (a) addDevice (2) createDevice. Which one should be used when creating new devices?

hipersayanX commented 3 years ago

Thank you very much. If you could point me what changes are required then I will try to fix them.

The code is fine, the quotes bug was introduced when changing the build system to cmake, here, and it was already fixed here, just make a git pull to get the changes.

There seems to identical functions in the API (a) addDevice (2) createDevice.

Do you mean this "API"?

Which one should be used when creating new devices?

None, the internal API is not guaranteed to be stable, for every single operation you want to do with the vcam, just call the manager.

hipersayanX commented 3 years ago

I've added the documentation of the vcam. Closing.