Date: Tue, 24 Aug 2010 17:11:29 -0400 From: Joe Marcus Clarke <marcus@freebsd.org> To: Juergen Lock <nox@jelal.kn-bremen.de> Cc: me@janh.de, kde@freebsd.org, Hans Petter Selasky <hselasky@freebsd.org>, freebsd-multimedia@freebsd.org, gnome@freebsd.org Subject: Re: kaffeine-1.0 and webcamd based DVB-T? Message-ID: <4C743581.2070100@freebsd.org> In-Reply-To: <20100824202118.GA38687@triton8.kn-bremen.de> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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_<id>_<id>_noserial'?), add a string > to it like '_dvb_<incremented>', 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C743581.2070100>