You are not logged in.

#1 2007-12-20 20:53:39

colbert
Member
Registered: 2007-12-16
Posts: 809

Help with webcam please

I am checking this out: http://wiki.archlinux.org/index.php/Webcam_Setup

I found that the "stv680" and "linux-uvc" drivers both listed my cam as working, I have just bought the Logi QuickCam Communicate Deluxe. I just plugged it in and here's what I see:

bobby@dabox:/etc$ lsusb
Bus 001 Device 006: ID 046d:0992 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 005 Device 002: ID 0a5c:2101 Broadcom Corp. 
Bus 004 Device 001: ID 0000:0000  
Bus 004 Device 003: ID 046d:c313 Logitech, Inc. 
Bus 004 Device 002: ID 046d:c01e Logitech, Inc. MX518 Optical Mouse
bobby@dabox:/etc$

I have a logi mouse, logi keyboard and the logi webcam. Obviously the mouse is clearly stated, so how do I tell which of the other Logi devices is my webcam? It's detecting it from what I can see there.

Now I installed xawtv, and here's what I get from it:

bobby@dabox:/etc$ xawtv -nodga -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.23-ARCH)
xinerama 0: 1920x1200+0+0
xinerama 1: 1600x1200+1920+0
X Error of failed request:  XF86DGANoDirectVideoMode
  Major opcode of failed request:  136 (XFree86-DGA)
  Minor opcode of failed request:  1 (XF86DGAGetVideoLL)
  Serial number of failed request:  13
  Current serial number in output stream:  13
v4l-conf had some trouble, trying to continue anyway
v4l2: open /dev/video0: No such file or directory
v4l2: open /dev/video0: No such file or directory
v4l: open /dev/video0: No such file or directory
no video grabber device available
bobby@dabox:/etc$

Also, from the wiki, I tried this:

devfs

Add the following to your /etc/devfsd.conf. This will give normal users permission to use /dev/video0 (your webcam).

# Give normal users access to webcam
REGISTER        video0       PERMISSIONS     root.users 0660

But I have no such file (/etc/devfsd.conf). Do I just make it? Just want to be sure as I don't like messing with /etc unless I'm positive hehe. Also, my user is certainly added to group video.

Thanks for any help folks!


EDIT: I just checked dmesg and this is at the end (last thing I've done to the box is plugged in the webcam):

usb 1-7: new high speed USB device using ehci_hcd and address 6
usb 1-7: configuration #1 chosen from 1 choice
usbcore: registered new interface driver snd-usb-audio

Last edited by colbert (2007-12-20 21:29:28)

Offline

#2 2007-12-20 21:47:31

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Another update, I just installed the uvc driver from berlios' site, and here's dmesg immediately after I pulled out and plugged back in my quickcam:

ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
Linux video capture interface: v2.00
usb 1-7: USB disconnect, address 6
usb 1-7: new high speed USB device using ehci_hcd and address 7
usb 1-7: configuration #1 chosen from 1 choice
uvcvideo: Found UVC 1.00 device <unnamed> (046d:0992)
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)

Now I just ran xawtv as "xawtv -c -nodga /dev/video0" and the program has begun, I see a little black frame, nothing is showing though. Here's the output:

