From owner-freebsd-current@FreeBSD.ORG Fri Jan 22 00:55:38 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E3B211065694 for ; Fri, 22 Jan 2010 00:55:38 +0000 (UTC) (envelope-from christof.schulze@gmx.com) Received: from mailout-eu.gmx.com (mailout-eu.gmx.com [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id 4D1348FC15 for ; Fri, 22 Jan 2010 00:55:38 +0000 (UTC) Received: (qmail invoked by alias); 22 Jan 2010 00:55:36 -0000 Received: from e180217231.adsl.alicedsl.de (EHLO klausdieter0815.dyndns.org) [85.180.217.231] by mail.gmx.com (mp-eu003) with SMTP; 22 Jan 2010 01:55:36 +0100 X-Authenticated: #56306756 X-Provags-ID: V01U2FsdGVkX18bRNE3BwsbIAVj8Tca3fvJT82coXV309EbF0D4P8 t2ql3kGL0hrHca Received: by myhost.mydomain.de (Postfix, from userid 1001) id 83A0472BB; Fri, 22 Jan 2010 01:55:35 +0100 (CET) From: Christof Schulze To: freebsd-current@freebsd.org Date: Fri, 22 Jan 2010 01:55:28 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> In-Reply-To: <201001101437.37269.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1275263.eOSmHdpN40"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201001220155.34784.christof.schulze@gmx.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53000000000000003 Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Jan 2010 00:55:39 -0000 --nextPart1275263.eOSmHdpN40 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am unsure whether I missed anything so here is what I did csup to 8_RELENG rebuild kernel & world portmanager webcamd (which built video4bsd also) kldload video4bsd webcamd webcamd -d ugen0.2 -i 0 -v 0 but I get Cannot open /dev/video_daemonX. Did you kldload video4bsd? this is the relevant part from dmesg: video4bsd: /dev/video0..9, /dev/video_daemon0..9 ugen0.2: at usbus0 (disconnected) uaudio0: at uhub0, port 2, addr 2 (disconnected) pcm2: detached ugen0.2: at usbus0 uaudio0: =20 on usbus0 uaudio0: No playback! uaudio0: Record: 16000 Hz, 1 ch, 16-bit S-LE PCM format uaudio0: No midi sequencer pcm2: on uaudio0 what am I missing? The device is supported on linux by the gspca driver. Regards Christof Am Sonntag 10 Januar 2010 14:37:37 schrieb Hans Petter Selasky: > Hi, >=20 > During the last couple of days I've spent some time to finish my webcam > daemon. My webcam daemon is basically an application which consists of > userspace Video4Linux USB webcam drivers and some uLinux glue code which > links with libc, pthreads and libusb. The webcamd talks to > /dev/video_daemonX which is provided by the video4bsd kernel module.=20 There > is full support for mmap/read/write/open/close. poll is not supported. >=20 > Basic operation and idea: >=20 > /dev/video_daemonX is the interface for the webcamd. /dev/videoX is the > interface for the V4L application. The video4bsd transports all data > between these two devices. In the case the V4L application is using=20 mmap, > no data is copied due to shared kernel memory buffer! >=20 > Licensing issues: >=20 > Effectivly the webcamd userland program becomes GPL'ed due to the V4L=20 USB > drivers which are GPL licensed. Some files inside the webcamd remains=20 BSD > licensed which allows for building similar BSD licensed daemons. >=20 > The rest of the code is BSD licensed. >=20 > Source code: >=20 > 1) FreeBSD 8-stable >=20 > 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb: >=20 > http://p4web.freebsd.org/chv.cgi?CH=3D172876 >=20 > http://perforce.freebsd.org/chv.cgi?CH=3D172876 >=20 > 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be > checked out in the same folder due to dependencies) >=20 > svn --username anonsvn --password anonsvn \ > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd >=20 > make all install > kldload video4bsd >=20 > svn --username anonsvn --password anonsvn \ > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux >=20 > make fetch > make patch > make all > make install >=20 > # this will attach to the first detected webcam: > ./webcamd >=20 > # this will try to attach to the given USB unit, interface and V4B unit. > ./webcamd -d ugen4.1 -i 0 -v 0 >=20 > # this will display webcam contents from /dev/video0 by default. > ./pwcview/pwcview >=20 > Feedback and bug reports are welcome. >=20 > Yes, I am working on getting this into ports! >=20 > Known issues: >=20 > 1) If you detach the USB webcam you need to manually restart the=20 webcamd. >=20 > --HPS >=20 > Support: I will be available at #bsdusb on efnet during the day. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current- unsubscribe@freebsd.org" >=20 =2D-=20 () ascii ribbon campaign - against html e-mail=20 /\ www.asciiribbon.org - against proprietary attachments --nextPart1275263.eOSmHdpN40 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iEYEABECAAYFAktY94YACgkQpZfyPAmdZJl84ACghTAQ4b0idPSirqUdMu0JJPYt +h4An2C/E6XISeuQMUelkSIfmS/3cHks =6cYm -----END PGP SIGNATURE----- --nextPart1275263.eOSmHdpN40--