From owner-freebsd-multimedia@freebsd.org Wed Jun 21 11:01:56 2017 Return-Path: Delivered-To: freebsd-multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 12EBDD8C4EA for ; Wed, 21 Jun 2017 11:01:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id F258764C39 for ; Wed, 21 Jun 2017 11:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id F18D2D8C4E9; Wed, 21 Jun 2017 11:01:55 +0000 (UTC) Delivered-To: multimedia@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F123FD8C4E8 for ; Wed, 21 Jun 2017 11:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BE35664C37 for ; Wed, 21 Jun 2017 11:01:55 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 3CB392601FA; Wed, 21 Jun 2017 13:01:53 +0200 (CEST) Subject: Re: webcamd rc.d devd and instances To: Da Rock , multimedia@freebsd.org References: <3a98dbdb-fca4-505d-70fc-866f180ebf52@herveybayaustralia.com.au> From: Hans Petter Selasky Message-ID: Date: Wed, 21 Jun 2017 12:59:47 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <3a98dbdb-fca4-505d-70fc-866f180ebf52@herveybayaustralia.com.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2017 11:01:56 -0000 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