Date: Wed, 21 Jun 2017 12:59:47 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Da Rock <freebsd-multimedia@herveybayaustralia.com.au>, multimedia@freebsd.org Subject: Re: webcamd rc.d devd and instances Message-ID: <cc85b3db-d105-695f-e386-5189a364cb77@selasky.org> In-Reply-To: <3a98dbdb-fca4-505d-70fc-866f180ebf52@herveybayaustralia.com.au> References: <3a98dbdb-fca4-505d-70fc-866f180ebf52@herveybayaustralia.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cc85b3db-d105-695f-e386-5189a364cb77>