From owner-freebsd-multimedia@FreeBSD.ORG Sun Feb 7 11:55:51 2010 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE5C51065672; Sun, 7 Feb 2010 11:55:51 +0000 (UTC) (envelope-from mrechberger@gmail.com) Received: from mail-fx0-f224.google.com (mail-fx0-f224.google.com [209.85.220.224]) by mx1.freebsd.org (Postfix) with ESMTP id 586DE8FC12; Sun, 7 Feb 2010 11:55:50 +0000 (UTC) Received: by fxm24 with SMTP id 24so1611814fxm.3 for ; Sun, 07 Feb 2010 03:55:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=wy3iaIXfSX7eeUKlsL/V3lsGNokWJ+XOdHcRdjjXpmQ=; b=YBWGFD8dhOQQJ9aeFdgraw1xKiSylzwmi5KCEP2Bc+Xi/41EXB+09zITwkZSNRx3yU epdJZaxa8qaG9oEd2S3+asBz7PI5k5f4OMbUOnniVCN3xpEBYElpBvVh18Qwb2T4t9+k T0ykmkHQ6oHgPaNrAXtkPtywOzFUEZfqZoieM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=LGJI2s7rBnzQOKaN11b6ep95P0ubcIFU4P7CtOJkKAoyZgtKJ4sx9itBw90gZG3QM7 SB01butTabrWKlvzp57/5giWfe5Dt2BmoHdUB4a9jbclBbwerzeoqkFlz6PZIMTh6X2q mvhJgXJYLIIZbUpcrIcK7ChCAKTX1g796lmNk= MIME-Version: 1.0 Received: by 10.87.48.28 with SMTP id a28mr6893312fgk.40.1265542278381; Sun, 07 Feb 2010 03:31:18 -0800 (PST) In-Reply-To: <201002070515.o175Fu2c074522@harbor.orleans.occnc.com> References: <201002030142.51719.jkim@FreeBSD.org> <201002070515.o175Fu2c074522@harbor.orleans.occnc.com> Date: Sun, 7 Feb 2010 12:31:18 +0100 Message-ID: From: Markus Rechberger To: curtis@occnc.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org, Jung-uk Kim Subject: Re: Ekiga3 and webcamd working (was: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 11:55:52 -0000 On Sun, Feb 7, 2010 at 6:15 AM, Curtis Villamizar wrote: > > In message <201002030142.51719.jkim@FreeBSD.org> > Jung-uk Kim writes: >> >> On Wednesday 03 February 2010 12:46 am, Curtis Villamizar wrote: >> > In message <201002022135.04962.jkim@niksun.com> >> > >> > Jung-uk Kim writes: >> > > On Tuesday 02 February 2010 03:28 am, Hans Petter Selasky wrote: >> > > > On Tuesday 02 February 2010 08:21:53 Curtis Villamizar wrote: >> > > > > Still playing with my netbook. =A0I now have Ekiga3 running >> > > > > with webcamd, video4bsd, libv4l. >> > > > > >> > > > > The patches are *not* quite ready for prime time but if you >> > > > > also do a "setenv LDFLAGS '-L /usr/local/lib'" or equiv for >> > > > > your shell it will all work. =A0The configure and Makefiles may >> > > > > need to be patched in plugins/vidinput_v4l2 may need to be >> > > > > changed to have /usr/local/lib added to the library search >> > > > > path correctly. >> > > > > >> > > > > The patches are applied to devel/ptlib26 and are all tiny >> > > > > changes. =A0A few less PTRACE lines in vidinput_names.cxx might >> > > > > have been plenty. >> > > > > >> > > > > The sound_oss.cxx patch creates four entries with dsp0, dsp1, >> > > > > dsp2, dsp3, rather than four entries each with dsp0 in it. >> > > > > >> > > > > The patches aren't quite right but it gets ekiga3 running >> > > > > with V4L2 for now. =A0That said, I haven't tried a call yet, >> > > > > just the "View -> Show Call Panel" and "View -> Local Video". >> > > > > >> > > > > Curtis >> > > > >> > > > One comment: >> > > > >> > > > See the recent patches for the mplayer port, how to use libv4l1 >> > > > and libv4l2 for /dev/video access. If you don't use this >> > > > library, which is now in /usr/ports/multimedia/libv4l, you >> > > > might get trouble getting the picture from your webcam. >> > > >> > > Interestingly I wrote almost(?) complete patch last weeek: >> > > >> > > http://people.freebsd.org/~jkim/ptlib26.diff >> > > >> > > I sent it to the maintainer but I got no response so far. >> > >> > That looks similar to the code in there already. =A0Did you take this >> > from netbsd or from the latest code on the ekiga web site since >> > this looks a lot like the code that comes with the dist? >> >> No, I did it from scratch. =A0I'll take a look at upstream patches >> later. > > You had the same patch for OSS that I had with a different PTRACE > after it. > > The patch in plugins/vidinput_v4l2/vidinput_v4l2.cxx that you had > looked a lot like the code in the existing dist, but on looking at it, > it is different. > > Sometimes great minds think alike. =A0You and whoever did the netbsd > patch wrote similar code. =A0I just glanced at your patches when I wrote > the comment that they looked similar. > > It looks like you have quite a bit more patches than the code I needed > to look at to get this to work. > >> > > > Else your patches look good. I would suggest you call it >> > > > "video4linux 2" support, instead of video4bsd support >> > > >> > > I think we can just (re-/ab-)use V4L option, BTW. >> > >> > I followed the mplayer lead and added a second entry. >> >> That's fine. =A0I was just being lazy. :-) >> >> Jung-uk Kim > > The point is ekiga3 now works better with OSS and works with webcamd > with almost no changes. > > It looks like you have the library part fixed in your Makefile and > files/patch-plugins_vidinput_v4l_Makefile.in patches in the handling > of LDFLAGS. =A0I cheated and did a setenv LDFLAGS as a workaround but > you've done it the right way. I was wondering how about using fuse for exposing the nodes to enduser applications? Cuse (Character device in Userspace) which is an extension to fuse also supports ioctl transport with linux. It will probably soon affect our project since we are about to release a FreeBSD driver for USB DVB-C/T/analogTV/FM Radio device soon. http://support.sundtek.com/index.php/topic,4.0.html I have no idea how the other dvb devices work on FreeBSD, our package comes with it's own stack which emulates the existing linux-dvb v0.3/S2-API/video4linux1/2 stack. Markus