tl;dr
I cannot figure out how to get the v4l2loopback resolution configuration to persist across reboots (width=1280, height=720).
The openSUSE repository version of droidcam does not respect the /etc/modprobe.d/droidcam.conf, and v4l2loopback-ctl needs to be run (or left running) anytime I want to use droidcam.
Background:
after zypper in droidcam{,-cli}
and a reboot:
Several modules need to be initialized/configured prior to running droidcam.
I was able to set videodev, v4l2loopback, snd-aloop to run automatically at boot using /etc/modules_load.d/droidcam.conf & /etc/modprobe.d/droidcam.conf, but was unable to get the v4l2loopback resolution to stick.
Instead, I created a script of commands that starts & configures all of the necessary modules, but leaves a process active in the terminal, so I have to open another terminal to run droidcam separately.
This doesn’t seem right. Surely there is a simple way to permanently store the v4l2loopback configuration, so that it does not need to be left running whenever I want to use droidcam.
What am I missing?
Works, but v4l2loopback-ctl command needs to be run (or left running) for droidcam use. Does not store settings:
#!/bin/bash -x
sudo modprobe videodev
sudo modprobe v4l2loopback video_nr=9 devices=1 card_label="Droidcam"
sudo modprobe snd-aloop index=2
v4l2loopback-ctl set-caps "video/x-raw, format=I420, width=1280, height=720" /dev/video9
Works, but without v4l2loopback resolution configuration:
/etc/modules_load.d/droidcam.conf
videodev
v4l2loopback
snd-aloop
/etc/modprobe.d/droidcam.conf
options v4l2loopback width=1280 height=720
options snd-aloop index=2
Any assistance is appreciated,
-Cyril