diddlesnaps / fakecam

Virtual Backgrounds for your video conferences and streaming presentations
Other
47 stars 10 forks source link

Can Fakecam work together with Iriun? #25

Open taquangtrung opened 3 years ago

taquangtrung commented 3 years ago

Hi,

I'm trying to use Fakecam with Iriun (https://iriun.com/), which allow me to use my Android phone as a webcam.

However, after running the following command, Iriun will stop working. (It will work normally if I remove the file /etc/modprobe.d/fakecam.conf)

echo options v4l2loopback devices=1 video_nr=20 \
 card_label="fakecam" exclusive_caps=1 | sudo tee -a \
 /etc/modprobe.d/fakecam.conf

I notice that it also has this configuration file:

# /etc/modprobe.d/iriunwebcam-options.conf 
options v4l2loopback exclusive_caps=1 devices=1 card_label="Iriun Webcam"
options snd-aloop index=3

Do you know if I can make Fakecam work together with Iriun?

Thank you!

taquangtrung commented 3 years ago

A quick update, when I change the setting devices=1 of Iriun to devices=2, then I can use Fakecam with Iriun.

Here is the new setting of my Iriun configuration file:

# /etc/modprobe.d/iriunwebcam-options.conf 
options v4l2loopback exclusive_caps=1 devices=2 card_label="Iriun Webcam"
options snd-aloop index=3
lucyllewy commented 3 years ago

You can amend the config you've landed upon slightly to add a label to the fakecam device in addition to the iriun label - that might help to differentiate it:

options v4l2loopback exclusive_caps=1 devices=2 card_label="Iriun Webcam",Fakecam
lucyllewy commented 3 years ago

You can also explicitly specify each video device by adding video_nr:

options v4l2loopback exclusive_caps=1 devices=2 video_nr=10,20 card_label="Iriun Webcam",Fakecam

Here the Iriun device will be named /dev/video10 and the Fakecam device will be /dev/video20.

taquangtrung commented 3 years ago

Thank you for the update! :)