You are not logged in.

#1 2013-01-21 16:46:54

mathfreak
Member
Registered: 2013-01-21
Posts: 6

Webcam works with guvcview and fswebcam but not in other programs

I have a lenovo z580 and the webcam part of lsusb is

 Bus 001 Device 003: ID 04f2:b2e1 Chicony Electronics Co., Ltd 

I can use it perfectly in guvcview and with fswebcam, but other programs give me a black screen. Specifically, cheese, xawtv, Skype, and the video plugin for google talk all just display a black screen. The indicator light comes on with all of those programs, but there's no video. I've searched the wiki and the forums, but can't find anything else.

The one thing I've noticed is that in guvcview, I only get video if I select MJPEG for camera output. I just don't know how to change this for other programs.

Offline

#2 2013-01-23 05:55:33

shmibs
Member
Registered: 2012-09-11
Posts: 86

Re: Webcam works with guvcview and fswebcam but not in other programs

i'm having a similar issue after a recent update, also using a Chicony Electronics usb camera. guvcvideo does not work at all either, however. i get:

Could not grab image (select timeout): Resource temporarily unavailable

errors over and over again.
furthermore, fswebcam appears to be outputting corrupted images, like so:
out.jpgout2.jpg
and gets time-outs for higher resolutions as well. i'm wondering if uvcvideo wasn't just broken somehow in the last kernel update.

Last edited by shmibs (2013-01-24 05:16:15)


[site] | [dotfiles] | "We're not human, are we?"

Offline

#3 2013-01-27 16:03:53

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 182
Website

Re: Webcam works with guvcview and fswebcam but not in other programs

Same problem here..

Thinkpad E130 with Integrated camera, identified by lsusb as:

Bus 001 Device 002: ID 5986:0299 Acer, Inc

The camera also uses the uvcvideo driver

I get a similar output from guvcvideo like in shmibs fpics, other programs dont work at all (mplayer shows a solid green picture, vlc and skype show nothing at all). Indicator light is on for all programs.

It really seemst to be a issue with the kernel driver, at least I didn't notice the problem with kernels prior 3.7.x (although it might be something else, since I don't use the cam on a daily basis)

I'm still searching the web for a solution atm, but till now found nothing helpfull...

EDIT:
It really seems to be a problem with the latest kernel 3.7.x, after a downgrade to 3.6.11-1 all programs work again. So I'll stay on this kernel for now, since 3.7 also made my brightness keys very slow to respond....
EDIT END

Last edited by seiichiro0185 (2013-01-27 16:27:30)


My Scripts at github: github
My Homepage: Seiichiros HP

Offline

#4 2013-01-29 12:47:54

hfaua
Member
Registered: 2013-01-29
Posts: 2

Re: Webcam works with guvcview and fswebcam but not in other programs

The same problem here. As seiichiro mentioned, it is probboably because of new kernel, which I had updated recently.

hfaua@hfaua-lenovo:~$ uname -r
3.7.4-1-ARCH

Indeed, I've found no support for this issue in the internet. I will appreciate any suggestions or related solutions.

Offline

#5 2013-02-06 02:38:21

Divinorum
Member
Registered: 2011-08-16
Posts: 44

Re: Webcam works with guvcview and fswebcam but not in other programs

Running 3.7.5-1.

Webcam works with guvcview but not Skype.

Ran the following:

export LD_PRELOAD=/usr/'$LIB'/libv4l/v4l1compat.so

Wiki even states: "If the webcam works fine on guvcview, but it does not work in Skype, you may also need to set"

export XLIB_SKIP_ARGB_VISUALS=1

Is it confirmed that this error is attributed to the latest kernel?

Last edited by Divinorum (2013-02-06 02:39:16)

Offline

#6 2013-02-13 15:26:57

shmibs
Member
Registered: 2012-09-11
Posts: 86

Re: Webcam works with guvcview and fswebcam but not in other programs

with the latest standard kernel update, everything seems to be working again big_smile


[site] | [dotfiles] | "We're not human, are we?"

Offline

#7 2013-02-13 19:07:53

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 182
Website

Re: Webcam works with guvcview and fswebcam but not in other programs

Its working again for me too with kernel 3.7.7, thanks for the hint wink Now I can remove the IgnorePkg line from my pacman.conf.


