From owner-freebsd-gnome@FreeBSD.ORG Tue Aug 24 21:11:32 2010 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C85E3106564A; Tue, 24 Aug 2010 21:11:32 +0000 (UTC) (envelope-from marcus@freebsd.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id 7DEC48FC1B; Tue, 24 Aug 2010 21:11:32 +0000 (UTC) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost.cisco.com [127.0.0.1]) by av-tac-rtp.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o7OLBUVa018535; Tue, 24 Aug 2010 17:11:30 -0400 (EDT) Received: from fruit-rollup.marcuscom.com (jclarke-pc.cisco.com [172.18.254.236]) by rooster.cisco.com (8.13.8+Sun/8.13.8) with ESMTP id o7OLBTqP016249; Tue, 24 Aug 2010 17:11:30 -0400 (EDT) Message-ID: <4C743581.2070100@freebsd.org> Date: Tue, 24 Aug 2010 17:11:29 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: Juergen Lock References: <4C66C4BC.4040504@janh.de> <20100820180648.GA90683@triton8.kn-bremen.de> <4C71A635.6070205@freebsd.org> <201008230914.30762.hselasky@freebsd.org> <20100824202118.GA38687@triton8.kn-bremen.de> In-Reply-To: <20100824202118.GA38687@triton8.kn-bremen.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: me@janh.de, kde@freebsd.org, Hans Petter Selasky , freebsd-multimedia@freebsd.org, gnome@freebsd.org Subject: Re: kaffeine-1.0 and webcamd based DVB-T? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Aug 2010 21:11:32 -0000 On 8/24/10 4:21 PM, Juergen Lock wrote: > On Mon, Aug 23, 2010 at 09:14:30AM +0200, Hans Petter Selasky wrote: >>>> >>>> I have Cc'd hps, maybe he has an idea how to get the device index >>>> >>>> out of a running webcamd for hal to use... (maybe webcamd should >>>> also do a setproctitle()?) >>> >>> Actually, I'd prefer if there was a file or socket from which I could >>> read to get this data. hps, is this doable? That is, could I have a >>> file or socket that would allow me to map a USB bus/addr to a video (or >>> dvb) device ID? >> >> I think something like this has been discussed before, that perhaps webcamd, >> when it is ready updates hald, if present in the system. >> >> Could you provide me the snprintf() I need and where to send it? > > Ok I just got the new kaffeine working for direct dvb (i.e. without > xvdr://) with both the dvb-s2 and dvb-t tuners by invoking > hal-device --add for each dvb device node like below. (well, > ignoring audio issues on dvb-s2 h264 channels but those can't have > anything to do with hal...) > > So it seems you can take the udi name that hal uses for the device > (or is that always 'usb_device___noserial'?), add a string > to it like '_dvb_', use that as arg to 'hal-device --add', > and then give that process mostly static info like mine on stdin > where only dvb.device (the device node) and info.parent (the original > udi name) vary: (Linux also adds linux.device_file, linux.hotplug_type, > linux.subsystem, and linux.sysfs_path as you can see in my Linux > lshal output earlier in this thread, The USB Devices are named as usb_device_vendorID_product_ID_serialNo (noserial if there is no ASCII serial number). The parent may be important, so the output of lshal may need to be properly known, but you could also just set it to the dummy /org/freedesktop/Hal/devices/computer value (i.e. its parent is the root of the tree). If this works for both dvb and v4l, we could remove the patches in hal, and just have webcamd do our dirty work. Joe -- Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome