From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 19:25:38 2011 Return-Path: Delivered-To: multimedia@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EFC5510656A7; Wed, 20 Apr 2011 19:25:37 +0000 (UTC) (envelope-from nox@jelal.kn-bremen.de) Received: from smtp.kn-bremen.de (gelbbaer.kn-bremen.de [78.46.108.116]) by mx1.freebsd.org (Postfix) with ESMTP id 982128FC16; Wed, 20 Apr 2011 19:25:37 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id 8ED9D1E00229; Wed, 20 Apr 2011 21:25:36 +0200 (CEST) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.4/8.14.3) with ESMTP id p3KJNowN026970; Wed, 20 Apr 2011 21:23:50 +0200 (CEST) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.4/8.14.3/Submit) id p3KJNoH3026969; Wed, 20 Apr 2011 21:23:50 +0200 (CEST) (envelope-from nox) From: Juergen Lock Date: Wed, 20 Apr 2011 21:23:49 +0200 To: Andriy Gapon Message-ID: <20110420192349.GA23498@triton8.kn-bremen.de> References: <4DA4A1AC.90601@yandex.ru> <20110412222945.39b7a47b@ukr.net> <4DA4ADC7.6020101@yandex.ru> <20110412230426.550e8155@ukr.net> <20110413170446.GA84392@triton8.kn-bremen.de> <4DA5E0DB.2020009@FreeBSD.org> <20110413182157.GA87724@triton8.kn-bremen.de> <4DA72B26.7010009@FreeBSD.org> <20110415174620.GA31480@triton8.kn-bremen.de> <4DA96AC2.5020302@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DA96AC2.5020302@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: emulation@FreeBSD.org, Juergen Lock , multimedia@FreeBSD.org, olli@FreeBSD.org Subject: Re: Linuxolator v4l2/dvb patches (like for webcamd + skype...) 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: Wed, 20 Apr 2011 19:25:38 -0000 On Sat, Apr 16, 2011 at 01:09:06PM +0300, Andriy Gapon wrote: > on 15/04/2011 20:46 Juergen Lock said the following: > > I also couldn't get audio input to work with that skype version > > but maybe that just was because I am on 8 and used a Linux alsa > > oss plugin, > > > > http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/10/i386/alsa-plugins-oss-1.0.21-3.fc10.i386.rpm > > > > with this /compat/linux/etc/asound.conf: > > > > -----snip-------- > [snip] > > -----snip-------- > > > > ...instead of messing with pulseaudio and the patches it needs like > > you posted here: > > > > http://lists.freebsd.org/pipermail/freebsd-multimedia/2011-February/011696.html > > > > (I did hear skype's sounds that way btw, just the webcam's builtin > > mic on /dev/dsp4 wouldn't want to record anything even tho skype > > allowed me to select `dsp4' as mic input.) > > I think that this is a well known and still unresolved issue. > As far as I know nobody has been able to get a microphone working with any > non-OSS version of Skype via ALSA emulation. That's exactly the reason why I > started looking at PulseAudio. > Not sure if it's worth debugging alsalib input issue further. It's open source > after all, so a determined person with proper test environment could go to far > length. But I am sticking to pulseaudio for time being. > > BTW, to update on the link that you quoted: > - the kernel patches are already in head and stable/[78] > - libasyncns in the ports > - pulseaudio-libs is in the PR db > - for pulse communication via local sockets one has to create an additional link > in ~/.pulse directory: "${hostname}:runtime" which should point to the same > location as "${hostname}-runtime" created by native pulseaudio daemon. This is > because of different pulseaudio versions. > - input and output sources have to be set via pulseaudio config, e.g.: > default-sink = oss_output.dsp4 > default-source = oss_input.dsp1 > in client.conf. Ok so I finally got around to testing this myself, using your updated audio/linux-f10-pulseaudio-libs port from http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/156112 and found two things: a) I still needed the symlink you mentioned ~/.pulse/${hostname}:runtime - was this what the patch was supposed to fix? b) You said earlier that pulseaudio's mmap support for recording is broken, I found that too and found this workaround: Instead of changing /usr/local/etc/pulse/client.conf I changed /usr/local/etc/pulse/default.pa - I commented out the line: load-module module-detect and added two lines: load-module module-oss device="/dev/dsp4" source_name=input mmap=0 load-module module-oss device="/dev/dsp0" sink_name=output (dsp4 is the webcam's mic in this case.) Now as to why video still doesn't work for me with the latest skype beta I still don't know, does it work for anyone else besides kwm, and if yes which FreeBSD version/arch do you use and does your cam need that LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so ? (Btw I still found another bug so if it doesn't work for you also try redownloading my patch.) Thanx, Juergen