From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 13:39:01 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 792FE1065676; Sun, 10 Jan 2010 13:39:01 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe14.tele2.se [212.247.155.161]) by mx1.freebsd.org (Postfix) with ESMTP id 7B6668FC15; Sun, 10 Jan 2010 13:39:00 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=p0TwAfwpPXgA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=OdR5sfXFAAAA:8 a=yii_e_M_R1lv0RMgNxMA:9 a=AKsT8VVSzWy0iFj9e78A:7 a=7n0J_6GuWXPTFV8-VojJBdtb8KAA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe14.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 591294738; Sun, 10 Jan 2010 14:38:58 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Date: Sun, 10 Jan 2010 14:37:37 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201001101437.37269.hselasky@c2i.net> Cc: Subject: [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, 10 Jan 2010 13:39:01 -0000 Hi, 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. There is full support for mmap/read/write/open/close. poll is not supported. Basic operation and idea: /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 mmap, no data is copied due to shared kernel memory buffer! Licensing issues: Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB drivers which are GPL licensed. Some files inside the webcamd remains BSD licensed which allows for building similar BSD licensed daemons. The rest of the code is BSD licensed. Source code: 1) FreeBSD 8-stable 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb: http://p4web.freebsd.org/chv.cgi?CH=172876 http://perforce.freebsd.org/chv.cgi?CH=172876 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be checked out in the same folder due to dependencies) svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd make all install kldload video4bsd svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux make fetch make patch make all make install # this will attach to the first detected webcam: ./webcamd # this will try to attach to the given USB unit, interface and V4B unit. ./webcamd -d ugen4.1 -i 0 -v 0 # this will display webcam contents from /dev/video0 by default. ./pwcview/pwcview Feedback and bug reports are welcome. Yes, I am working on getting this into ports! Known issues: 1) If you detach the USB webcam you need to manually restart the webcamd. --HPS Support: I will be available at #bsdusb on efnet during the day. From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 18:02:56 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 A6BF5106566B for ; Sun, 10 Jan 2010 18:02:56 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.216.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7CD868FC0C for ; Sun, 10 Jan 2010 18:02:56 +0000 (UTC) Received: by pxi12 with SMTP id 12so14046818pxi.3 for ; Sun, 10 Jan 2010 10:02:46 -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=oE3tEuyAQ3cg2Kudc/KIGU4cYqJXAvWSSOXoWMYmQCQ=; b=nkdpuMth5/xjet4626gSJkcBUZcQU1bWPr6gAG5k7TD9gZj1cckhv9RtIh6hPt0L3l yGvfgwnodPCN65wZBI84D7Q36wLh1rRvPGp2roLB+UN3DO4YXcIp6axPcf5TMSxeZoIf 5F+WzhX6OscF8eXIcl7G6Ks7QvJ/I/q9i4q9A= 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=VCkcgEdrLfPOTcLVanhTDTlm6BYFX8CErGW2rLwExd4EbKTEIzGyOBVP6JdvD67tFy BSLWU0JCXpKpkCErVytsmkRx+82VyeBStMascusU6aN31it38McEOOV0wZHs/1MK9ruS 8RFx/72B7n0aCjGwzXuiWwLlpyWEiUmoV3SoQ= MIME-Version: 1.0 Received: by 10.142.121.4 with SMTP id t4mr16742499wfc.256.1263145217561; Sun, 10 Jan 2010 09:40:17 -0800 (PST) In-Reply-To: <201001101437.37269.hselasky@c2i.net> References: <201001101437.37269.hselasky@c2i.net> Date: Sun, 10 Jan 2010 17:40:17 +0000 Message-ID: <179b97fb1001100940o74d5f42arcba36098dd0bdd34@mail.gmail.com> From: Brandon Gooch To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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, 10 Jan 2010 18:02:56 -0000 On Sun, Jan 10, 2010 at 1:37 PM, Hans Petter Selasky wro= te: > Hi, > > 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 w= hich > is provided by the video4bsd kernel module. There is full support for > mmap/read/write/open/close. poll is not supported. > > Basic operation and idea: > > /dev/video_daemonX is the interface for the webcamd. /dev/videoX is the > interface for the V4L application. The video4bsd transports all data betw= een > these two devices. In the case the V4L application is using mmap, no data= is > copied due to shared kernel memory buffer! > > Licensing issues: > > Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB > drivers which are GPL licensed. Some files inside the webcamd remains BSD > licensed which allows for building similar BSD licensed daemons. > > The rest of the code is BSD licensed. > > Source code: > > 1) FreeBSD 8-stable > > 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb: > > http://p4web.freebsd.org/chv.cgi?CH=3D172876 > > http://perforce.freebsd.org/chv.cgi?CH=3D172876 > > 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be che= cked > out in the same folder due to dependencies) > > svn --username anonsvn --password anonsvn \ > =A0 =A0 =A0checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd > > make all install > kldload video4bsd > > svn --username anonsvn --password anonsvn \ > =A0 =A0 =A0checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux > > make fetch > make patch > make all > make install > > # this will attach to the first detected webcam: > ./webcamd > > # this will try to attach to the given USB unit, interface and V4B unit. > ./webcamd -d ugen4.1 -i 0 -v 0 > > # this will display webcam contents from /dev/video0 by default. > ./pwcview/pwcview > > Feedback and bug reports are welcome. > > Yes, I am working on getting this into ports! > > Known issues: > > 1) If you detach the USB webcam you need to manually restart the webcamd. > > --HPS > > Support: I will be available at #bsdusb on efnet during the day. Seems to work for just a second or two (I see my ugly mug on-screen), and then this: # ./pwcview/pwcview Webcam set to: 320x240 (sif) at 5 fps libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits libv4l2: error converting / decoding frame data: v4l-convert: error parsing JPEG header: Not a JPG file ? >From another xterm: # ./webcamd -d ugen6.2 -v 0 -i 0 KrefGet: 0x800c90304 =3D 1 KrefGet: 0x800c90304 =3D 2 KrefGet: 0x800c9083c =3D 1 KrefGet: 0x800c9092c =3D 1 Added device 0x800ca4d08 KrefGet: 0x800ca4d0c =3D 1 KrefGet: 0x800ca4d0c =3D 2 size =3D 622592 alloc_nr =3D 0 KrefPut: 0x800ca4d0c =3D 2 >From dmesg: ugen6.2: at usbus6 From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 19:33:03 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 7FB86106568F; Sun, 10 Jan 2010 19:33:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.freebsd.org (Postfix) with ESMTP id 7BC818FC16; Sun, 10 Jan 2010 19:33:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=6I5d2MoRAAAA:8 a=OdR5sfXFAAAA:8 a=Qd2203DERVxIISpw-G8A:9 a=QmE9FGGqE5A4QaQAyOwA:7 a=pgQXwYCw-eX86rDFpIob2WWeY64A:4 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe04.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1333031176; Sun, 10 Jan 2010 20:32:59 +0100 From: Hans Petter Selasky To: freebsd-current@freebsd.org Date: Sun, 10 Jan 2010 20:31:37 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <179b97fb1001100940o74d5f42arcba36098dd0bdd34@mail.gmail.com> In-Reply-To: <179b97fb1001100940o74d5f42arcba36098dd0bdd34@mail.gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001102031.37846.hselasky@c2i.net> Cc: Brandon Gooch , freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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, 10 Jan 2010 19:33:03 -0000 On Sunday 10 January 2010 18:40:17 Brandon Gooch wrote: > On Sun, Jan 10, 2010 at 1:37 PM, Hans Petter Selasky wrote: > > Hi, > > > > 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. > > There is full support for mmap/read/write/open/close. poll is not > > supported. > > > > Basic operation and idea: > > > > /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 mmap, > > no data is copied due to shared kernel memory buffer! > > > > Licensing issues: > > > > Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB > > drivers which are GPL licensed. Some files inside the webcamd remains BSD > > licensed which allows for building similar BSD licensed daemons. > > > > The rest of the code is BSD licensed. > > > > Source code: > > > > 1) FreeBSD 8-stable > > > > 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb: > > > > http://p4web.freebsd.org/chv.cgi?CH=172876 > > > > http://perforce.freebsd.org/chv.cgi?CH=172876 > > > > 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be > > checked out in the same folder due to dependencies) > > > > svn --username anonsvn --password anonsvn \ > > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd > > > > make all install > > kldload video4bsd > > > > svn --username anonsvn --password anonsvn \ > > checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux > > > > make fetch > > make patch > > make all > > make install > > > > # this will attach to the first detected webcam: > > ./webcamd > > > > # this will try to attach to the given USB unit, interface and V4B unit. > > ./webcamd -d ugen4.1 -i 0 -v 0 > > > > # this will display webcam contents from /dev/video0 by default. > > ./pwcview/pwcview > > > > Feedback and bug reports are welcome. > > > > Yes, I am working on getting this into ports! > > > > Known issues: > > > > 1) If you detach the USB webcam you need to manually restart the webcamd. > > > > --HPS > > > > Support: I will be available at #bsdusb on efnet during the day. > > Seems to work for just a second or two (I see my ugly mug on-screen), > and then this: > > # ./pwcview/pwcview > Webcam set to: 320x240 (sif) at 5 fps > libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits > libv4l2: error converting / decoding frame data: v4l-convert: error > parsing JPEG header: Not a JPG file ? Hi, Maybe this is related to a bug in the recent JPEG library. Try googling. You can also try another mode: webcamd -s vga Or other commands. See webcamd -h . --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 19:36:08 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 9F70F106566B; Sun, 10 Jan 2010 19:36:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.swipnet.se [212.247.155.225]) by mx1.freebsd.org (Postfix) with ESMTP id C8DEE8FC0A; Sun, 10 Jan 2010 19:36:07 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=bHvbTPOMyU9hYO28HoIA:9 a=JZHLitKwCXKyWqNstl2NLEfwOLMA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe16.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 592860710; Sun, 10 Jan 2010 20:36:05 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Sun, 10 Jan 2010 20:34:44 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <179b97fb1001100940o74d5f42arcba36098dd0bdd34@mail.gmail.com> <201001102031.37846.hselasky@c2i.net> In-Reply-To: <201001102031.37846.hselasky@c2i.net> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001102034.44191.hselasky@c2i.net> Cc: Brandon Gooch , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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, 10 Jan 2010 19:36:08 -0000 On Sunday 10 January 2010 20:31:37 Hans Petter Selasky wrote: > > Hi, > > Maybe this is related to a bug in the recent JPEG library. Try googling. > > You can also try another mode: > > webcamd -s vga > > Or other commands. See webcamd -h . s/webcamd/pwcview/ --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 21:42:40 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 D5573106566B; Sun, 10 Jan 2010 21:42:40 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 37CAE8FC19; Sun, 10 Jan 2010 21:42:39 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=s9oXJcMGAAAA:8 a=fMHi8yz-1_XkyEnTe6sA:9 a=HWaGhhp5RJluFD8efIYA:7 a=luS2Ai1JyawaOsb9O0AfMIWCyogA:4 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1159804687; Sun, 10 Jan 2010 22:42:38 +0100 From: Hans Petter Selasky To: Diego Ochoa Tocachi Date: Sun, 10 Jan 2010 22:41:16 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <201001102034.44191.hselasky@c2i.net> <6951cb851001101331k20b47961ve5b037c44a0ca9d7@mail.gmail.com> In-Reply-To: <6951cb851001101331k20b47961ve5b037c44a0ca9d7@mail.gmail.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201001102241.16422.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, Brandon Gooch , freebsd-usb@freebsd.org Subject: Re: [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, 10 Jan 2010 21:42:40 -0000 On Sunday 10 January 2010 22:31:50 Diego Ochoa Tocachi wrote: > 2010/1/10 Hans Petter Selasky freebsd-current not CC'ed. > Hi, > > I was trying this driver with: > > my webcam: > ugen7.2: at usbus7, cfg=0 md=HOST > spd=HIGH (480Mbps) pwr=ON > > my system: > FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 > 21:11:58 UTC 2010 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > amd64 > > When turn on the webcam: > > Jan 10 16:13:25 starkiller root: Unknown USB device: vendor 0x046d product > 0x09b6 bus uhub7 > Jan 10 16:13:25 starkiller kernel: ugen7.2: at usbus7 > > when execute ./webcamd -d ugen7.2 -i 0 -v 0 > Jan 10 16:13:29 starkiller root: Unknown USB device: vendor 0x046d product > 0x09b6 bus uhub7 > > Issues: > > To access /dev/video0 with a no-root user in operator group, I changed > permisions: chmod 0660 /dev/video0 manually > > I can access using pwcview but I cant access from cheese, Do I something to > get this? > > > Thanks for this software, good work!!! > Hi, You're welcome! Some V4L drivers only support mmap and not read and write. To get that working your application must replace open/read/write/close calls by libv4l2 or libv4l1_open/read/write/close calls, and link with libv4l2 or libv4l1. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Sun Jan 10 22:03:55 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 40930106566B; Sun, 10 Jan 2010 22:03:55 +0000 (UTC) (envelope-from diego.ochoat@gmail.com) Received: from mail-fx0-f218.google.com (mail-fx0-f218.google.com [209.85.220.218]) by mx1.freebsd.org (Postfix) with ESMTP id 750928FC13; Sun, 10 Jan 2010 22:03:54 +0000 (UTC) Received: by fxm10 with SMTP id 10so7289796fxm.14 for ; Sun, 10 Jan 2010 14:03:47 -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 :from:date:message-id:subject:to:cc:content-type; bh=vfmy/Br+FSUphIqrJFkHakDVsQOu28siXKtJle/JBL4=; b=QyGdq6xFZly5N9IMMC0qffV+V7upNzmOm1CMi11XK38pfEq0xAKumfncPKf/c0cMHp hnQxgsvUTW379NCRa3xZfYJul+on7oes2Z/ds1AjYwrqZBQ6lIaFA5iv9h0SNOGzlSfT rwlzXvwBF4QPOkWl2G6riM5+hDfeiV/JVTSNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=QwJ1XKqhfBHDrdnPJwbMCjRlQmGjrObxTP0HDJ7Xe5nE/9ogCpb0/oSdpp5kqeZWUs 8/mJcIi+HHsa/92TMZDBWl1SfXmH9LtY+6ku08EzkS+QzxV6RvXywLGZXRSs7snDszIQ 5VdLskvtWCAPc2rI9JoNCB37AZgEOOKIFEibU= MIME-Version: 1.0 Received: by 10.239.159.146 with SMTP id y18mr829029hbc.196.1263159130107; Sun, 10 Jan 2010 13:32:10 -0800 (PST) In-Reply-To: <201001102034.44191.hselasky@c2i.net> References: <201001101437.37269.hselasky@c2i.net> <179b97fb1001100940o74d5f42arcba36098dd0bdd34@mail.gmail.com> <201001102031.37846.hselasky@c2i.net> <201001102034.44191.hselasky@c2i.net> From: Diego Ochoa Tocachi Date: Sun, 10 Jan 2010 16:31:50 -0500 Message-ID: <6951cb851001101331k20b47961ve5b037c44a0ca9d7@mail.gmail.com> To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia@freebsd.org, Brandon Gooch , freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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, 10 Jan 2010 22:03:55 -0000 2010/1/10 Hans Petter Selasky > On Sunday 10 January 2010 20:31:37 Hans Petter Selasky wrote: > > > > Hi, > > > > Maybe this is related to a bug in the recent JPEG library. Try googling. > > > > You can also try another mode: > > > > webcamd -s vga > > > > Or other commands. See webcamd -h . > > s/webcamd/pwcview/ > > --HPS > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to " > freebsd-multimedia-unsubscribe@freebsd.org" > Hi, I was trying this driver with: my webcam: ugen7.2: at usbus7, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON my system: FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 When turn on the webcam: Jan 10 16:13:25 starkiller root: Unknown USB device: vendor 0x046d product 0x09b6 bus uhub7 Jan 10 16:13:25 starkiller kernel: ugen7.2: at usbus7 when execute ./webcamd -d ugen7.2 -i 0 -v 0 Jan 10 16:13:29 starkiller root: Unknown USB device: vendor 0x046d product 0x09b6 bus uhub7 Issues: To access /dev/video0 with a no-root user in operator group, I changed permisions: chmod 0660 /dev/video0 manually I can access using pwcview but I cant access from cheese, Do I something to get this? Thanks for this software, good work!!! -- Diego Ochoa - darkbalder Luis Pasteur 2-30 y Copernico Telf: +593 7 4082144 Porta: 090085391 Cuenca - Ecuador From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 03:25:14 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 8FD4B106566B for ; Mon, 11 Jan 2010 03:25:14 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.8]) by mx1.freebsd.org (Postfix) with ESMTP id 262218FC14 for ; Mon, 11 Jan 2010 03:25:13 +0000 (UTC) Received: from vampire.homelinux.org (dslb-088-066-024-221.pools.arcor-ip.net [88.66.24.221]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LeSUf-1OFck646qj-00qlXA; Mon, 11 Jan 2010 04:25:12 +0100 Received: (qmail 57556 invoked from network); 11 Jan 2010 03:25:11 -0000 Received: from f8x64.laiers.local (192.168.4.188) by ns1.laiers.local with SMTP; 11 Jan 2010 03:25:11 -0000 From: Max Laier Organization: FreeBSD To: freebsd-multimedia@freebsd.org Date: Mon, 11 Jan 2010 04:25:11 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-RELEASE; KDE/4.3.4; amd64; ; ) References: <200912300341.51287.max@love2party.net> In-Reply-To: <200912300341.51287.max@love2party.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201001110425.11552.max@love2party.net> X-Provags-ID: V01U2FsdGVkX18yivHoUqbeib+8UF/55qb6I4RLg37ugVgPrbJ BIgIxCyF9+Ag9yvb/D/yFy9GPxGqIpXMFwl1MHtaHbiOeLX+6a KFo7KhneXOrpeUfuQeciw== Subject: Re: WIP: DVB-C support 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: Mon, 11 Jan 2010 03:25:14 -0000 Okay ... small update in case anyone is interested: http://people.freebsd.org/~mlaier/mantis.20100111.tgz this now works on amd64 thanks to the new facilities that came of the NVidia amd64 support efforts. It turns out that the userland buffer mapping was not working as well as it should have. Read: It was broken with bounce buffers. Instead I moved to a kernel buffer that can be mapped to userland instead. This, however, is rather heavy on KVA space (16MB+some in the default configuration), but it works for me[tm]. The userland tools still don't do anything useful. vp2040 dumps the transponder @362Mhz/QAM256 (where I have a HD program to test with). You can alter this to your provider by looking for tda10023_set_params in the source. multimedia/vlc is happy to play the dump (most of the times). "new_cap -s" lets you scan for available programs in the frequencies provided in "freq.de" which list all the DVB-C frequencies in germany, at the moment. In any case ... I'll be hacking on this some more and hope to have a proper DVB-C PVR suite, if anyone is interested in joining the effort - please let me know! Regards, -- Max From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 11:07:04 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 CE5BE10656A3 for ; Mon, 11 Jan 2010 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B4DA68FC2D for ; Mon, 11 Jan 2010 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o0BB74X4034726 for ; Mon, 11 Jan 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o0BB74lh034724 for freebsd-multimedia@FreeBSD.org; Mon, 11 Jan 2010 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Jan 2010 11:07:04 GMT Message-Id: <201001111107.o0BB74lh034724@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-multimedia@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-multimedia@FreeBSD.org 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: Mon, 11 Jan 2010 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ports/142522 multimedia [patch] audio/libsndfile upgrade 1.0.20 to 1.0.21 o kern/141826 multimedia [snd_hda] load of snd_hda module fails o ports/140999 multimedia [PATCH] audio/wavpack: update to 4.60.0, take maintain o ports/140865 multimedia [PATCH] multimedia/x264: update to 0.0.20091124 o kern/140591 multimedia [PATCH][sound] No sound output on lineout/headphone ja o kern/140453 multimedia [sound] No sound inside Virtualbox on 50% volume o ports/139071 multimedia multimedia/x264 does not link on 8-RC1 o ports/138213 multimedia Apply SqueezeCenter patches to audio/faad that enable o kern/137589 multimedia [snd_uaudio] snd_uaudio.ko (USB audio driver) doesn't o kern/134767 multimedia [sound] [snd_hda] [regression] Sigmatel STAC9205X no s o ports/133462 multimedia multimedia/x264 build fails on powerpc o kern/132848 multimedia [sound] [snd_emu10kx] driver problem with card init, s o kern/132511 multimedia [sound] [snd_hda] Probing ALC888 codec on ASRock K10N7 o kern/129604 multimedia [sound] Sound stops with error: pcm0:virtual:dsp0.vp0: o kern/127131 multimedia [bktr] /usr/src/sys/dev/bktr/bktr_os.c, line 469: wron o ports/127084 multimedia multimedia/linux-realplayer is vulnerable s kern/125756 multimedia [sound] [patch] cannot detect soft-modem on HDA bus o kern/124319 multimedia [sound] [snd_emu10k1] [regression] Cannot record from o kern/122086 multimedia [sound] maestro sound driver is working, but mixer ini p kern/121156 multimedia [sound] [patch] Turn on inverted external amplifier se o kern/120857 multimedia [sound] [snd_emu10k1] snd_emu10k1 driver issues a warn o kern/120780 multimedia [sound] [snd_hda] snd_hda doesn't work on Dell Latitut o kern/119973 multimedia [sound] [snd_maestro] [regression] snd_maestro only wo o kern/119931 multimedia [sound] No sound card detected on ASUS "K8V-X SE R2.00 o kern/119759 multimedia [sound] [snd_emu10k1] [regression] Can not record anyt f kern/115666 multimedia [sound] Microphone does not work o kern/115300 multimedia [sound] [snd_hda] [regression] snd_hda(4) fails to att o kern/114760 multimedia [sound] [snd_cmi] snd_cmi driver causing sporadic syst s kern/113950 multimedia [sound] [patch] [request] add per-vchan mixer support o kern/111767 multimedia [sound] ATI SB450 High Definition Audio Controller sou o kern/107516 multimedia [sound] [snd_emu10k1] - skips, clicks and lag after a o kern/107051 multimedia [sound] only 2 channels output works for the ALC850 (o o kern/104874 multimedia [sound] [snd_emu10k1] kldload snd_emu10k1 hangs system o kern/104626 multimedia [sound] FreeBSD 6.2 does not support SoundBlaster Audi o kern/101417 multimedia [sound] 4-speakers output not possible on Asus A8V-Del o kern/100859 multimedia [sound] [snd_ich] snd_ich broken on GIGABYTE 915 syste o kern/98752 multimedia [sound] Intel ich6 82801 FB - on Packard Bell A8810 la o kern/98504 multimedia [sound] Sound is distorted with SB Live 5.1 o kern/98496 multimedia [sound] [snd_ich] some functions don't work in my soun o kern/98167 multimedia [sound] [es137x] [patch] ES1370 mixer volumes incorrec o kern/97609 multimedia [sound] Load Sound Module - VIA8233 - fails o kern/97535 multimedia [sound] [snd_mss] doesn't work in 6.0-RELEASE and abov o kern/96538 multimedia [sound] emu10k1-driver inverts channels o kern/95086 multimedia [sound] uaudio line in problem with sbdm lx o kern/94279 multimedia [sound] [snd_neomagic] snd_neomagic crashes on FreeBSD o kern/93986 multimedia [sound] Acer TravelMate 4652LMi pcm0 channel dead o kern/92512 multimedia [sound] distorted mono output with emu10k1 o kern/87782 multimedia [sound] snd_t4dwave and pcm0:record:0: record interrup s kern/83697 multimedia [sound] [snd_mss] [patch] support, docs added for full o kern/82043 multimedia [sound] snd_emu10k1 - mixer does not work. o kern/81146 multimedia [sound] Sound isn't working AT ALL for Sis7012 onboard o kern/80632 multimedia [sound] pcm driver missing support for CMI8738 auxilla o kern/79912 multimedia [sound] sound broken for 2 VIA chipsets: interrupt sto o kern/79905 multimedia [sound] sis7018 sound module problem o kern/79678 multimedia [sound] sound works except recording from any source f kern/72995 multimedia [sound] Intel ICH2 (82801BA) - sound nearly inaudible o kern/63204 multimedia [sound] /dev/mixer broken with ESS Maestro-2E (still o o kern/60677 multimedia [sound] [patch] No reaction of volume controy key on I s kern/60599 multimedia [bktr] [partial patch] No sound for ATI TV Wonder (ste o kern/37600 multimedia [sound] [partial patch] t4dwave drive doesn't record. o kern/23546 multimedia [sound] [snd_csa] [patch] csa DMA-interrupt problem 61 problems total. From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 12:58:27 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 A6A981065698; Mon, 11 Jan 2010 12:58:27 +0000 (UTC) (envelope-from avl@logvinov.com) Received: from mail-pz0-f202.google.com (mail-pz0-f202.google.com [209.85.222.202]) by mx1.freebsd.org (Postfix) with ESMTP id 787DD8FC32; Mon, 11 Jan 2010 12:58:27 +0000 (UTC) Received: by pzk40 with SMTP id 40so428244pzk.7 for ; Mon, 11 Jan 2010 04:58:22 -0800 (PST) Received: by 10.143.20.39 with SMTP id x39mr2563200wfi.213.1263213258439; Mon, 11 Jan 2010 04:34:18 -0800 (PST) Received: from incubus.bsd ([124.64.17.196]) by mx.google.com with ESMTPS id 23sm249018pzk.0.2010.01.11.04.34.14 (version=SSLv3 cipher=RC4-MD5); Mon, 11 Jan 2010 04:34:17 -0800 (PST) Message-ID: <4B4B1AEE.6030303@logvinov.com> Date: Mon, 11 Jan 2010 20:34:54 +0800 From: Alexander Logvinov User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.9.1.5) Gecko/20091224 Thunderbird/3.0 MIME-Version: 1.0 To: Hans Petter Selasky References: <201001101437.37269.hselasky@c2i.net> In-Reply-To: <201001101437.37269.hselasky@c2i.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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: Mon, 11 Jan 2010 12:58:27 -0000 Hello! On 10.01.2010 21:37 Hans Petter Selasky wrote: > # this will display webcam contents from /dev/video0 by default. > ./pwcview/pwcview > Feedback and bug reports are welcome. As you know I get a black window when I test my webcam under skype. Here is skype output after pressing "Test" button: $ skype Starting the process... Skype Xv: Xv ports available: 32 Skype XShm: XShm support enabled Skype Xv: Using Xv port 304 $ xvinfo X-Video Extension version 2.2 screen #0 Adaptor #0: "NV17 Video Texture" number of ports: 32 port base: 304 operations supported: PutImage supported visuals: depth 24, visualID 0x21 depth 24, visualID 0x24 depth 24, visualID 0x25 depth 24, visualID 0x26 depth 24, visualID 0x27 depth 24, visualID 0x28 depth 24, visualID 0x29 depth 24, visualID 0x2a depth 24, visualID 0x2b depth 24, visualID 0x2c depth 24, visualID 0x2d depth 24, visualID 0x2e depth 24, visualID 0x2f depth 24, visualID 0x30 depth 24, visualID 0x31 depth 24, visualID 0x32 depth 24, visualID 0x33 depth 24, visualID 0x34 depth 24, visualID 0x35 depth 24, visualID 0x36 depth 24, visualID 0x37 depth 24, visualID 0x38 depth 24, visualID 0x39 depth 24, visualID 0x3a depth 24, visualID 0x3b depth 24, visualID 0x3c depth 24, visualID 0x3d depth 24, visualID 0x3e depth 24, visualID 0x22 depth 24, visualID 0x3f depth 24, visualID 0x40 depth 24, visualID 0x41 depth 24, visualID 0x42 depth 24, visualID 0x43 depth 24, visualID 0x44 depth 24, visualID 0x45 depth 24, visualID 0x46 depth 24, visualID 0x47 depth 24, visualID 0x48 depth 24, visualID 0x49 depth 24, visualID 0x4a depth 24, visualID 0x4b depth 24, visualID 0x4c depth 24, visualID 0x4d depth 24, visualID 0x4e depth 24, visualID 0x4f depth 24, visualID 0x50 depth 24, visualID 0x51 depth 24, visualID 0x52 depth 24, visualID 0x53 depth 24, visualID 0x54 depth 24, visualID 0x55 depth 24, visualID 0x56 depth 24, visualID 0x57 depth 24, visualID 0x58 depth 24, visualID 0x59 number of attributes: 7 "XV_SET_DEFAULTS" (range 0 to 0) client settable attribute "XV_ITURBT_709" (range 0 to 1) client settable attribute client gettable attribute (current value is 0) "XV_SYNC_TO_VBLANK" (range 0 to 1) client settable attribute client gettable attribute (current value is 1) "XV_BRIGHTNESS" (range -1000 to 1000) client settable attribute client gettable attribute (current value is 0) "XV_CONTRAST" (range -1000 to 1000) client settable attribute client gettable attribute (current value is 0) "XV_SATURATION" (range -1000 to 1000) client settable attribute client gettable attribute (current value is 0) "XV_HUE" (range -1000 to 1000) client settable attribute client gettable attribute (current value is 0) maximum XvImage size: 2046 x 2046 Number of image formats: 4 id: 0x32595559 (YUY2) guid: 59555932-0000-0010-8000-00aa00389b71 bits per pixel: 16 number of planes: 1 type: YUV (packed) id: 0x32315659 (YV12) guid: 59563132-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar) id: 0x59565955 (UYVY) guid: 55595659-0000-0010-8000-00aa00389b71 bits per pixel: 16 number of planes: 1 type: YUV (packed) id: 0x30323449 (I420) guid: 49343230-0000-0010-8000-00aa00389b71 bits per pixel: 12 number of planes: 3 type: YUV (planar) -- Best regards, Alexander From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 14:10:08 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 7ABCD10656A6; Mon, 11 Jan 2010 14:10:08 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe03.swip.net [212.247.154.65]) by mx1.freebsd.org (Postfix) with ESMTP id A37CA8FC2B; Mon, 11 Jan 2010 14:10:07 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=6I5d2MoRAAAA:8 a=X-lO3BfsBrjuG197QLgA:9 a=USP0va0vB4EJfRrJIlYA:7 a=Y4VqhwGM0vQ0CsMkNqlX3hJJ4kwA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe03.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1375551729; Mon, 11 Jan 2010 15:10:05 +0100 To: freebsd-current@freebsd.org From: Hans Petter Selasky X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' Date: Mon, 11 Jan 2010 15:08:43 +0100 MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201001111508.43054.hselasky@c2i.net> Cc: Brandon Gooch , freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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: Mon, 11 Jan 2010 14:10:08 -0000 On Sunday 10 January 2010 18:40:17 Brandon Gooch wrote: > > Seems to work for just a second or two (I see my ugly mug on-screen), > and then this: > > # ./pwcview/pwcview > Webcam set to: 320x240 (sif) at 5 fps > libv4lconvert: Error decompressing JPEG: fill_nbits error: need 8 more bits > libv4l2: error converting / decoding frame data: v4l-convert: error > parsing JPEG header: Not a JPG file ? Hi again, The JPEG library fix is here: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/137265 Try to "svn up" and build fresh sources. I've found and fixed some bugs. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 14:12:03 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 BD44C1065694; Mon, 11 Jan 2010 14:12:03 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swipnet.se [212.247.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id E82358FC19; Mon, 11 Jan 2010 14:12:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=7KZefr12wtmtx32E0FoA:9 a=DgJNKD7aNYfH0h5Lca0A:7 a=yQV50vrG0goMOEKuRQQsep7FRroA:4 a=rzs1n4TGqUd9ot9l:21 a=PGL2u1ETFjxax6se:21 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe13.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 977040326; Mon, 11 Jan 2010 15:12:01 +0100 From: Hans Petter Selasky To: Alexander Logvinov Date: Mon, 11 Jan 2010 15:10:39 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <4B4B1AEE.6030303@logvinov.com> In-Reply-To: <4B4B1AEE.6030303@logvinov.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201001111510.39307.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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: Mon, 11 Jan 2010 14:12:03 -0000 On Monday 11 January 2010 13:34:54 Alexander Logvinov wrote: > Hello! > > On 10.01.2010 21:37 Hans Petter Selasky wrote: > > # this will display webcam contents from /dev/video0 by default. > > ./pwcview/pwcview > > Feedback and bug reports are welcome. > > As you know I get a black window when I test my webcam under skype. > Here is skype output after pressing "Test" button: > > $ skype > Starting the process... > Skype Xv: Xv ports available: 32 > Skype XShm: XShm support enabled > Skype Xv: Using Xv port 304 > > $ xvinfo > X-Video Extension version 2.2 > screen #0 > Adaptor #0: "NV17 Video Texture" > number of ports: 32 > port base: 304 > operations supported: PutImage > supported visuals: > depth 24, visualID 0x21 > depth 24, visualID 0x24 > depth 24, visualID 0x25 > depth 24, visualID 0x26 > depth 24, visualID 0x27 > depth 24, visualID 0x28 > depth 24, visualID 0x29 > depth 24, visualID 0x2a > depth 24, visualID 0x2b > depth 24, visualID 0x2c > depth 24, visualID 0x2d > depth 24, visualID 0x2e > depth 24, visualID 0x2f > depth 24, visualID 0x30 > depth 24, visualID 0x31 > depth 24, visualID 0x32 > depth 24, visualID 0x33 > depth 24, visualID 0x34 > depth 24, visualID 0x35 > depth 24, visualID 0x36 > depth 24, visualID 0x37 > depth 24, visualID 0x38 > depth 24, visualID 0x39 > depth 24, visualID 0x3a > depth 24, visualID 0x3b > depth 24, visualID 0x3c > depth 24, visualID 0x3d > depth 24, visualID 0x3e > depth 24, visualID 0x22 > depth 24, visualID 0x3f > depth 24, visualID 0x40 > depth 24, visualID 0x41 > depth 24, visualID 0x42 > depth 24, visualID 0x43 > depth 24, visualID 0x44 > depth 24, visualID 0x45 > depth 24, visualID 0x46 > depth 24, visualID 0x47 > depth 24, visualID 0x48 > depth 24, visualID 0x49 > depth 24, visualID 0x4a > depth 24, visualID 0x4b > depth 24, visualID 0x4c > depth 24, visualID 0x4d > depth 24, visualID 0x4e > depth 24, visualID 0x4f > depth 24, visualID 0x50 > depth 24, visualID 0x51 > depth 24, visualID 0x52 > depth 24, visualID 0x53 > depth 24, visualID 0x54 > depth 24, visualID 0x55 > depth 24, visualID 0x56 > depth 24, visualID 0x57 > depth 24, visualID 0x58 > depth 24, visualID 0x59 > number of attributes: 7 > "XV_SET_DEFAULTS" (range 0 to 0) > client settable attribute > "XV_ITURBT_709" (range 0 to 1) > client settable attribute > client gettable attribute (current value is 0) > "XV_SYNC_TO_VBLANK" (range 0 to 1) > client settable attribute > client gettable attribute (current value is 1) > "XV_BRIGHTNESS" (range -1000 to 1000) > client settable attribute > client gettable attribute (current value is 0) > "XV_CONTRAST" (range -1000 to 1000) > client settable attribute > client gettable attribute (current value is 0) > "XV_SATURATION" (range -1000 to 1000) > client settable attribute > client gettable attribute (current value is 0) > "XV_HUE" (range -1000 to 1000) > client settable attribute > client gettable attribute (current value is 0) > maximum XvImage size: 2046 x 2046 > Number of image formats: 4 > id: 0x32595559 (YUY2) > guid: 59555932-0000-0010-8000-00aa00389b71 > bits per pixel: 16 > number of planes: 1 > type: YUV (packed) > id: 0x32315659 (YV12) > guid: 59563132-0000-0010-8000-00aa00389b71 > bits per pixel: 12 > number of planes: 3 > type: YUV (planar) > id: 0x59565955 (UYVY) > guid: 55595659-0000-0010-8000-00aa00389b71 > bits per pixel: 16 > number of planes: 1 > type: YUV (packed) > id: 0x30323449 (I420) > guid: 49343230-0000-0010-8000-00aa00389b71 > bits per pixel: 12 > number of planes: 3 > type: YUV (planar) Hi, Try to define V4B_DEBUG in top of webcamd.c and recompile the program. What is printed when skype is started by webcamd? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 21:16:46 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 9ED871065670; Mon, 11 Jan 2010 21:16:46 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.freebsd.org (Postfix) with ESMTP id CF2598FC13; Mon, 11 Jan 2010 21:16:45 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=RYQgPGQ7BbsA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=kRccK-SBt_Mvd50vztIA:9 a=JDughqzA_pw9HdAhRCrh0vOk1ioA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1327425081; Mon, 11 Jan 2010 22:16:43 +0100 From: Hans Petter Selasky To: vova@fbsd.ru Date: Mon, 11 Jan 2010 22:15:22 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <201001101437.37269.hselasky@c2i.net> <1263244252.3558.29.camel@localhost> In-Reply-To: <1263244252.3558.29.camel@localhost> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <201001112215.22702.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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: Mon, 11 Jan 2010 21:16:46 -0000 On Monday 11 January 2010 22:10:52 Vladimir Grebenschikov wrote: > Side question, is it possible to use audio microphone of USB camera ? > Yes, if you kldload snd_uaudio. --HPS From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 21:42:42 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 C80A01065670; Mon, 11 Jan 2010 21:42:42 +0000 (UTC) (envelope-from vova@parallels.com) Received: from relay.sw.ru (mailhub.sw.ru [195.214.232.25]) by mx1.freebsd.org (Postfix) with ESMTP id 38C688FC1D; Mon, 11 Jan 2010 21:42:41 +0000 (UTC) Received: from vbook.fbsd.ru ([77.232.23.6]) (authenticated bits=0) by relay.sw.ru (8.13.4/8.13.4) with ESMTP id o0BLArHx012820 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2010 00:10:54 +0300 (MSK) Received: from vova by vbook.fbsd.ru with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1NURXI-0001JN-I5; Tue, 12 Jan 2010 00:10:52 +0300 From: Vladimir Grebenschikov To: Hans Petter Selasky In-Reply-To: <201001101437.37269.hselasky@c2i.net> References: <201001101437.37269.hselasky@c2i.net> Content-Type: text/plain; charset="KOI8-R" Content-Transfer-Encoding: quoted-printable Date: Tue, 12 Jan 2010 00:10:52 +0300 Message-ID: <1263244252.3558.29.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.2 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vova@fbsd.ru List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jan 2010 21:42:43 -0000 Hi=20 Thanks you for efforts! I've tested it with=20 ugen4.2: at usbus4, cfg=3D0 md=3DHOST spd=3DH= IGH (480Mbps) pwr=3DON on 9-CURRENT pwcview works fine: $ ./pwcview/pwcview Webcam set to: 320x240 (sif) at 5 fps skype detects video device, but shows only black window instead of picture. build webcamd.c with debug shows: $ ./webcamd Probing for 0.0.0 KrefGet: 0x483e2304 =3D 1 KrefGet: 0x483e2304 =3D 2 KrefGet: 0x483e2554 =3D 1 KrefGet: 0x483e2610 =3D 1 Added device 0x48318b04 KrefGet: 0x48318b08 =3D 1 Received command 1 0x00000000 KrefGet: 0x48318b08 =3D 2 Status =3D 0 Received command 5 0x40047601 Status =3D -22 Received command 5 0x403c7601 Status =3D 0 Received command 5 0x400e7606 Status =3D 0 Received command 5 0x800e7607 Status =3D -22 Received command 5 0x800e7607 Status =3D 0 Received command 5 0x40207609 Status =3D 0 Received command 5 0x8020760a Status =3D 0 ... and then in loop: Status =3D -22 Received command 3 0x00025800 Status =3D -22 Received command 3 0x00025800 Status =3D -22 Received command 3 0x00025800 Status =3D -22 Received command 3 0x00025800 Status =3D -22 Received command 3 0x00025800 ... Side question, is it possible to use audio microphone of USB camera ? -----Original Message----- From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: [FreeBSD 8/9] USB webcamd and video4bsd: Call for testing Date: Sun, 10 Jan 2010 14:37:37 +0100 Hi, During the last couple of days I've spent some time to finish my webcam=20 daemon. My webcam daemon is basically an application which consists of=20 userspace Video4Linux USB webcam drivers and some uLinux glue code which li= nks=20 with libc, pthreads and libusb. The webcamd talks to /dev/video_daemonX whi= ch=20 is provided by the video4bsd kernel module. There is full support for=20 mmap/read/write/open/close. poll is not supported. Basic operation and idea: /dev/video_daemonX is the interface for the webcamd. /dev/videoX is the=20 interface for the V4L application. The video4bsd transports all data betwee= n=20 these two devices. In the case the V4L application is using mmap, no data i= s=20 copied due to shared kernel memory buffer! Licensing issues: Effectivly the webcamd userland program becomes GPL'ed due to the V4L USB=20 drivers which are GPL licensed. Some files inside the webcamd remains BSD=20 licensed which allows for building similar BSD licensed daemons. The rest of the code is BSD licensed. Source code: 1) FreeBSD 8-stable 2) Apply the patch below and re-install libusb in /usr/src/lib/libusb: http://p4web.freebsd.org/chv.cgi?CH=3D172876 http://perforce.freebsd.org/chv.cgi?CH=3D172876 3) Compile ulinux (webcamd + libv4l + pwcview) and video4bsd (must be check= ed=20 out in the same folder due to dependencies) svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/video4bsd make all install kldload video4bsd svn --username anonsvn --password anonsvn \ checkout svn://svn.turbocat.net/i4b/trunk/usbcam/ulinux make fetch make patch make all make install # this will attach to the first detected webcam: ./webcamd # this will try to attach to the given USB unit, interface and V4B unit. ./webcamd -d ugen4.1 -i 0 -v 0 # this will display webcam contents from /dev/video0 by default. ./pwcview/pwcview Feedback and bug reports are welcome. Yes, I am working on getting this into ports! Known issues: 1) If you detach the USB webcam you need to manually restart the webcamd. --HPS 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 Vladimir B. Grebenschikov vova@fbsd.ru From owner-freebsd-multimedia@FreeBSD.ORG Mon Jan 11 22:30:32 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 AF0271065693; Mon, 11 Jan 2010 22:30:32 +0000 (UTC) (envelope-from sklauder@trimind.de) Received: from mikako.shopkeeper.de (mikako.shopkeeper.de [82.119.175.20]) by mx1.freebsd.org (Postfix) with ESMTP id 3624C8FC14; Mon, 11 Jan 2010 22:30:31 +0000 (UTC) Received: from avalon.dobu.local (p4FF4783B.dip.t-dialin.net [79.244.120.59]) (authenticated bits=0) by mikako.shopkeeper.de (8.14.3/8.14.3) with ESMTP id o0BLqO26037388 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 11 Jan 2010 22:52:27 +0100 (CET) (envelope-from sklauder@trimind.de) Received: from avalon.dobu.local (localhost [127.0.0.1]) by avalon.dobu.local (8.14.3/8.14.2) with ESMTP id o0BLqO9P029432; Mon, 11 Jan 2010 22:52:24 +0100 (CET) (envelope-from sklauder@avalon.dobu.local) Received: (from sklauder@localhost) by avalon.dobu.local (8.14.3/8.14.3/Submit) id o0BLqNGK029431; Mon, 11 Jan 2010 22:52:23 +0100 (CET) (envelope-from sklauder) Date: Mon, 11 Jan 2010 22:52:23 +0100 From: Sascha Klauder To: Hans Petter Selasky Message-ID: <20100111215223.GA69823@trimind.de> References: <201001101437.37269.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201001101437.37269.hselasky@c2i.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at mikako.shopkeeper.de X-Virus-Status: Clean Cc: freebsd-multimedia@freebsd.org, freebsd-current@freebsd.org, freebsd-usb@freebsd.org Subject: Re: [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: Mon, 11 Jan 2010 22:30:32 -0000 On Sun, Jan 10, 2010 at 02:37:37PM +0100, Hans Petter Selasky wrote: > 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. There is full support for > mmap/read/write/open/close. poll is not supported. Tested and working fine so far (I've only checked the bundled pwcview application) with the builtin webcam of an Acer Aspire One 531: ugen4.2: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON > Feedback and bug reports are welcome. Thank you! Cheers, -sascha From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 07:07:11 2010 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 AF497106566C; Tue, 12 Jan 2010 07:07:11 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms4-1.1blu.de (ms4-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 3E11E8FC12; Tue, 12 Jan 2010 07:07:10 +0000 (UTC) Received: from [93.104.103.161] (helo=current.Sisis.de) by ms4-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1NUaq3-0001ho-SS; Tue, 12 Jan 2010 08:06:58 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o0C76lUp002783; Tue, 12 Jan 2010 08:06:52 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o0C76iKv002782; Tue, 12 Jan 2010 08:06:44 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Tue, 12 Jan 2010 08:06:44 +0100 From: Matthias Apitz To: "J.R. Oldroyd" Message-ID: <20100112070644.GA2667@current.Sisis.de> References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091205140927.2b47e0f3@shibato.opal.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 93.104.103.161 Cc: emulation@freebsd.org, Alexander Leidinger , multimedia@freebsd.org Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 07:07:11 -0000 El día Saturday, December 05, 2009 a las 02:09:27PM -0500, J.R. Oldroyd escribió: > On Fri, 4 Dec 2009 22:31:26 +0100, Alexander Leidinger wrote: > > > > Hi, > > > > in case someone wants to use skype (or flash) with his webcam: it is > > possible now in -current (works at least with multimedia/pwcbsd). > > > > No MFC planned yet. The more you test, the more likely it will be that > > it will be MFCed sooner than later. > > > > Bye, > > Alexander. > > Thanks for committing this, Alexander. > > A couple of notes. > > 1. This code does work on 8.0 and 7.2. If you are interested in > testing on those systems, you can fetch the files at the URL > below. > > 2. The version committed does not contain support for a video > clip list (in the VIDIOCSWIN ioctl). This is not a problem > for the Linux skype port or browser-based flash camera apps > since these do not use video clipping. > > I have added video clip list support in the version on my > site, below, however there are some caveats which are > documented on the web page. If you are familiar with the use > of a V4L video clip list, please take a look at the URL below > and send feedback. > > The latest version is at: > http://opal.com/freebsd/sys/compat/linux/ > > My testing is with a pwc(4) based webcam (in the multimedia/pwc > port). This driver has V4L support. If you test with any other > driver, please do send feedback. Alexander and jr, Thanks for your work! Having this support now in FreeBSD for my multimedia/pwcbsd based cam in Skype, I'd like to have the same for the cam in my EeePC 900, about which Linux says: [ 11.540000] Linux video capture interface: v2.00 [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) [ 11.690000] usbcore: registered new interface driver uvcvideo [ 11.690000] USB Video Class driver (SVN r2008.02.27) Any chance to get this supported in the future? Thanks again matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 08:25:04 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 2CB62106568B; Tue, 12 Jan 2010 08:25:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.tele2.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 2219A8FC16; Tue, 12 Jan 2010 08:25:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4vW0rCAk17MA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=jAMlq-imAAAA:8 a=qFBk1GSMAAAA:8 a=VbhuPliJpFkkV1ub0WcA:9 a=hLwmPudgEJdec8gVCx0A:7 a=NXLYtPXtXLIgFsnJeS5jS1Qy8usA:4 a=xraHq2XsALYA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 623635773; Tue, 12 Jan 2010 09:25:00 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Tue, 12 Jan 2010 09:23:38 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> <20100112070644.GA2667@current.Sisis.de> In-Reply-To: <20100112070644.GA2667@current.Sisis.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201001120923.38871.hselasky@c2i.net> Cc: emulation@freebsd.org, Alexander Leidinger , "J.R. Oldroyd" , multimedia@freebsd.org Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 08:25:04 -0000 On Tuesday 12 January 2010 08:06:44 Matthias Apitz wrote: > El d=EDa Saturday, December 05, 2009 a las 02:09:27PM -0500, J.R. Oldroyd= =20 escribi=F3: > > On Fri, 4 Dec 2009 22:31:26 +0100, Alexander Leidinger=20 wrote: > > > Hi, > > > > > > in case someone wants to use skype (or flash) with his webcam: it is > > > possible now in -current (works at least with multimedia/pwcbsd). > > > > > > No MFC planned yet. The more you test, the more likely it will be that > > > it will be MFCed sooner than later. > > > > > > Bye, > > > Alexander. > > > > Thanks for committing this, Alexander. > > > > A couple of notes. > > > > 1. This code does work on 8.0 and 7.2. If you are interested in > > testing on those systems, you can fetch the files at the URL > > below. > > > > 2. The version committed does not contain support for a video > > clip list (in the VIDIOCSWIN ioctl). This is not a problem > > for the Linux skype port or browser-based flash camera apps > > since these do not use video clipping. > > > > I have added video clip list support in the version on my > > site, below, however there are some caveats which are > > documented on the web page. If you are familiar with the use > > of a V4L video clip list, please take a look at the URL below > > and send feedback. > > > > The latest version is at: > > http://opal.com/freebsd/sys/compat/linux/ > > > > My testing is with a pwc(4) based webcam (in the multimedia/pwc > > port). This driver has V4L support. If you test with any other > > driver, please do send feedback. >=20 > Alexander and jr, >=20 > Thanks for your work! Having this support now in FreeBSD for my > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the c= am > in my EeePC 900, about which Linux says: >=20 > [ 11.540000] Linux video capture interface: v2.00 > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) > [ 11.690000] usbcore: registered new interface driver uvcvideo > [ 11.690000] USB Video Class driver (SVN r2008.02.27) >=20 Hi, > Any chance to get this supported in the future? Right now that driver is available from the webcamd package announced earli= er=20 this week, though not BSD licensed. I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up by = the=20 linux_ioctl.c ! Any fix for this? =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 08:25:04 2010 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 2CB62106568B; Tue, 12 Jan 2010 08:25:04 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe15.tele2.se [212.247.155.193]) by mx1.freebsd.org (Postfix) with ESMTP id 2219A8FC16; Tue, 12 Jan 2010 08:25:02 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4vW0rCAk17MA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=jAMlq-imAAAA:8 a=qFBk1GSMAAAA:8 a=VbhuPliJpFkkV1ub0WcA:9 a=hLwmPudgEJdec8gVCx0A:7 a=NXLYtPXtXLIgFsnJeS5jS1Qy8usA:4 a=xraHq2XsALYA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe15.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 623635773; Tue, 12 Jan 2010 09:25:00 +0100 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org, Matthias Apitz Date: Tue, 12 Jan 2010 09:23:38 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> <20100112070644.GA2667@current.Sisis.de> In-Reply-To: <20100112070644.GA2667@current.Sisis.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'( =?iso-8859-1?q?=3B=5FIjlA=3A=0A=09hGE=2E=2EEw?=, =?iso-8859-1?q?XAQ*o=23=5C/M=7ESC=3DS1-f9=7BEzRfT=27=7CHhll5Q=5Dha5Bt-s=7Co?= =?iso-8859-1?q?TlKMusi=3A1e=5BwJl=7Dkd=7DGR=0A=09Z0adGx-x=5F0zGbZj=27e?=(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201001120923.38871.hselasky@c2i.net> Cc: emulation@freebsd.org, Alexander Leidinger , "J.R. Oldroyd" , multimedia@freebsd.org Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 08:25:04 -0000 On Tuesday 12 January 2010 08:06:44 Matthias Apitz wrote: > El d=EDa Saturday, December 05, 2009 a las 02:09:27PM -0500, J.R. Oldroyd= =20 escribi=F3: > > On Fri, 4 Dec 2009 22:31:26 +0100, Alexander Leidinger=20 wrote: > > > Hi, > > > > > > in case someone wants to use skype (or flash) with his webcam: it is > > > possible now in -current (works at least with multimedia/pwcbsd). > > > > > > No MFC planned yet. The more you test, the more likely it will be that > > > it will be MFCed sooner than later. > > > > > > Bye, > > > Alexander. > > > > Thanks for committing this, Alexander. > > > > A couple of notes. > > > > 1. This code does work on 8.0 and 7.2. If you are interested in > > testing on those systems, you can fetch the files at the URL > > below. > > > > 2. The version committed does not contain support for a video > > clip list (in the VIDIOCSWIN ioctl). This is not a problem > > for the Linux skype port or browser-based flash camera apps > > since these do not use video clipping. > > > > I have added video clip list support in the version on my > > site, below, however there are some caveats which are > > documented on the web page. If you are familiar with the use > > of a V4L video clip list, please take a look at the URL below > > and send feedback. > > > > The latest version is at: > > http://opal.com/freebsd/sys/compat/linux/ > > > > My testing is with a pwc(4) based webcam (in the multimedia/pwc > > port). This driver has V4L support. If you test with any other > > driver, please do send feedback. >=20 > Alexander and jr, >=20 > Thanks for your work! Having this support now in FreeBSD for my > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the c= am > in my EeePC 900, about which Linux says: >=20 > [ 11.540000] Linux video capture interface: v2.00 > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) > [ 11.690000] usbcore: registered new interface driver uvcvideo > [ 11.690000] USB Video Class driver (SVN r2008.02.27) >=20 Hi, > Any chance to get this supported in the future? Right now that driver is available from the webcamd package announced earli= er=20 this week, though not BSD licensed. I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up by = the=20 linux_ioctl.c ! Any fix for this? =2D-HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 10:17:03 2010 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 065A81065679; Tue, 12 Jan 2010 10:17:03 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9DD3F8FC22; Tue, 12 Jan 2010 10:17:02 +0000 (UTC) Received: from outgoing.leidinger.net (pD9E2C93B.dip.t-dialin.net [217.226.201.59]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 2B1FD84400D; Tue, 12 Jan 2010 11:16:55 +0100 (CET) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 5A059310F93; Tue, 12 Jan 2010 11:16:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1263291410; bh=XdhQiQKwXOvK9gksrawMkcZCwJLKuvCH0lKcEhN9uyo=; h=Message-ID:Date:From:To:Cc:Subject:References:In-Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding; b=oe9788sO7iyX26DSNIURcZjI8sFKmQmKbBvFf+wqvwv3J4fDX8Vn2AXbw0mI60j4R RcXJohkni3QrjSrGDcn7GDVvvQApjxk3WOCq1cAgoRVBsvQ9vb+GN7DWXU+IN7xM2E dtAYQ3RG1Dh6ofycnt2h5br87GzZMewNJdr8yNCxIUfc/11aR5JumJnM86OFBsyvUf zrcSP6GXxQZ0+UMT4h9dtpPnuxe2KtUTHHs8Si32Rc0llBXVEfQFryC74uTxK04+V4 9naHJjYw5k/eK6qRVqVvn9Fiq6ox8Z7EfL0yxfKKMp6VtsZP3+bN9YVA0cUK8l2koH I5ubql9Q+BBNg== Received: (from www@localhost) by webmail.leidinger.net (8.14.3/8.13.8/Submit) id o0CAGnw0099733; Tue, 12 Jan 2010 11:16:49 +0100 (CET) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 12 Jan 2010 11:16:49 +0100 Message-ID: <20100112111649.31092ddssvrkhg5c@webmail.leidinger.net> Date: Tue, 12 Jan 2010 11:16:49 +0100 From: Alexander Leidinger To: Matthias Apitz References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> <20100112070644.GA2667@current.Sisis.de> In-Reply-To: <20100112070644.GA2667@current.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.3) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 2B1FD84400D.4E36B X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.286, required 6, autolearn=disabled, ALL_TRUSTED -1.44, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, TW_UV 0.08, TW_VC 0.08) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1263896215.74619@ybV4ikn6mCR1O++exkwygw X-EBL-Spam-Status: No Cc: emulation@freebsd.org, "J.R. Oldroyd" , multimedia@freebsd.org Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 10:17:03 -0000 Quoting Matthias Apitz (from Tue, 12 Jan 2010 =20 08:06:44 +0100): > El d=C3=ADa Saturday, December 05, 2009 a las 02:09:27PM -0500, J.R. =20 > Oldroyd escribi=C3=B3: >> My testing is with a pwc(4) based webcam (in the multimedia/pwc >> port). This driver has V4L support. If you test with any other >> driver, please do send feedback. > > Alexander and jr, > > Thanks for your work! Having this support now in FreeBSD for my > multimedia/pwcbsd based cam in Skype, I'd like to have the same for =20 > the cam in > my EeePC 900, about which Linux says: > > [ 11.540000] Linux video capture interface: v2.00 > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) > [ 11.690000] usbcore: registered new interface driver uvcvideo > [ 11.690000] USB Video Class driver (SVN r2008.02.27) > > Any chance to get this supported in the future? What was committed is not a driver, just a translation layer to go =20 from the linuxulator to the FreeBSD driver. What you need is a FreeBSD =20 driver for the webcam. As it is a USB one, I suggest to talk with HPS =20 (probably on usb@) about it. Bye, Alexander. --=20 Say "twenty-three-skiddoo" to logout. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 11:25:56 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 4D9D7106566C for ; Tue, 12 Jan 2010 11:25:56 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id A7F1F8FC0C for ; Tue, 12 Jan 2010 11:25:55 +0000 (UTC) Received: by fxm27 with SMTP id 27so97442fxm.3 for ; Tue, 12 Jan 2010 03:25:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=1wzJIyjcowKGC4e5SZIwXDdYOANVJ1NChD14gcp3JWs=; b=g3teD5G/fYhl/1qKP/yH/73avuA09aXuDIt4xT5nc4vqDNiSMTHa1l+tzCEzs64H5b PP3F5Faq9vIAGacFyL5LdBhU7AuLWB7y1Q2HZRRXKw15SaQvxxtHq0JoqQP2Tklx95Rn dBxlBf61WhJcnj2ZyWmhq8WeMv9fm67GguyHg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=atWQsoX4nzEkoT+nTWjvU6XKsjR9XtGFjlUisrwwfLVzsCATiRkKdUinV+GFLP2Omw 4hUNp6U6EH3i4mL+dSYeep4SIxElGsR8iWl1A94V8REYS2WT6rPe/mn4lAmN4jXdsGeO G4kzGx4qYe+WYQXCTSk9li2lHMtTM1ZaP0U48= Received: by 10.223.76.65 with SMTP id b1mr64094fak.5.1263295549275; Tue, 12 Jan 2010 03:25:49 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 13sm10140792fxm.9.2010.01.12.03.25.47 (version=SSLv3 cipher=RC4-MD5); Tue, 12 Jan 2010 03:25:48 -0800 (PST) Sender: Alexander Motin Message-ID: <4B4C5C0E.5040301@FreeBSD.org> Date: Tue, 12 Jan 2010 13:25:02 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20090901) MIME-Version: 1.0 To: Juergen Lock References: <20100109215928.GA93188@triton8.kn-bremen.de> In-Reply-To: <20100109215928.GA93188@triton8.kn-bremen.de> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia@FreeBSD.org, netchild@FreeBSD.org, Ryan Beasley Subject: Re: native OSS_GETVERSION ioctl doesn't really work 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: Tue, 12 Jan 2010 11:25:56 -0000 Juergen Lock wrote: > While fixing qemu for the upcoming 0.12.1 (or .2) qemu-devel port > I discovered that the OSS_GETVERSION ioctl added by r164613 in 2006, > http://svn.freebsd.org/viewvc/base?view=revision&revision=164613 > is only implemented for the mixer device (other than in the Linuxolator), > and on top of that that code is never reached because OSS_GETVERSION > is defined as an _IOR ('M', ...), which are all handled by an > if ((cmd & MIXER_READ(0)) == MIXER_READ(0)) { > ... > here, > http://fxr.watson.org/fxr/source/dev/sound/pcm/mixer.c#L1255 > and so even if actually done on a mixer device the ioctl ends up failing > with ENXIO. > > JFY... :) > Juergen > > PS: I guess I can try to make a patch, but only if its needed :) Fixed it for mixer in HEAD. I see 4Front OSS also implements it for sndstat and audio devices. Is it right, or it is some kind of bug or workaround? -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 17:46:27 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 3E52E1065676; Tue, 12 Jan 2010 17:46:27 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.freebsd.org (Postfix) with ESMTP id B77488FC0C; Tue, 12 Jan 2010 17:46:26 +0000 (UTC) Received: from 153.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.153]) by smtp.vzavenue.net with ESMTP; 12 Jan 2010 12:46:25 -0500 X-REPUTATION: None X-REMOTE-IP: 66.171.78.153 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAE86TEtCq06Z/2dsb2JhbACBRdRNhDAE X-IronPort-AV: i="4.49,262,1262581200"; d="asc'?scan'208"; a="213243667:sNHT23590521" Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.3/8.14.3) with ESMTP id o0CHkOke099379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2010 12:46:25 -0500 (EST) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([2001:5c0:1100:f103:221:63ff:fe5a:c9a7] helo=shibato.opal.com) with IPv6:587 by opal.com; 12 Jan 2010 12:46:24 -0500 Date: Tue, 12 Jan 2010 12:46:21 -0500 From: "J.R. Oldroyd" To: Hans Petter Selasky Message-ID: <20100112124621.59fa3747@shibato.opal.com> In-Reply-To: <201001120923.38871.hselasky@c2i.net> References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> <20100112070644.GA2667@current.Sisis.de> <201001120923.38871.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9"; protocol="application/pgp-signature" Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, multimedia@freebsd.org, Alexander Leidinger Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 17:46:27 -0000 --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 12 Jan 2010 09:23:38 +0100, Hans Petter Selasky = wrote: > > > Thanks for your work! Having this support now in FreeBSD for my > > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the= cam > > in my EeePC 900, about which Linux says: > >=20 > > [ 11.540000] Linux video capture interface: v2.00 > > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) > > [ 11.690000] usbcore: registered new interface driver uvcvideo > > [ 11.690000] USB Video Class driver (SVN r2008.02.27) > >=20 >=20 > Hi, >=20 > > Any chance to get this supported in the future? >=20 > Right now that driver is available from the webcamd package announced ear= lier=20 > this week, though not BSD licensed. >=20 > I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up b= y the=20 > linux_ioctl.c ! >=20 > Any fix for this? >=20 > --HPS Hans, The Linux V4L support is only a system call translation layer to allow Linux V4L apps to access FreeBSD V4L drivers. In other words, the FreeBSD driver must offer a VL4 support itself. I looked for webcamd on freshports.org but nothing comes up. I am not familiar with the drivers in it. Do they include V4L support? -jr --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAktMtW0ACgkQls33urr0k4l7zwCeOPY7VTo1/sIE91RH9DIFQkWA ww8An0V6RaaibNj3flT1ajjCdK15kVb4 =2xS6 -----END PGP SIGNATURE----- --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 17:46:27 2010 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 3E52E1065676; Tue, 12 Jan 2010 17:46:27 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.freebsd.org (Postfix) with ESMTP id B77488FC0C; Tue, 12 Jan 2010 17:46:26 +0000 (UTC) Received: from 153.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.153]) by smtp.vzavenue.net with ESMTP; 12 Jan 2010 12:46:25 -0500 X-REPUTATION: None X-REMOTE-IP: 66.171.78.153 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAE86TEtCq06Z/2dsb2JhbACBRdRNhDAE X-IronPort-AV: i="4.49,262,1262581200"; d="asc'?scan'208"; a="213243667:sNHT23590521" Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.3/8.14.3) with ESMTP id o0CHkOke099379 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2010 12:46:25 -0500 (EST) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([2001:5c0:1100:f103:221:63ff:fe5a:c9a7] helo=shibato.opal.com) with IPv6:587 by opal.com; 12 Jan 2010 12:46:24 -0500 Date: Tue, 12 Jan 2010 12:46:21 -0500 From: "J.R. Oldroyd" To: Hans Petter Selasky Message-ID: <20100112124621.59fa3747@shibato.opal.com> In-Reply-To: <201001120923.38871.hselasky@c2i.net> References: <20091204223126.00005392@unknown> <20091205140927.2b47e0f3@shibato.opal.com> <20100112070644.GA2667@current.Sisis.de> <201001120923.38871.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9"; protocol="application/pgp-signature" Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, multimedia@freebsd.org, Alexander Leidinger Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 17:46:27 -0000 --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 12 Jan 2010 09:23:38 +0100, Hans Petter Selasky = wrote: > > > Thanks for your work! Having this support now in FreeBSD for my > > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the= cam > > in my EeePC 900, about which Linux says: > >=20 > > [ 11.540000] Linux video capture interface: v2.00 > > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 (04f2:b071) > > [ 11.690000] usbcore: registered new interface driver uvcvideo > > [ 11.690000] USB Video Class driver (SVN r2008.02.27) > >=20 >=20 > Hi, >=20 > > Any chance to get this supported in the future? >=20 > Right now that driver is available from the webcamd package announced ear= lier=20 > this week, though not BSD licensed. >=20 > I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up b= y the=20 > linux_ioctl.c ! >=20 > Any fix for this? >=20 > --HPS Hans, The Linux V4L support is only a system call translation layer to allow Linux V4L apps to access FreeBSD V4L drivers. In other words, the FreeBSD driver must offer a VL4 support itself. I looked for webcamd on freshports.org but nothing comes up. I am not familiar with the drivers in it. Do they include V4L support? -jr --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAktMtW0ACgkQls33urr0k4l7zwCeOPY7VTo1/sIE91RH9DIFQkWA ww8An0V6RaaibNj3flT1ajjCdK15kVb4 =2xS6 -----END PGP SIGNATURE----- --Sig_/bD.Fgf8i9=OeGJmWQ=qBeH9-- From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 17:51:13 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 2A91B106566B; Tue, 12 Jan 2010 17:51:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 2E48F8FC1C; Tue, 12 Jan 2010 17:51:11 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4vW0rCAk17MA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=q56oFxeYAAAA:8 a=ndaoGXS1AAAA:8 a=sQ7Vq_YtH2fPdYJyCBMA:9 a=RVTm755eRzSwIEl_MDgA:7 a=umoC9amhtJ0I4qyuC8znKSmMdUIA:4 a=k3S3GY7AwsAA:10 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1358056097; Tue, 12 Jan 2010 18:51:10 +0100 From: Hans Petter Selasky To: "J.R. Oldroyd" Date: Tue, 12 Jan 2010 18:49:48 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <20091204223126.00005392@unknown> <201001120923.38871.hselasky@c2i.net> <20100112124621.59fa3747@shibato.opal.com> In-Reply-To: <20100112124621.59fa3747@shibato.opal.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201001121849.48833.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, multimedia@freebsd.org, Alexander Leidinger Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 17:51:13 -0000 On Tuesday 12 January 2010 18:46:21 J.R. Oldroyd wrote: > On Tue, 12 Jan 2010 09:23:38 +0100, Hans Petter Selasky wrote: > > > Thanks for your work! Having this support now in FreeBSD for my > > > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the > > > cam in my EeePC 900, about which Linux says: > > > > > > [ 11.540000] Linux video capture interface: v2.00 > > > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 > > > (04f2:b071) [ 11.690000] usbcore: registered new interface driver > > > uvcvideo [ 11.690000] USB Video Class driver (SVN r2008.02.27) > > > > Hi, > > > > > Any chance to get this supported in the future? > > > > Right now that driver is available from the webcamd package announced > > earlier this week, though not BSD licensed. > > > > I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up > > by the linux_ioctl.c ! > > > > Any fix for this? > > > > --HPS > > Hans, > > The Linux V4L support is only a system call translation layer > to allow Linux V4L apps to access FreeBSD V4L drivers. In other > words, the FreeBSD driver must offer a VL4 support itself. > > I looked for webcamd on freshports.org but nothing comes up. > I am not familiar with the drivers in it. Do they include V4L > support? Hi, I put some more info on webcamd here: http://www.selasky.org/hans_petter/video4bsd/ Yes, it provides a /dev/video0 that responds to V4L IOCTLs. The only thing I noticed is that the wrong IOCTL's are coming in, and that they are not being translated by the linux_ioctl.c, probably because the wrong syscall is being used? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 17:51:13 2010 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 2A91B106566B; Tue, 12 Jan 2010 17:51:13 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe07.swip.net [212.247.154.193]) by mx1.freebsd.org (Postfix) with ESMTP id 2E48F8FC1C; Tue, 12 Jan 2010 17:51:11 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=4vW0rCAk17MA:10 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=8kQB0OdkAAAA:8 a=q56oFxeYAAAA:8 a=ndaoGXS1AAAA:8 a=sQ7Vq_YtH2fPdYJyCBMA:9 a=RVTm755eRzSwIEl_MDgA:7 a=umoC9amhtJ0I4qyuC8znKSmMdUIA:4 a=k3S3GY7AwsAA:10 a=9aOQ2cSd83gA:10 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe07.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1358056097; Tue, 12 Jan 2010 18:51:10 +0100 From: Hans Petter Selasky To: "J.R. Oldroyd" Date: Tue, 12 Jan 2010 18:49:48 +0100 User-Agent: KMail/1.12.4 (FreeBSD/8.0-STABLE; KDE/4.3.4; amd64; ; ) References: <20091204223126.00005392@unknown> <201001120923.38871.hselasky@c2i.net> <20100112124621.59fa3747@shibato.opal.com> In-Reply-To: <20100112124621.59fa3747@shibato.opal.com> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201001121849.48833.hselasky@c2i.net> Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, multimedia@freebsd.org, Alexander Leidinger Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 17:51:13 -0000 On Tuesday 12 January 2010 18:46:21 J.R. Oldroyd wrote: > On Tue, 12 Jan 2010 09:23:38 +0100, Hans Petter Selasky wrote: > > > Thanks for your work! Having this support now in FreeBSD for my > > > multimedia/pwcbsd based cam in Skype, I'd like to have the same for the > > > cam in my EeePC 900, about which Linux says: > > > > > > [ 11.540000] Linux video capture interface: v2.00 > > > [ 11.560000] uvcvideo: Found UVC 1.00 device CNF7129 > > > (04f2:b071) [ 11.690000] usbcore: registered new interface driver > > > uvcvideo [ 11.690000] USB Video Class driver (SVN r2008.02.27) > > > > Hi, > > > > > Any chance to get this supported in the future? > > > > Right now that driver is available from the webcamd package announced > > earlier this week, though not BSD licensed. > > > > I tried to install Skype on AMD64 and the V4L IOCTL's are not picked up > > by the linux_ioctl.c ! > > > > Any fix for this? > > > > --HPS > > Hans, > > The Linux V4L support is only a system call translation layer > to allow Linux V4L apps to access FreeBSD V4L drivers. In other > words, the FreeBSD driver must offer a VL4 support itself. > > I looked for webcamd on freshports.org but nothing comes up. > I am not familiar with the drivers in it. Do they include V4L > support? Hi, I put some more info on webcamd here: http://www.selasky.org/hans_petter/video4bsd/ Yes, it provides a /dev/video0 that responds to V4L IOCTLs. The only thing I noticed is that the wrong IOCTL's are coming in, and that they are not being translated by the linux_ioctl.c, probably because the wrong syscall is being used? --HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 18:17:13 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 D194A1065670; Tue, 12 Jan 2010 18:17:13 +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 8A1E88FC15; Tue, 12 Jan 2010 18:17:13 +0000 (UTC) Received: by smtp.kn-bremen.de (Postfix, from userid 10) id BFAAC1E0076C; Tue, 12 Jan 2010 19:17:11 +0100 (CET) Received: from triton8.kn-bremen.de (noident@localhost [127.0.0.1]) by triton8.kn-bremen.de (8.14.3/8.14.3) with ESMTP id o0CHo3Le008933; Tue, 12 Jan 2010 18:50:03 +0100 (CET) (envelope-from nox@triton8.kn-bremen.de) Received: (from nox@localhost) by triton8.kn-bremen.de (8.14.3/8.14.3/Submit) id o0CHo2h4008932; Tue, 12 Jan 2010 18:50:02 +0100 (CET) (envelope-from nox) From: Juergen Lock Date: Tue, 12 Jan 2010 18:50:02 +0100 To: Alexander Motin Message-ID: <20100112175002.GA8721@triton8.kn-bremen.de> References: <20100109215928.GA93188@triton8.kn-bremen.de> <4B4C5C0E.5040301@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B4C5C0E.5040301@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-multimedia@FreeBSD.org, netchild@FreeBSD.org, Juergen Lock , Ryan Beasley Subject: Re: native OSS_GETVERSION ioctl doesn't really work 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: Tue, 12 Jan 2010 18:17:13 -0000 On Tue, Jan 12, 2010 at 01:25:02PM +0200, Alexander Motin wrote: > Juergen Lock wrote: > > While fixing qemu for the upcoming 0.12.1 (or .2) qemu-devel port > > I discovered that the OSS_GETVERSION ioctl added by r164613 in 2006, > > http://svn.freebsd.org/viewvc/base?view=revision&revision=164613 > > is only implemented for the mixer device (other than in the Linuxolator), > > and on top of that that code is never reached because OSS_GETVERSION > > is defined as an _IOR ('M', ...), which are all handled by an > > if ((cmd & MIXER_READ(0)) == MIXER_READ(0)) { > > ... > > here, > > http://fxr.watson.org/fxr/source/dev/sound/pcm/mixer.c#L1255 > > and so even if actually done on a mixer device the ioctl ends up failing > > with ENXIO. > > > > JFY... :) > > Juergen > > > > PS: I guess I can try to make a patch, but only if its needed :) > > Fixed it for mixer in HEAD. I see 4Front OSS also implements it for > sndstat and audio devices. Is it right, or it is some kind of bug or > workaround? I'd say it's right, apps depend on the ioctl being available also on /dev/dsp etc. too. (Or at least qemu 0.12 does, thats where I discovered the bug. I haven't looked at other apps so far...) And thank you for the fix! :) Juergen From owner-freebsd-multimedia@FreeBSD.ORG Tue Jan 12 18:17:53 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 69D251065676; Tue, 12 Jan 2010 18:17:53 +0000 (UTC) (envelope-from fbsd@opal.com) Received: from smtp.vzavenue.net (smtp.vzavenue.net [66.171.59.140]) by mx1.freebsd.org (Postfix) with ESMTP id 095878FC13; Tue, 12 Jan 2010 18:17:52 +0000 (UTC) Received: from 153.78.171.66.subscriber.vzavenue.net (HELO homobox.opal.com) ([66.171.78.153]) by smtp.vzavenue.net with ESMTP; 12 Jan 2010 13:17:49 -0500 X-REPUTATION: None X-REMOTE-IP: 66.171.78.153 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAGlITEtCq06Z/2dsb2JhbACBRNRyhDAE X-IronPort-AV: i="4.49,263,1262581200"; d="asc'?scan'208"; a="213244884:sNHT22545999" Received: from opal.com (localhost [IPv6:::1]) (authenticated bits=0) by homobox.opal.com (8.14.3/8.14.3) with ESMTP id o0CIHmkp000431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Jan 2010 13:17:48 -0500 (EST) (envelope-from fbsd@opal.com) Received: from shibato.opal.com ([2001:5c0:1100:f103:221:63ff:fe5a:c9a7] helo=shibato.opal.com) with IPv6:587 by opal.com; 12 Jan 2010 13:17:48 -0500 Date: Tue, 12 Jan 2010 13:17:45 -0500 From: "J.R. Oldroyd" To: Hans Petter Selasky Message-ID: <20100112131745.1643fe83@shibato.opal.com> In-Reply-To: <201001121849.48833.hselasky@c2i.net> References: <20091204223126.00005392@unknown> <201001120923.38871.hselasky@c2i.net> <20100112124621.59fa3747@shibato.opal.com> <201001121849.48833.hselasky@c2i.net> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.6; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/SxL1Ly_DrB..BJ+DxWwuEq/"; protocol="application/pgp-signature" Cc: freebsd-multimedia@freebsd.org, emulation@freebsd.org, Alexander Leidinger Subject: Re: FYI: v4l-linuxulator support in FreeBSD-current now 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: Tue, 12 Jan 2010 18:17:53 -0000 --Sig_/SxL1Ly_DrB..BJ+DxWwuEq/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 12 Jan 2010 18:49:48 +0100, Hans Petter Selasky = wrote: >=20 > Hi, >=20 > I put some more info on webcamd here: >=20 > http://www.selasky.org/hans_petter/video4bsd/ >=20 > Yes, it provides a /dev/video0 that responds to V4L IOCTLs. >=20 > The only thing I noticed is that the wrong IOCTL's are coming in, and tha= t=20 > they are not being translated by the linux_ioctl.c, probably because the = wrong=20 > syscall is being used? >=20 > --HPS Hard to say without more detail about what you're doing. But the linux_ioctl.c code will translate all V4L ioctls. Read my caveats about video cliplist support here: http://opal.com/freebsd/sys/compat/linux/ The linux_ioctl.c code has no V4L2 support, though. -jr --Sig_/SxL1Ly_DrB..BJ+DxWwuEq/ Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAktMvMkACgkQls33urr0k4mcmwCgo42RnoP4rBuBLTJ2rycOUwzt 0ngAn1y1/PNJyO1BnKmqwwhEVnh6kOuv =DGLz -----END PGP SIGNATURE----- --Sig_/SxL1Ly_DrB..BJ+DxWwuEq/-- From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 13 08:41:52 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 41C9D106568D for ; Wed, 13 Jan 2010 08:41:52 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id C9A588FC1D for ; Wed, 13 Jan 2010 08:41:51 +0000 (UTC) Received: by fxm27 with SMTP id 27so305051fxm.3 for ; Wed, 13 Jan 2010 00:41:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:x-enigmail-version:content-type :content-transfer-encoding; bh=iuCEirZbkP6YDVAxmCb/alrFB+wfNX3zmnl4zU+ZtU8=; b=P0GBzuTUZrnwUUcYH/b8eQHYXcnMECopU40At4VvgwA/C9BIeAz8ktlCW4HlpShjD8 lWNWowZ2dSM3IW68Iv2dOJnQsnPxjHCkMC9OsLs0D671kBLiAQHJ8yDUf0LxsAM2s79r /cfVCwpEWpjQzXXvoFe5xjn5rE5jkwA2/WUXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; b=KyXXUPchcOkdXNy/Y5el5K7DSYGcVCjuU0s2iOYInW0fXVrRowy1Ja3UYZeskyvV7S WaK4a4NrPvwjLewMM9h+CIoa+lkipyaOLwH9NOV5SsFuJJ7S0KxGGrmtk9c/ZeUGfw5B 4iYtJpM7yXqobzvcHTbfhejLsVu2OU24J/+7s= Received: by 10.223.81.82 with SMTP id w18mr1872266fak.70.1263372105047; Wed, 13 Jan 2010 00:41:45 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm711996fxm.2.2010.01.13.00.41.44 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Jan 2010 00:41:44 -0800 (PST) Sender: Alexander Motin Message-ID: <4B4D8747.2000601@FreeBSD.org> Date: Wed, 13 Jan 2010 10:41:43 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: freebsd-multimedia X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Subject: snd_hda multichannel support added 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, 13 Jan 2010 08:41:52 -0000 Hi. As sound(4) got multichannel support since FreeBSD 8.0, I've implemented multichannel (4.0, 5.1, 7.1) playback support for snd_hda(4) driver. MPlayer now successfully plays 4/6-channel audio streams when running with respective -channels option. The only thing you should configure, is to inform vchans about present number of speakers by something like: sysctl dev.pcm.0.play.vchanformat="s16le:7.1" Code was recently added to 9-CURRENT. Patch for 8-STABLE can be found here: http://people.freebsd.org/~mav/snd_hda.mch.patch Have a nice sound! :) PS: Stereo stream is no more duplicated to all connectors. If you loose sound, check you are using right ones. Front speakers connector is usually green, center/LFE - orange, rear - black, side - gray. -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 13 16:15:10 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 A5E151065670; Wed, 13 Jan 2010 16:15:10 +0000 (UTC) (envelope-from diego.ochoat@gmail.com) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.186]) by mx1.freebsd.org (Postfix) with ESMTP id E37E68FC12; Wed, 13 Jan 2010 16:15:09 +0000 (UTC) Received: by gv-out-0910.google.com with SMTP id p33so181308gvf.39 for ; Wed, 13 Jan 2010 08:15:06 -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 :from:date:message-id:subject:to:cc:content-type; bh=oYoi53nXyy5yyvSv0JhC3Qz2PNCRAIBhffYftO3W+00=; b=dwjACBOK6I9lMCHsuhoEIOPVCU4OIX85o/p1y3HChGItE05LZl77Hn3NcfhtLzVoor PPyzsAJXv3KCoWmOsXmBpoWiZXkG8JnKVq9HDpOdR86jdIlhtO9ue5dEm05Ckz66R6LM R6DW2MhQVhKMoxTvA+/dsIKt/nUQEceSqYVdU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=R4LsOrQH22Ul5wS6TeIPwMOnPbcdlTy0g8BRGa83Q/g/4OhLR8BMaT+Ft7W44ywscQ wYrUEOQqLoRKoN5HJp0OfS+Vwm2WALjQ+5Dsfghi+tXOg4tsSMf0MP0z0DDTVrEo6gLu RJVCs/DqqQFIdtfL4TiAaGqpDS2D/SYns28e4= MIME-Version: 1.0 Received: by 10.239.145.204 with SMTP id t12mr492546hba.142.1263399305168; Wed, 13 Jan 2010 08:15:05 -0800 (PST) In-Reply-To: <4B4D8747.2000601@FreeBSD.org> References: <4B4D8747.2000601@FreeBSD.org> From: Diego Ochoa Tocachi Date: Wed, 13 Jan 2010 11:14:45 -0500 Message-ID: <6951cb851001130814t31ab97f7ldbd957322657ffc8@mail.gmail.com> To: Alexander Motin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-multimedia Subject: Re: snd_hda multichannel support added 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, 13 Jan 2010 16:15:10 -0000 2010/1/13 Alexander Motin > Hi. > > As sound(4) got multichannel support since FreeBSD 8.0, I've implemented > multichannel (4.0, 5.1, 7.1) playback support for snd_hda(4) driver. > MPlayer now successfully plays 4/6-channel audio streams when running > with respective -channels option. The only thing you should configure, > is to inform vchans about present number of speakers by something like: > sysctl dev.pcm.0.play.vchanformat="s16le:7.1" > > Code was recently added to 9-CURRENT. Patch for 8-STABLE can be found > here: http://people.freebsd.org/~mav/snd_hda.mch.patch > > Have a nice sound! :) > > PS: Stereo stream is no more duplicated to all connectors. If you loose > sound, check you are using right ones. Front speakers connector is > usually green, center/LFE - orange, rear - black, side - gray. > > -- > Alexander Motin > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to " > freebsd-multimedia-unsubscribe@freebsd.org" > Hi, I've patched but when I compile I got: starkiller# cd /usr/src/sys/dev/sound/pci/hda/ starkiller# cat /root/snd_hda.mch.patch |patch -p1 Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: hdac_private.h |=================================================================== |--- hdac_private.h (revision 202126) |+++ hdac_private.h (revision 202156) -------------------------- Patching file hdac_private.h using Plan A... Hunk #1 succeeded at 221. Hunk #2 succeeded at 282. Hmm... The next patch looks like a unified diff to me... The text leading up to this was: -------------------------- |Index: hdac.c |=================================================================== |--- hdac.c (revision 202126) |+++ hdac.c (revision 202156) -------------------------- Patching file hdac.c using Plan A... Hunk #1 succeeded at 3405 (offset -50 lines). Hunk #2 succeeded at 3423 (offset -50 lines). Hunk #3 succeeded at 3431 (offset -50 lines). Hunk #4 succeeded at 3451 (offset -50 lines). Hunk #5 succeeded at 3479 with fuzz 1 (offset -50 lines). Hunk #6 failed at 3489. Hunk #7 succeeded at 3568 (offset -8 lines). Hunk #8 succeeded at 6409 (offset -58 lines). Hunk #9 succeeded at 6470 (offset -8 lines). Hunk #10 succeeded at 6444 (offset -58 lines). Hunk #11 succeeded at 6510 (offset -8 lines). Hunk #12 succeeded at 6501 (offset -58 lines). 1 out of 12 hunks failed--saving rejects to hdac.c.rej done starkiller# cd /usr/src/sys/modules/sound/driver/hda starkiller# make Warning: Object directory not changed from original /usr/src/sys/modules/sound/driver/hda cc -O2 -pipe -march=nocona -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c cc1: warnings being treated as errors /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c: In function 'hdac_channel_setfragments': /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:3497: warning: implicit declaration of function 'lcm' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:3497: warning: nested extern declaration of 'lcm' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c: In function 'hdac_pcmchannel_setup': /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:6434: warning: implicit declaration of function 'HDA_PARAM_AUDIO_WIDGET_CAP_CC' /usr/src/sys/modules/sound/driver/hda/../../../../dev/sound/pci/hda/hdac.c:6434: warning: nested extern declaration of 'HDA_PARAM_AUDIO_WIDGET_CAP_CC' *** Error code 1 Stop in /usr/src/sys/modules/sound/driver/hda. my system: FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 21:11:58 UTC 2010 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 There's something wrong that I did?? -- Diego Ochoa - darkbalder Luis Pasteur 2-30 y Copernico Telf: +593 7 4082144 Porta: 090085391 Cuenca - Ecuador From owner-freebsd-multimedia@FreeBSD.ORG Wed Jan 13 16:23:12 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 E809D10656FD for ; Wed, 13 Jan 2010 16:23:12 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 767BC8FC0A for ; Wed, 13 Jan 2010 16:23:12 +0000 (UTC) Received: by fxm27 with SMTP id 27so735978fxm.3 for ; Wed, 13 Jan 2010 08:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=LN+SWzfbdaTVEMQMf5qkjgFXBKs1GE2L2K7dbhJJkFA=; b=TREH1cSHmtLdj/AnHVOmW/bOJwW4ZCOFt37b8f1edE9lNlJy39BI4uN002fewyg5zb NaLV9XXRCM1Zr1T6ry8+xaoXqFumcvd8Lc/MCu40UCA6al4kucEX/+Cf2pybgCiIvLQT gKau9pSQsOtR3XaeurxBJ7EbB834IV/NwfP4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=JPMF0u6qTOBk+vekuNJge/Hjytj0y9Ag/SkamScnTOzEcW5iiE+db7K2xb+Rnxf7T8 ci7qTzioJ+tGKZc79QM39PJF/C5gCYSSC8JzmQus3C8BWzdFTJcaZ7h52u9Qkt1MifnL MXiLObynTmEiX+x0tIQ/HMaxmX9ZkvbFETuI4= Received: by 10.223.18.137 with SMTP id w9mr11494889faa.61.1263399788405; Wed, 13 Jan 2010 08:23:08 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 15sm970867fxm.10.2010.01.13.08.23.07 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Jan 2010 08:23:07 -0800 (PST) Sender: Alexander Motin Message-ID: <4B4DF36A.9060204@FreeBSD.org> Date: Wed, 13 Jan 2010 18:23:06 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.23 (X11/20091212) MIME-Version: 1.0 To: Diego Ochoa Tocachi References: <4B4D8747.2000601@FreeBSD.org> <6951cb851001130814t31ab97f7ldbd957322657ffc8@mail.gmail.com> In-Reply-To: <6951cb851001130814t31ab97f7ldbd957322657ffc8@mail.gmail.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-multimedia Subject: Re: snd_hda multichannel support added 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, 13 Jan 2010 16:23:13 -0000 Diego Ochoa Tocachi wrote: > I've patched but when I compile I got: > > my system: > > FreeBSD starkiller 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Tue Jan 5 > 21:11:58 UTC 2010 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > There's something wrong that I did?? Patch was made for 8-STABLE. It doesn't apply to 8.0-RELEASE sources, as they are bit different. In this case you should either update system, or take whole hda/ folder from 8-STABLE and patch it, or just take driver from 9-CURRENT. Here is full driver sources from 9-CURRENT: http://people.freebsd.org/~mav/hda.tgz -- Alexander Motin From owner-freebsd-multimedia@FreeBSD.ORG Thu Jan 14 17:03:34 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 B0FC81065672 for ; Thu, 14 Jan 2010 17:03:34 +0000 (UTC) (envelope-from jason.harmening@gmail.com) Received: from mail-fx0-f227.google.com (mail-fx0-f227.google.com [209.85.220.227]) by mx1.freebsd.org (Postfix) with ESMTP id 46EA48FC16 for ; Thu, 14 Jan 2010 17:03:33 +0000 (UTC) Received: by fxm27 with SMTP id 27so1042879fxm.3 for ; Thu, 14 Jan 2010 09:03:30 -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:content-type :content-transfer-encoding; bh=y5h+Kmx36mU9DfkkMOIfL+zUuv9aO63Z84C70gc+r9A=; b=UusMlUihQQ9PpMTlTdZ1V1QlkKMgZ4oxdadCv+R6n9RXAStS7qsBuMoU+jYJo0Mfi0 gamrZ405ZU6a6cvq30Wi4XFLnqS8usuu6EANwvibr8Ddr0UPBdjqlOqZ1t72rxOZIq8Z V6MlyWc2/+Amt4gX2J6c4sho4aiAXUpKPvd5E= 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 :content-type:content-transfer-encoding; b=dTI9VrLvgGyc+q/1dIISy+BJ8yV4BQmiNr3EKXBgCLCgLE6DFYy4t4gUi7YuJQL1B8 3ZSc45c+zH4BN/xKtccPP0C1S34P2jhLRrwRS1MXingVHaeUHdpZd0igVNF4p3VrGQoV Qbo6QD7/UiSh1yXTZfPh0j8CB16n8VD/b0ynE= MIME-Version: 1.0 Received: by 10.223.76.142 with SMTP id c14mr1264652fak.92.1263488610715; Thu, 14 Jan 2010 09:03:30 -0800 (PST) In-Reply-To: <2d1264631001140859o5555f937l2c207e45b628b581@mail.gmail.com> References: <4B4F42ED.3070805@googlemail.com> <2d1264631001140859o5555f937l2c207e45b628b581@mail.gmail.com> Date: Thu, 14 Jan 2010 11:03:30 -0600 Message-ID: <2d1264631001140903j739cc3f7m9609f31a1d0ff57a@mail.gmail.com> From: Jason Harmening To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Fwd: cx88 driver for FreeBSD 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: Thu, 14 Jan 2010 17:03:34 -0000 I'm forwarding this to the list as a heads-up...cx88 build is broken on 8-STABLE as of a few days ago (and is already marked broken on 9-CURRENT for the same reason). The fix is included below. Hopefully the newbus locking changes will come back shortly, at which point I'll do a new release w/ a fix. Sorry for the inconvenience. ---------- Forwarded message ---------- From: Jason Harmening Date: Thu, Jan 14, 2010 at 10:59 AM Subject: Re: cx88 driver for FreeBSD To: R J Thompson On Thu, Jan 14, 2010 at 10:14 AM, R J Thompson wro= te: > Hi Jason > > First of all, thankyou for taking the time to write this driver, I am > looking to use it on a FreeBSD MythTV backend server with a Hauppauge Nov= a-T > PCI card. =A0The system is running 8-STABLE (built from the source tree a= s of > today), however when I compile cx88 from the ports I have an error as > follows: > > cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdin= c > =A0-I../common -I../iicdev -I. -I@ -I@/contrib/altq -finline-limit=3D8000 > --param inline-unit-growth=3D100 --param large-function-growth=3D1000 > -fno-common =A0-mno-align-long-strings -mpreferred-stack-boundary=3D2 =A0= -mno-mmx > -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector > -std=3Diso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-ex= terns > -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c cx88_i2c.= c > cc1: warnings being treated as errors > cx88_i2c.c: In function 'cx88_i2c_lock_devtree': > cx88_i2c.c:194: warning: implicit declaration of function 'newbus_xlock' > cx88_i2c.c:194: warning: nested extern declaration of 'newbus_xlock' > cx88_i2c.c: In function 'cx88_i2c_unlock_devtree': > cx88_i2c.c:203: warning: implicit declaration of function 'newbus_xunlock= ' > cx88_i2c.c:203: warning: nested extern declaration of 'newbus_xunlock' > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88/work/cx88-1.2.1/i2c. > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88/work/cx88-1.2.1. > *** Error code 1 > > Stop in /usr/ports/multimedia/cx88. > > Not sure what this means? =A0Any information or advice welcome. > > Cheers > > Richard > > Back in August, newbus_x[un]lock() was added briefly to 8-CURRENT, and so I added a __FreeBSD_version check to determine whether to use the new functions or do locking the old way w/ Giant. =A0Then they decided to remove the new functions for 8.0-RELEASE, but supposedly they'll be coming back shortly. =A0I'm waiting for that to happen before I release a new version w/ the correct __FreeBSD_version check. =A0In the meantime, you can edit cx88_i2c.c and remove the check so that it just uses Giant. Sorry for the inconvenience, Jason From owner-freebsd-multimedia@FreeBSD.ORG Sat Jan 16 20:53:38 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 2E06E10656BD for ; Sat, 16 Jan 2010 20:53:38 +0000 (UTC) (envelope-from neshort@yahoo.com) Received: from n1b.bullet.mail.ac4.yahoo.com (n1b.bullet.mail.ac4.yahoo.com [76.13.13.71]) by mx1.freebsd.org (Postfix) with SMTP id 8E5C98FC08 for ; Sat, 16 Jan 2010 20:53:37 +0000 (UTC) Received: from [76.13.13.26] by n1.bullet.mail.ac4.yahoo.com with NNFMP; 16 Jan 2010 20:40:44 -0000 Received: from [68.142.237.89] by t3.bullet.mail.ac4.yahoo.com with NNFMP; 16 Jan 2010 20:40:44 -0000 Received: from [66.196.97.142] by t5.bullet.re3.yahoo.com with NNFMP; 16 Jan 2010 20:40:44 -0000 Received: from [127.0.0.1] by omp110.mail.re3.yahoo.com with NNFMP; 16 Jan 2010 20:40:44 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 234225.55125.bm@omp110.mail.re3.yahoo.com Received: (qmail 61808 invoked by uid 60001); 16 Jan 2010 20:40:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1263674444; bh=8+Bz1mF/ZkoiuOjdYY29IFNZZ3yQyOIoV+qXenO5tSc=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=OSoM28L/f9jur3qBsT+ViUWdbKwqtsXMm6bw0IWrri6K2OVs6iPFXAURUe0tvVbrAxwSqlaxwunL2Q5LZGcl95S+u8rzY9MhnUoGd2/5ab8wq8zAGDipZN0b0AEAkGE1dmr0HtohDbsPyQ+r0g7PjXCVtUaI9oWxyUiXD0Pp0io= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=5nrGUYSmDlXYtN5u+y/o00tSwJhiQ/sp9dUp9qwT9qzSi34Rb+C4cfhORpv/U5hcyKsV5bbREbw/ZCNF1YMpjb7REJmajpGrMJ397FbdJPn27mVoMNPPDm8Tg+AmxRApx96crdr1myE2RXITRApaTD0s8WhwRIB2eDYrWH9HoGk=; Message-ID: <137763.60853.qm@web56506.mail.re3.yahoo.com> X-YMail-OSG: oydLGRgVM1n6KRKEV4hg7MUOeSiY9rZip2eu7O5F7UtdiDNWIvlz4mLfCjEuw_m9.B41H9K_Laun8Aj5.wbxvvfXAW3xWEaRBigC5B52L4ahXNcfIcycHGa23BW6UO1NIeScSIxpPCIPu1a7KBZTMP1ZU82Ey2R3NN8nBBarmZt.EH3kHr_rATbYpEKM.tvYT_rawPlg6bynvogd7Zins4AGyOWVl7fi9GXMg1Cdcn3iHuh48_O2wZ6jm0Qx_sE11GqYVvGiNf0rKx9kwqvFna46nyxm3BSbkwJz8ml3zNDX4sTBxh3Wpl.T_w-- Received: from [174.18.64.50] by web56506.mail.re3.yahoo.com via HTTP; Sat, 16 Jan 2010 12:40:44 PST X-Mailer: YahooMailClassic/9.0.20 YahooMailWebService/0.8.100.260964 Date: Sat, 16 Jan 2010 12:40:44 -0800 (PST) From: Neil Short To: freebsd-multimedia@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Need a Mencoder expert 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: Sat, 16 Jan 2010 20:53:38 -0000 I have a VOB file that I need to convert to something playable on a Sony Walkman NWZ-E344. The walkman wants an ASF container, resolution of 320x240 (or less), wmv9 codec, wma 2 codec, 30 frames per second, video bitrate of less than or equal to 768k. I cannot seem to get a mencoder (nor ffmpeg) encoding line to work. Here's some data on a video that works: $ ffmpeg -i Butterfly.wmv .... [wmv3 @ 0x29707c10]Extra data: 8 bits left, value: 0 Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 29.97 (30000/1001) Input #0, asf, from 'Butterfly.wmv': Duration: 00:00:08.21, start: 5.000000, bitrate: 1126 kb/s Stream #0.0: Audio: wmav2, 44100 Hz, stereo, s16, 96 kb/s Stream #0.1: Video: wmv3, yuv420p, 320x208, 768 kb/s, 29.97 tbr, 1k tbn, 1k tbc mplayer -identify Butterfly.wmv .... Playing Butterfly.wmv. ASF file format detected. ID_AUDIO_ID=1 [asfheader] Audio stream found, -aid 1 ID_VIDEO_ID=2 [asfheader] Video stream found, -vid 2 VIDEO: [WMV3] 320x208 24bpp 1000.000 fps 768.0 kbps (93.8 kbyte/s) ID_FILENAME=Butterfly.wmv ID_DEMUXER=asf ID_VIDEO_FORMAT=WMV3 ID_VIDEO_BITRATE=768000 ID_VIDEO_WIDTH=320 ID_VIDEO_HEIGHT=208 ID_VIDEO_FPS=1000.000 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=353 ID_AUDIO_BITRATE=0 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=15.00 Opening video filter: [screenshot=yes] ========================================================================== Requested video codec family [wmv9dmo] (vfm=dmo) not available. Enable it at compilation. Requested video codec family [wmvdmo] (vfm=dmo) not available. Enable it at compilation. Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family [wmv3 @ 0x882b6f0]Extra data: 8 bits left, value: 0 Selected video codec: [ffwmv3] vfm: ffmpeg (FFmpeg M$ WMV3/WMV9) ========================================================================== ID_VIDEO_CODEC=ffwmv3 ========================================================================== Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders AUDIO: 44100 Hz, 2 ch, s16le, 96.0 kbit/6.81% (ratio: 12005->176400) ID_AUDIO_BITRATE=96040 ID_AUDIO_RATE=44100 ID_AUDIO_NCH=2 Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg)) ========================================================================== AO: [oss] 44100Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=ffwmav2 Starting playback... VDec: vo config request - 320 x 208 (preferred colorspace: Planar YV12) VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x8827710]SwScaler: using unscaled yuv420p -> bgr24 special converter VO: [xv] 320x208 => 320x208 Planar YV12 New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. ....