View previous topic :: View next topic |
Author |
Message |
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Thu Feb 02, 2006 3:41 pm Post subject: Ebuild for uvcvideo and uvcview (for UVC Webcams) |
|
|
Hossa,
for UVC Webcams (like the Logitech Quickcam Pro 5000) there is a new driver developing. To make testing it easier i created an ebuild for the driver
and for the uvc viewer application (since uvc devices seem not to be supported very good right now by many webcam applications).
driver
viewer
For more information watch the linux-uvc website and get in touch with other users/developers via the mailing lists (linux-uvc-devel@lists.berlios.de). _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
Need4Speed Guru
Joined: 06 Jun 2004 Posts: 497
|
Posted: Fri Apr 28, 2006 4:44 pm Post subject: |
|
|
Thanks for the ebuild! I just got a Quickcam Fusion and I'm trying to get it working.
I was able to install the driver, but now I get this:
Code: | linux ~ # modprobe uvcvideo
FATAL: Error inserting uvcvideo (/lib/modules/2.6.16-rc3-nitro1/usb/media/uvcvideo.ko): Invalid module format
|
Did I do something wrong? |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Sat Apr 29, 2006 1:55 am Post subject: |
|
|
It's 4 am here, but I'll have a look at that problem later this Weekend. _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
mark_alec Bodhisattva
Joined: 11 Sep 2004 Posts: 6066 Location: Melbourne, Australia
|
Posted: Sat Apr 29, 2006 4:55 am Post subject: |
|
|
Moved from Multimedia to Unsupported Software. |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Mon May 01, 2006 8:21 pm Post subject: |
|
|
I've just updated my kernel to the latest 2.6.16-gentoo-r4 and I cannot reproduce the error.
Maybe one of the nitro patches goes beserk? What does "modprobe -v uvcvideo" do? _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Tue May 02, 2006 9:50 pm Post subject: |
|
|
Okay, I uploaded the ebuilds to my real website. I also added "snapshot releases" so you don't have to get some stuff from SVN. _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
IamBorg Tux's lil' helper
Joined: 05 Nov 2003 Posts: 86
|
Posted: Thu Jun 22, 2006 12:38 am Post subject: |
|
|
Works for amd64 as well. (Have to add the keyword ~amd64.) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Thu Jun 22, 2006 5:16 am Post subject: |
|
|
Okay, I'll add that _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
Need4Speed Guru
Joined: 06 Jun 2004 Posts: 497
|
Posted: Thu Jun 22, 2006 6:20 pm Post subject: |
|
|
Ok tried it again, and I can load the module fine and it shows up in dmesg:
Code: | usbcore: registered new driver uvcvideo
USB Video Class driver (v0.1.0)
usb 1-2: new high speed USB device using ehci_hcd and address 3
uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c1)
|
But when I try to view the webcam, its light flashes on for a second then goes off with this error:
Code: | mobile_tux ~ # webcam
reading config file: /root/.webcamrc
video4linux webcam v1.5 - (c) 1998-2002 Gerd Knorr
grabber config:
size 1024x576 [16 bit YUV 4:2:2 (packed, YUYV)]
input (null), norm (null), jpeg quality 75
rotate=0, top=0, left=0, bottom=240, right=320
ioctl: VIDIOC_DQBUF(index=0;type=VIDEO_CAPTURE;bytesused=0;flags=0x0 [];field=ANY;;timecode.type=0;timecode.flags=0;timecode.frames=0;timecode.seconds=0;timecode.minutes=0;timecode.hours=0;timecode.userbits="";sequence=0;memory=unknown): Invalid argument
capturing image failed
|
Here's some more info:
Code: | mobile_tux ~ # v4l-conf
v4l-conf: using X11 display :0.0
WARNING: v4l-conf is compiled without DGA support.
mode: 1280x1024, depth=24, bpp=32, bpl=5120, base=unknown
/dev/video0 [v4l2]: no overlay support
|
Code: | mobile_tux ~ # v4l-info
### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "USB Video Class device"
bus_info : "0000:00:1d.7"
version : 0.1.0
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]
standards
inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []
video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "MJPEG"
pixelformat : 0x47504a4d [MJPG]
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index : 1
type : VIDEO_CAPTURE
flags : 0
description : "Uncompressed"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 1024
fmt.pix.height : 576
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
fmt.pix.bytesperline : 16384
fmt.pix.sizeimage : 1179648
fmt.pix.colorspace : SRGB
fmt.pix.priv : 0
controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 255
step : 1
default_value : 127
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 255
step : 1
default_value : 32
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : 0
maximum : 255
step : 1
default_value : 39
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
id : 134217728
type : INTEGER
name : "Backlight Compensation"
minimum : 0
maximum : 2
step : 1
default_value : 1
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
id : 134217729
type : MENU
name : "Power Line Frequency"
minimum : 0
maximum : 2
step : 1
default_value : 2
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
id : 134217730
type : INTEGER
name : "Sharpness"
minimum : 0
maximum : 255
step : 1
default_value : 180
flags : 0
### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "USB Video Class device"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 960
maxheight : 720
minwidth : 48
minheight : 32
channels
ioctl VIDIOCGCHAN: Invalid argument
tuner
ioctl VIDIOCGTUNER: Invalid argument
audio
ioctl VIDIOCGAUDIO: Invalid argument
picture
VIDIOCGPICT
brightness : 32639
hue : 0
colour : 10023
contrast : 8224
whiteness : 65535
depth : 63279
palette : YUYV
buffer
ioctl VIDIOCGFBUF: Invalid argument
window
VIDIOCGWIN
x : 0
y : 0
width : 1024
height : 576
chromakey : 0
flags : 0
|
Any ideas? |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Fri Jun 23, 2006 12:43 am Post subject: |
|
|
I don't know "webcam", many programs do not really support v4l2, but only the old v4l.
If you wanna try a program that does work with the uvcvideo driver you can either install ekiga or (if that has too many dependencies for you) you can grab the ebuild for luvcview on my homepage. Does it work with those programs? _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
Need4Speed Guru
Joined: 06 Jun 2004 Posts: 497
|
Posted: Fri Jun 23, 2006 1:35 am Post subject: |
|
|
woohoo it works perfectly with luvcview! the picture even looks sharper than in windows.. |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Fri Jun 23, 2006 7:51 am Post subject: |
|
|
Need4Speed wrote: | woohoo it works perfectly with luvcview! the picture even looks sharper than in windows.. |
Okay, that means that "webcam" does not handle v4l2 properly. Like I already mentioned, ekiga works flawlessly with the cam (if you need an application to communicate with someone). _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
nabla² Apprentice
Joined: 17 May 2005 Posts: 280
|
Posted: Tue Jul 11, 2006 11:45 am Post subject: |
|
|
I have problems, too. I own a Fusion. luvcview gives me:
Code: | sebschub@satux ~ $ luvcview
uvcview verion 0.1.4
Video driver: x11
A window manager is available
video /dev/video0
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 139 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 23
Current serial number in output stream: 24 |
dmesg
Code: | uvcvideo: Found UVC 1.00 device <unnamed> (046d:08c1)
usbcore: registered new driver uvcvideo
USB Video Class driver (v0.1.0)
|
Ekiga does not work with my webcam. Do I need additional software? Where do you get v4l-info etc from? The only app where I can get a picture is kopete but it has wrong colours and does not look very nice...
thx _________________ Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Tue Jul 11, 2006 2:25 pm Post subject: |
|
|
v4l-conf is in the xawtv package.
Which kernel do you use?
Do you get a /dev/videoX device node? _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
nabla² Apprentice
Joined: 17 May 2005 Posts: 280
|
Posted: Tue Jul 11, 2006 8:09 pm Post subject: |
|
|
Teetante wrote: | v4l-conf is in the xawtv package.
Which kernel do you use?
Do you get a /dev/videoX device node? |
I use the most recent stable suspend2 kernel: suspend2-sources-2.6.16-r8.
Yes, /dev/video0 is created.
Can I provide more information?
thx _________________ Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Tue Jul 11, 2006 8:55 pm Post subject: |
|
|
okay, let's see whether you have the camera working.
do
Code: |
udevinfo -n /dev/video0 -q all
|
This gives you a set of lines, one beginning with "P:". Use what stands behind it (probably "/class/video4linux/video0") and do
Code: | udevinfo -a -p /class/video4linux/video0 |
Post the output. Thanks. _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
nabla² Apprentice
Joined: 17 May 2005 Posts: 280
|
Posted: Tue Jul 11, 2006 9:48 pm Post subject: |
|
|
Code: | satux ~ # udevinfo -n /dev/video0 -q all
P: /class/video4linux/video0
N: v4l/video0
S: video0
satux ~ # udevinfo -a -p /class/video4linux/video0
udevinfo starts with the device the node belongs to and then walks up the
device chain, to print for every device found, all possibly useful attributes
in the udev key format.
Only attributes within one device section may be used together in one rule,
to match the device for which the node will be created.
looking at device '/class/video4linux/video0':
KERNEL=="video0"
SUBSYSTEM=="video4linux"
SYSFS{name}=="USB Video Class"
SYSFS{dev}=="81:0"
looking at device '/devices/pci0000:00/0000:00:1d.7/usb1/1-3':
ID=="1-3"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{maxchild}=="0"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="3"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="01"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="00"
SYSFS{bcdDevice}=="0005"
SYSFS{idProduct}=="08c1"
SYSFS{idVendor}=="046d"
SYSFS{bMaxPower}=="500mA"
SYSFS{bmAttributes}=="80"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 4"
looking at device '/devices/pci0000:00/0000:00:1d.7/usb1':
ID=="usb1"
BUS=="usb"
DRIVER=="usb"
SYSFS{configuration}==""
SYSFS{serial}=="0000:00:1d.7"
SYSFS{product}=="EHCI Host Controller"
SYSFS{manufacturer}=="Linux 2.6.16-suspend2-r8 ehci_hcd"
SYSFS{maxchild}=="8"
SYSFS{version}==" 2.00"
SYSFS{devnum}=="1"
SYSFS{speed}=="480"
SYSFS{bMaxPacketSize0}=="64"
SYSFS{bNumConfigurations}=="1"
SYSFS{bDeviceProtocol}=="01"
SYSFS{bDeviceSubClass}=="00"
SYSFS{bDeviceClass}=="09"
SYSFS{bcdDevice}=="0206"
SYSFS{idProduct}=="0000"
SYSFS{idVendor}=="0000"
SYSFS{bMaxPower}==" 0mA"
SYSFS{bmAttributes}=="c0"
SYSFS{bConfigurationValue}=="1"
SYSFS{bNumInterfaces}==" 1"
looking at device '/devices/pci0000:00/0000:00:1d.7':
ID=="0000:00:1d.7"
BUS=="pci"
DRIVER=="ehci_hcd"
SYSFS{modalias}=="pci:v00008086d0000265Csv0000144Dsd0000C01Abc0Csc03i20"
SYSFS{local_cpus}=="1"
SYSFS{irq}=="19"
SYSFS{class}=="0x0c0320"
SYSFS{subsystem_device}=="0xc01a"
SYSFS{subsystem_vendor}=="0x144d"
SYSFS{device}=="0x265c"
SYSFS{vendor}=="0x8086"
looking at device '/devices/pci0000:00':
ID=="pci0000:00"
BUS==""
DRIVER==""
|
Just want to mention in addition that the blue light on my webcam indicating activation is for about half a second active when I start luvcview.
Thx! _________________ Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Tue Jul 11, 2006 10:15 pm Post subject: |
|
|
Hmmm, that looks good so far. Might it be a problem with luvcview?
Which version of Ekiga did you try? _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
nabla² Apprentice
Joined: 17 May 2005 Posts: 280
|
Posted: Wed Jul 12, 2006 6:48 am Post subject: |
|
|
I used your ebuild for luvcview which worked without problems.
ekiga is version 2.0.2 but IIRC I also tried 2.0.1. I have all USEFLAGS enabled except avahi, debug and gnome. ekgia shows me only Picture as Video Plugin, and StaticPicture and MovingLogo as "Aufnahmegerät" (recording device?).
Anything to compile into the kernel? I compiled Video for Linux (VIDEO_DEV) into the kernel...
I somehow fear I did something terribly stupid
thx _________________ Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Wed Jul 12, 2006 1:16 pm Post subject: |
|
|
hmmm. Both luvcview and Ekiga use SDL.
Please look at you libsdl useflags. Do you have "xv" enabled? _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
nabla² Apprentice
Joined: 17 May 2005 Posts: 280
|
Posted: Wed Jul 12, 2006 6:49 pm Post subject: |
|
|
It is activated...
Code: | satux ~ # equery uses libsdl
[ Searching for packages matching libsdl... ]
[ Colour Code : set unset ]
[ Legend : Left column (U) - USE flags from make.conf ]
[ : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for media-libs/libsdl-1.2.8-r1 ]
U I
+ + X : Adds support for X11
- - aalib : Adds support for media-libs/aalib (ASCII-Graphics Library)
+ + alsa : Adds support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
- - arts : Adds support for aRts: the KDE sound daemon
- - dga : Adds DGA Support (Xfree86) (DGA=Direct Graphic Access)
- - directfb : Adds support for DirectFB layer (library for FB devices)
- - esd : Adds support for media-sound/esound (Enlightened Sound Daemon)
+ + fbcon : Adds framebuffer support for the console, via the kernel
- - ggi : Adds support for media-libs/libggi (non-X video api/drivers)
- - libcaca : Add support for colored ASCII-art graphics
- - nas : Adds support for network audio sound
- - noaudio : Allow users to disable audio support completely (at their own risk)
- - noflagstrip : Allow users to use any CFLAGS they like completely (at their own risk)
- - nojoystick : Allow users to disable joystick support completely (at their own risk)
- - novideo : Allow users to disable video support completely (at their own risk)
+ + opengl : Adds support for OpenGL (3D graphics)
+ + oss : Adds support for OSS (Open Sound System)
+ + pic : Build Position Independent Code. Do not utilize this flag unless you know what you're doing.
+ + svga : Adds support for SVGAlib (graphics library)
- - xinerama : Add support for the xinerama X11 extension, which allows you to stretch your display across multiple monitors
+ + xv : Adds in optional support for the Xvideo extension (an X API for video playback) |
_________________ Gentoo on Intel Core Duo 2 E6750, Gigabyte P35-DS3P, NVIDIA 8800GTS (amd64) |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Wed Jul 12, 2006 7:06 pm Post subject: |
|
|
I really suppose it's connected to SDL since both programs use that, but I'll have to look at SDL closer to find out what's wrong. Maybe if you asked someone who knows more about ekiga he/she can help you? I never had that problem so far, so I'm kinda out of ideas here. Your camera seems to work correctly though. _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
MaitreChang n00b
Joined: 23 Mar 2003 Posts: 32
|
Posted: Wed Jul 12, 2006 7:42 pm Post subject: Same problem |
|
|
Hi, I have exactly the same problem. The only way to get luvcview to work properly on my configuration is :
That means "disable SDL hardware accel."
So apparently it really comes from SDL.
If I don't give the -w option I get this error :
Code: | uvcview verion 0.1.4
Video driver: x11
A window manager is available
video /dev/video0
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 24
Current serial number in output stream: 25 |
I have libsdl-1.2.8-r1. I'm going to try libsdl-1.2.11.
And Ekiga does not detect the cam |
|
Back to top |
|
|
MaitreChang n00b
Joined: 23 Mar 2003 Posts: 32
|
Posted: Wed Jul 12, 2006 7:44 pm Post subject: luvcview solved |
|
|
Quick answer : luvcview works fine with libsdl-1.2.11. Great !
But I still cannot get Ekiga to detect my new Quickcam Pro 5000 |
|
Back to top |
|
|
Teetante Guru
Joined: 02 Mar 2004 Posts: 515 Location: Oldenburg/Germany
|
Posted: Wed Jul 12, 2006 7:50 pm Post subject: |
|
|
Okay, so looking for other threads of people having problems with Ekiga not detecting any cams might light this issue up a little. _________________ ICQ #81510866 - http://the-gay-bar.com - MSN tante@emptiness.de
Occam's Razor:
-"Entia non sunt multiplicanda praeter necessitatem."- |
|
Back to top |
|
|
|