My Scripts at github: github
My Homepage: Seiichiros HP

Offline

#8 2013-02-13 20:45:04

Divinorum
Member
Registered: 2011-08-16
Posts: 44

Re: Webcam works with guvcview and fswebcam but not in other programs

Thanks for the heads up. I am still experiencing the same problem after upgrading to the new kernel. My Logitech Quickcam Express works with guvcview but not with Skype.

I believe the problem is with the driver (qc-usb) because it does not build yet I can load the module (c-qcam) and use guvcview. I acquired qc-usb from the AUR while compiling the module I received this fatal error:

awk: fatal: cannot open file `/lib/modules/3.7.7-1-ARCH/build/include/linux/version.h' for reading (No such file or directory)
/bin/sh: line 0: [: -ge: unary operator expected
/bin/sh: line 0: [: -ge: unary operator expected
cc -I/lib/modules/3.7.7-1-ARCH/build/include -nostdinc -iwithprefix include -DMODULE -D__KERNEL__ -DNOKERNEL -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -Wall -Wstrict-prototypes -Wno-trigraphs -DHAVE_UTSRELEASE_H= -pipe -c qc-driver.c
In file included from qc-driver.c:50:0:
quickcam.h:80:27: fatal error: linux/version.h: No such file or directory
compilation terminated.
make: *** [qc-driver.o] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

The Quickcam Express page at Sourceforge states:

You must install Linux kernel source code corresponding to the kernel you will be running with the camera driver. The source must be configured and depencies must have been created. Typically you can just install the kernel source package that comes with your distribution. If you're instead using virgin kernel in /usr/src/linux-x.y.zz, you must first copy kernel configuration file to /usr/src/linux-x.y.zz/.config, then go to the directory and run "make oldconfig" and "make dep".

You may also need to type

# cd /usr/src/linux-x.y.zz
# make include/linux/version.h

This should create the missing linux/version.h file.

I prepared to carry out this solution but decided to test guvcview anyway and it worked. I went ahead with the instructions outlined in the wiki page Webcam Setup and qc-usb.

- Changed permissions to use /dev/video0
- Loaded module

# modprobe c-qcam
/etc/modules-load.d/webcam.conf

c-qcam

-Verified udev groups

# groups

adm lp wheel log network video audio optical storage power users

-Verified v4l2

# v4l2-ctl --list-devices

Camera (usb-0000:00:1d.1-1):
        /dev/video0

-Followed last additional step from Webcam Setup wiki

# export XLIB_SKIP_ARGB_VISUALS=1

-Launched Skype trying

LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so skype

The monitor neither shows a video feed nor does the LED on the webcam turn on. With guvcview both function fine.

I recognize that the failed driver build is probably the point of failure but I am confused as to why the webcam would work with guvcview and not Skype. I am hesitant in attempting the solution on Quickcam Express FAQ because I am lost in the step requiring:

Typically you can just install the kernel source package that comes with your distribution. If you're instead using virgin kernel in /usr/src/linux-x.y.zz, you must first copy kernel configuration file to /usr/src/linux-x.y.zz/.config, then go to the directory and run "make oldconfig" and "make dep". Any ideas?

Relevant stats follow:

# pacman -Qi skype

Name           : skype
Version        : 4.1.0.20-3
URL            : http://www.skype.com/
Licenses       : custom
Groups         : None
Provides       : None
Depends On     : xdg-utils  hicolor-icon-theme  qt  alsa-lib  libxss  libxv  libxcursor  v4l-utils  gstreamer0.10-base 
Optional Deps  : libcanberra: XDG sound support
                 pulseaudio: PulseAudio support
Required By    : None
Conflicts With : skype-staticqt
Replaces       : None
Installed Size : 62648.00 KiB
Packager       : Andrea Scarpino <andrea@archlinux.org>
Architecture   : i686
Build Date     : Wed 16 Jan 2013 03:23:52 PM CET
Install Date   : Wed 13 Feb 2013 08:45:35 PM CET
Install Reason : Explicitly installed
Install Script : Yes
Description    : P2P software for high-quality voice communication
# uname -m

i686
# dmesg|tail

[  416.750083] usb 3-1: USB disconnect, device number 2
[  422.110051] usb 3-1: new full-speed USB device number 3 using uhci_hcd
[  422.299821] gspca_main: spca561-2.14.0 probing 046d:092d
[  422.356844] input: spca561 as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/input/input14
[ 2333.525798] usbcore: registered new interface driver uvcvideo
[ 2333.525803] USB Video Class driver (1.1.1)
# modinfo c-qcam

filename:       /lib/modules/3.7.7-1-ARCH/kernel/drivers/media/parport/c-qcam.ko.gz
version:        0.0.4
license:        GPL
description:    Colour QuickCam for Video4Linux v0.06
author:         Philip Blundell <philb@gnu.org>
srcversion:     AEA54B99AD8598881094DF9
depends:        videodev,parport
intree:         Y
vermagic:       3.7.7-1-ARCH SMP preempt mod_unload modversions 686 
parm:           parport:parport=<auto|n[,n]...> for port detection method
probe=<0|1|2> for camera detection method
force_rgb=<0|1> for RGB data format (default BGR) (array of int)
parm:           probe:int
parm:           force_rgb:bool
parm:           video_nr:int

Last edited by Divinorum (2013-02-14 18:50:14)

Offline

#9 2013-02-22 19:44:17

hamelg
Member
From: France
Registered: 2008-06-19
Posts: 92

Re: Webcam works with guvcview and fswebcam but not in other programs

Me too, same issue here.
It seems that issue has been fixed since 3.7.7, but unfortunately not for the gspca driver sad
https://bugzilla.redhat.com/show_bug.cgi?id=907197

$ uname -a && systool -va -c video4linux video0
Linux darkstar 3.7.9-1-ARCH #1 SMP PREEMPT Mon Feb 18 02:27:20 EET 2013 i686 GNU/Linux
Class = "video4linux"

  Class Device = "video0"
  Class Device path = "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0/video4linux/video0"
    debug               = "0"
    dev                 = "81:0"
    index               = "0"
    name                = "gspca main driver"
    uevent              = "MAJOR=81
MINOR=0
DEVNAME=video0"

    Device = "1-1:1.0"
    Device path = "/sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1:1.0"
      bAlternateSetting   = " 0"
      bInterfaceClass     = "ff"
      bInterfaceNumber    = "00"
      bInterfaceProtocol  = "ff"
      bInterfaceSubClass  = "ff"
      bNumEndpoints       = "02"
      modalias            = "usb:v046Dp08F6d0100dcFFdscFFdpFFicFFiscFFipFFin00"
      supports_autosuspend= "0"
      uevent              = "DEVTYPE=usb_interface
DRIVER=STV06xx
PRODUCT=46d/8f6/100
TYPE=255/255/255
INTERFACE=255/255/255

Offline

#10 2013-03-08 20:30:30

hamelg
Member
From: France
Registered: 2008-06-19
Posts: 92

Re: Webcam works with guvcview and fswebcam but not in other programs

Fixed with skype 4.1.0.20-5.
The wrapper /usr/bin/skype was buggy.

in 4.1.0.20-4
$ bash -x  /usr/bin/skype
+/usr/bin/skype:3:: LIBDIR=/usr/lib
+/usr/bin/skype:5:: [[ -e /usr/lib/libv4l/v4l2convert.so ]]
+/usr/bin/skype:6:: export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
+/usr/bin/skype:6:: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
+/usr/bin/skype:9:: export LD_PRELOAD=/usr/share/skype/lib/libQtWebKit.so.4
+/usr/bin/skype:9:: LD_PRELOAD=/usr/share/skype/lib/libQtWebKit.so.4
+/usr/bin/skype:11:: exec /usr/lib/skype/skype


in 4.1.0.20-5
$ bash -x  /usr/bin/skype
+/usr/bin/skype:3:: LIBDIR=/usr/lib
+/usr/bin/skype:5:: [[ -e /usr/lib/libv4l/v4l2convert.so ]]
+/usr/bin/skype:6:: export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
+/usr/bin/skype:6:: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
+/usr/bin/skype:9:: export LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so:/usr/share/skype/lib/libQtWebKit.so.4
+/usr/bin/skype:9:: LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so:/usr/share/skype/lib/libQtWebKit.so.4
+/usr/bin/skype:11:: exec /usr/lib/skype/skype

Offline

Board footer

Powered by FluxBB