Date: Mon, 14 Mar 2011 11:49:40 +0100 From: Matthias Apitz <guru@unixarea.de> To: freebsd-multimedia@freebsd.org, freebsd-usb@freebsd.org Subject: Re: 9-CURRENT r214444 / webcamd / vendor 0x0c45 product 0x62c0: pwcview says Failed to set palette to YUV420P Message-ID: <20110314104939.GA30450@sh4-5.1blu.de> In-Reply-To: <20110314074606.GA983@sh4-5.1blu.de> References: <20110314074606.GA983@sh4-5.1blu.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - w http://www.unixarea.de/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110314104939.GA30450>
