Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Fakecam work together with Iriun? #25

Open
taquangtrung opened this issue Jun 21, 2021 · 4 comments
Open

Can Fakecam work together with Iriun? #25

taquangtrung opened this issue Jun 21, 2021 · 4 comments

Comments

@taquangtrung
Copy link

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
Copy link
Author

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Author

Thank you for the update! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants