webcamd rc.d devd and instances
Hans Petter Selasky
hps at selasky.org
Wed Jun 21 11:01:56 UTC 2017
On 06/08/17 12:28, Da Rock wrote:
> I have a laptop with a manufacture error in the webcam where the image
> is upside down. I can call webcamd manually and use -m to rotate the
> image, but how do I get it to do this in rc.d/devd so that it does it
> automatically?
>
> I've tried using instances, but I'm not sure that the rc script is
> actually reading it - in fact it seems to even hang.
>
> In my rc.conf I have webcamd_0_flags="-m 'v4l2-dev.v4l_hflip=1
> v4l2-dev.v4l-vflip=1'".
>
> In the rc script file it says that devd will automatically add devices,
> if no devd then instances will have to be used; but it doesn't say if
> both can be used together. From the code, it seems it may be a
> possibility, but I'm looking for confirmation or a better solution to
> the dilemma.
>
Hi,
The webcamd RC is executed before devd is started. Static entries will
not conflict with dynamic ones.
To avoid static webcamd entries attaching to the wrong device, add -N
and -S options as given by "webcamd -l" to the flags.
--HPS
More information about the freebsd-multimedia
mailing list