virtual-puppet-project / vpuppr

VTuber application made with Godot 4
Mozilla Public License 2.0
725 stars 62 forks source link

Droidcam virtual webcam is not recognized in 00d5a8fc3b8d35f60493ba66a048aed43e14a0ac #153

Closed pasqui23 closed 1 year ago

pasqui23 commented 1 year ago

immagine Note that other programs and even VPuppr from the flatpak is able to use such webcam normally.

you-win commented 1 year ago

It seems like you are using Linux. What is the output of ls /dev/v4l/by-id/ ? This is the command used for OpenSeeFace tracking to find webcams on Linux.

pasqui23 commented 1 year ago
; sudo ls /dev/v4l                                                                                           # zsh 
[sudo] password di me: 
ls: impossibile accedere a '/dev/v4l': No such file or directory
pasqui23 commented 1 year ago

I doubt that it is the correct command to list webcam as the camera device is reported as /dev/video1

you-win commented 1 year ago

Which distribution are you using? I've tested this on debian 10, pop os 22.04, and fedora 34

pasqui23 commented 1 year ago

NixOS, but consider that another laptop with NixOS too and an included webcam ( this laptop I tested on does not include a webcam) does report devices under /dev/v4l/by-id/ so I think the problem is with DroidCam as I tried a setup where I get my face from my phone via DroidCam and then feed that to vpuppr.

pasqui23 commented 1 year ago

To clarify: I have 2 laptop with NixOS. The one with a webcam included does report devices under /dev/v4l/by-id/ but the other one does not have any included webcam and so does not have any /dev/v4l directory, even after running DroidCam.

you-win commented 1 year ago

Is there a recommended solution for getting camera devices via DroidCam? Otherwise, this issue will be closed.

It is impossible to solve for every single possibility, so the decision was made to use /dev/v4l since that can be expected to exist on most users' systems