bobby@dabox:~/installs/trunk$ xawtv -nodga -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.23-ARCH)
xinerama 0: 1920x1200+0+0
xinerama 1: 1600x1200+1920+0
X Error of failed request:  XF86DGANoDirectVideoMode
  Major opcode of failed request:  136 (XFree86-DGA)
  Minor opcode of failed request:  1 (XF86DGAGetVideoLL)
  Serial number of failed request:  13
  Current serial number in output stream:  13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0xbf93ecf4 [PAL_G,PAL_I,PAL_D,PAL_D1,PAL_K,PAL_Nc,PAL_60,NTSC_M_JP,?,?,SECAM_B,SECAM_D,SECAM_K,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
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

Cheese runs but says "Unable to find a webcam, SORRY!" sad

Last edited by colbert (2007-12-20 21:57:02)

Offline

#3 2007-12-21 04:16:41

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: Help with webcam please

colbert wrote:
bobby@dabox:/etc$ lsusb
Bus 001 Device 006: ID 046d:0992 Logitech, Inc. 
Bus 001 Device 001: ID 0000:0000  
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 005 Device 001: ID 0000:0000  
Bus 005 Device 002: ID 0a5c:2101 Broadcom Corp. 
Bus 004 Device 001: ID 0000:0000  
Bus 004 Device 003: ID 046d:c313 Logitech, Inc. 
Bus 004 Device 002: ID 046d:c01e Logitech, Inc. MX518 Optical Mouse
bobby@dabox:/etc$

so how do I tell which of the other Logi devices is my webcam?

According to the linux UVC page on berlios, the line with device ID "ID 046d:0992" should be your webcam.

colbert wrote:

Also, from the wiki, I tried this:

devfs

Add the following to your /etc/devfsd.conf. This will give normal users permission to use /dev/video0 (your webcam).

# Give normal users access to webcam
REGISTER        video0       PERMISSIONS     root.users 0660

But I have no such file (/etc/devfsd.conf). Do I just make it? Just want to be sure as I don't like messing with /etc unless I'm positive hehe. Also, my user is certainly added to group video.

That wiki page must be quite old, Arch hasn't used devfs for a long time -- you don't need an /etc/devfsd.conf file. Being in the video group in /etc/group should be enough.

Now that you've got the UVC drivers installed and recognizing your camera, try building and running luvcview, and see if you can get a picture up.

Offline

#4 2007-12-21 04:29:11

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Okay, I fired up Ekiga and it works, I saw video of myself in the little window. In the preferences, I saw it using "UVC Camera (046d:0992)". Skype keeps seeing greenish in the video window, though. Any ideas ?

Offline

#5 2007-12-21 04:40:02

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: Help with webcam please

colbert wrote:

Okay, I fired up Ekiga and it works, I saw video of myself in the little window. In the preferences, I saw it using "UVC Camera (046d:0992)". Skype keeps seeing greenish in the video window, though. Any ideas ?

Some programs have colour map troubles with the UVC drivers. You can try looking through the UVC mailing list for solutions.

Offline

#6 2007-12-21 05:00:56

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Thank you, I built luvcview and run it, my webcam is now working 100% in ekiga, skype and here. However, I hit record avi in luvcview and recorded about 10 seconds and when I played the .avi, it plays back in kind of fast mode, like it has a higher than normal framerate hmm

What can I use to make adjustments to the webcam as I would with the Logi software under Windows? And perhaps I can try the logi software via wine...

Offline

#7 2007-12-22 22:38:46

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Any help? I have tried xawtv, and I see the camera light go on for a moment, then get this error:

bobby@dabox:~/Desktop/luvcview-20070512$ xawtv -nodga -c /dev/video0
This is xawtv-3.95, running on Linux/i686 (2.6.23-ARCH)
xinerama 0: 1920x1200+0+0
xinerama 1: 1600x1200+1920+0
X Error of failed request:  XF86DGANoDirectVideoMode
  Major opcode of failed request:  136 (XFree86-DGA)
  Minor opcode of failed request:  1 (XF86DGAGetVideoLL)
  Serial number of failed request:  13
  Current serial number in output stream:  13
v4l-conf had some trouble, trying to continue anyway
Warning: Cannot convert string "-*-ledfixed-medium-r-*--39-*-*-*-c-*-*-*" to type FontStruct
ioctl: VIDIOC_G_STD(std=0xbf882cb4 [PAL_G,PAL_I,PAL_D,PAL_K,PAL_Nc,PAL_60,NTSC_M_JP,SECAM_H,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),(null),(null),(null),(null)]): Invalid argument
ioctl: VIDIOC_S_STD(std=0x0 []): Invalid argument
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
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
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
bobby@dabox:~/Desktop/luvcview-20070512$

And in luvcview, which works, it hovers around 04-05 fps, which is horrible. This camera is capable of 30fps, but I have no idea how I can adjust it? There is no FPS option in luvcview. Is there no way in linux to really manage that, and am I stuck with a slideshow?? hmm

Offline

#8 2007-12-22 23:30:43

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: Help with webcam please

Would 'linux-uvc-utils-svn' in AUR be any help?

Offline

#9 2007-12-23 06:33:59

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

elliot,

I found it, and I also found: http://aur.archlinux.org/packages.php?d … ns=&SeB=nd

I have already installed the uvc driver, how can I uninstall that one if necessary and/or install this one above? I ask because I only see a "cvs" link there and I know how to do the tarball download/makepkg process but no clue with CVS..

Thanks for the help smile

Offline

#10 2007-12-23 07:44:13

elliott
Member
Registered: 2006-03-07
Posts: 296

Re: Help with webcam please

Click the CVS link, then on each required script, then download. Then treat them like any PKGBUILD.

Although the linux-uvc-svn driver itself is already in community, so you can use that version binary to make it easier, the utilities are still in AUR though.

http://aur.archlinux.org/packages.php?d … =1&ID=6907

Last edited by elliott (2007-12-23 07:48:28)

Offline

#11 2007-12-24 00:58:30

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Okay, I got linux-uvc-svn from community and the utils, both are installed. How do I access them now? big_smile

Offline

#12 2007-12-24 01:08:51

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Help with webcam please

(Whoops)

As root:

modprobe uvcvideo

To auto start at boot add 'uvcvideo' to the MODULES line in /etc/rc.conf.

Last edited by skottish (2007-12-24 01:30:09)

Offline

#13 2007-12-24 06:04:18

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Ok, I did that and did "modprobe uvcvideo". But now how do I access the utility to alter FPS, etc. configuration for the cam?

Offline

#14 2007-12-24 16:15:54

loserMcloser
Member
From: Canada
Registered: 2004-12-15
Posts: 130

Re: Help with webcam please

colbert wrote:

Ok, I did that and did "modprobe uvcvideo". But now how do I access the utility to alter FPS, etc. configuration for the cam?

I'm not sure the camera will "remember" certain parts of its configuration. I'm pretty sure FPS needs to be set in each application.

Isn't luvcview's default FPS set at 15? I haven't used luvcview in a while, don't recall. Try luvcview -h or luvcview --help to check out its options.

For ekiga, try looking through the gnome "registry" using gconf-editor.

Offline

#15 2007-12-24 16:59:48

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Help with webcam please

Ok I see in luvcview -h that it's "-i" that sets fps. I tried luvcview -i25 and -i=25 and -i 25, but everytime it starts up the titlebar keeps saying "luvcview, 06fps" and it doesn't change in appearance either.

I guess I'm a bit confused, as I have installed the "linux-uvc-svn-utils" package and I thought it was some kind of control panel to set options for the camera, is it not? I can't find it.

Offline

Board footer

Powered by FluxBB