Webcam nightmare on LINUX

3

1

I have a computer relatively new with Fedora 10. I have bought a webcam, plugged it in, run cheese and the webcam works perfectly. So, it is supported by the kernel.

Than, the hard part...

I have tried to use X-LITE, Skype and now QNext and the camera does not works on these apps. All I see is a black or scrambled colored noise pattern.

Qnext gave me this errro message

Device 'v4l:5' detection failed: java.lang.Error: Can't open video card 5
      Video device 'v4l:6' detection failed: java.lang.Error: Can't open video card 6
      Video device 'v4l:7' detection failed: java.lang.Error: Can't open video card 7
      Video device 'v4l:8' detection failed: java.lang.Error: Can't open video card 8
      Video device 'v4l:9' detection failed: java.lang.Error: Can't open video card 9
Finished detecting Video capture - 0 devices found

The camera shows perfectly as /dev/video0 when I plug it in.

So, if the kernel supports it, what is the matter with linux? WTF!

I have tested on UBUNTU, on another box, and I have the same problem.

Any suggestions?

thanks for your time.

SpaceDog

Posted 2009-12-21T20:52:14.837

Reputation: 1 318

I've had fairly horrible luck with f10 and webcams. If at all possible, I'd suggest upgrading to f11 or 12, which has far more robust support. – Babu – 2010-02-05T22:43:09.410

1@Joe Internet: Oh please...read his question. The webcam is working perfectly with Cheese (Open Source) and not with Skype, X-Lite and QNext (all three Closed Source). – Bobby – 2010-02-05T22:59:50.460

Is your platform 64-bit? If it is, sometimes the v4l libraries have compatibility issues. The LD_PRELOAD solution worked for me and skype. – None – 2010-02-06T22:21:13.293

1Camera's model? What does v4l-info show? – liori – 2009-12-21T21:37:17.833

Any related messages on dmesg or /var/log/messages \ /var/log/syslog ? – Suppressingfire – 2009-12-21T23:06:12.240

1No WTFs needed. The "standard Linux response" here is that since Linux is open source, if you don't like what's available, you're free to develop your own solution. Not trying to be flip; Linux is what it is only by the generosity (some would say foolishness...) of others. – Joe Internet – 2009-12-21T23:22:34.877

Answers

3

It may be that the other programs you are running do not support cameras that only support V4L2 by default (e.g. the application does not support V4L2)

Try the following:

Run your application from the command-line, but prefix your command with the following:

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

This should allow compatibility with applications that use V4L1.

Also, please make sure that no other application is using the camera. Using 1 camera in more than 1 application is usually not supported.

Meta Bergman

Posted 2009-12-21T20:52:14.837

Reputation: 1 340

sorry for the delay ticking your answer! Thanks! – SpaceDog – 2010-02-16T20:12:45.607

1

In my limited experience, the application you are most likely to have success with is Ekiga. It's a standard part of Ubuntu.

That said, Webcam support in Linux is pretty rough. Sorry.

Shadowfirebird

Posted 2009-12-21T20:52:14.837

Reputation: 141

1

You may need to adjust your kernel module for various bits of improper behaviour by some camera models. try:

rmmod uvcvideo

modprobe uvcvideo quirks=2

There are other quirks values ... 2 happens to work for me for a no-name camera.

Nerdfest

Posted 2009-12-21T20:52:14.837

Reputation: 808