From owner-freebsd-multimedia@freebsd.org Thu Jun 8 10:33:28 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 F3F5EBFB570 for ; Thu, 8 Jun 2017 10:33:27 +0000 (UTC) (envelope-from freebsd-multimedia@herveybayaustralia.com.au) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id DF4917C96D for ; Thu, 8 Jun 2017 10:33:27 +0000 (UTC) (envelope-from freebsd-multimedia@herveybayaustralia.com.au) Received: by mailman.ysv.freebsd.org (Postfix) id DB781BFB56F; Thu, 8 Jun 2017 10:33:27 +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 DB110BFB56E for ; Thu, 8 Jun 2017 10:33:27 +0000 (UTC) (envelope-from freebsd-multimedia@herveybayaustralia.com.au) Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33]) (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 9335D7C96C for ; Thu, 8 Jun 2017 10:33:26 +0000 (UTC) (envelope-from freebsd-multimedia@herveybayaustralia.com.au) Received: from [192.168.0.169] (laptop3.herveybayaustralia.com.au [192.168.0.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.unitedinsong.com.au (Postfix) with ESMTPSA id B88956210C for ; Thu, 8 Jun 2017 20:28:08 +1000 (EST) To: multimedia@freebsd.org From: Da Rock Subject: webcamd rc.d devd and instances Message-ID: <3a98dbdb-fca4-505d-70fc-866f180ebf52@herveybayaustralia.com.au> Date: Thu, 8 Jun 2017 20:28:05 +1000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US 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: Thu, 08 Jun 2017 10:33:28 -0000 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. Cheers