From owner-freebsd-multimedia@FreeBSD.ORG Mon Mar 14 10:49:45 2011 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 EED47106567E; Mon, 14 Mar 2011 10:49:45 +0000 (UTC) (envelope-from ftp51246-2575596@sh4-5.1blu.de) Received: from sh4-5.1blu.de (sh4-5.1blu.de [213.83.63.54]) by mx1.freebsd.org (Postfix) with ESMTP id B519B8FC08; Mon, 14 Mar 2011 10:49:45 +0000 (UTC) Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.50) id 1Pz5LI-0008Sd-Gz; Mon, 14 Mar 2011 11:49:40 +0100 Date: Mon, 14 Mar 2011 11:49:40 +0100 From: Matthias Apitz To: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Message-ID: <20110314104939.GA30450@sh4-5.1blu.de> References: <20110314074606.GA983@sh4-5.1blu.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20110314074606.GA983@sh4-5.1blu.de> X-Operating-System: FreeBSD 7.0-RELEASE (i386) User-Agent: Mutt/1.5.9i Cc: Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P 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: Mon, 14 Mar 2011 10:49:46 -0000 El día Monday, March 14, 2011 a las 08:46:11AM +0100, Matthias Apitz escribió: > > Hello, > > My kernel is 9-CURRENT r214444 (as of October 2010) and I've updated > the ports multimedia/webcamd and multimedia/cuse4bsd to the latest versions: > > # pkg_info | fgrep webcamd > webcamd-0.1.20_1 A port of Linux USB webcam and DVB drivers into userspace > > # webcamd > ... > USB Video Class driver (v0.1.0) > IR JVC protocol handler initialized > IR LIRC bridge handler initialized > IR NEC protocol handler initialized > IR RC5(x) protocol handler initialized > IR RC6 protocol handler initialized > IR Sony protocol handler initialized > lirc_dev: IR Remote Control driver registered, major 13 > Attached ugen4.2[0] to cuse unit 0 > uvcvideo: Found UVC 1.00 device (0c45:62c0) > Creating /dev/video0 > > # pwcview > Failed to set palette to YUV420P: Invalid argument The message comes out of pwcview.c: ... if(ioctl(fd,VIDIOCGPICT,&vp) == -1) { perror("Failed to get current picture info"); exit(1); } vp.palette = VIDEO_PALETTE_YUV420P; if(ioctl(fd,VIDIOCSPICT,&vp) == -1) { perror("Failed to set palette to YUV420P"); exit(1); } ... # fgrep VIDEO_PALETTE_YUV420P *.h videodev.h:#define VIDEO_PALETTE_YUV420P 15 /* YUV 4:2:0 Planar */ Does it make sense to just comment out this ioctl(2) in pwcview.c? matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/