Bug 536550

Summary: fix applications to use libv4l (gspca webcams stopped working!)
Product: [openSUSE] openSUSE 11.2 Reporter: Forgotten User kXJ5nPWWig <forgotten_kXJ5nPWWig>
Component: KernelAssignee: Brandon Philips <bphilips>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P3 - Medium CC: dutchkind, forgotten_vs5edErKRK, forgotten_wbt-beX79k, jeffm, jnelson-suse
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: dmesg_after_unloading
dmesg_after_loading
cheese_without_preload
cheese_with_preload
gstreamer_test_video
Webcam images using v4l2ucp settings

Description Forgotten User kXJ5nPWWig 2009-09-03 12:57:43 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; it; rv:1.9.1.2) Gecko/20090730 Firefox/3.5.2

I've tested openSuSE 11.2 GNOME LiveCD Milestone 6 with my webcam Creative PC-CAM 600. gspca_main and gspca_sunplus modules are loaded, but the device video is not created. After unloading both modules and loading them, the device video /dev/video0 appears.
With ekiga I've selected my webcam model, but I haven't seen any image.
With cheese I've seen images from my webcam, starting the application with this sintax: 
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese
With skype the webcam video image is green, while with Adobe Flash Plugin the image is black

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 David Kerkhof 2009-11-13 07:12:33 UTC
I have the same problem with my Logitech Quickcam webcam. In skype no image, only green. I know the camera is working because in amsn I have video. In gsta-camera I have no video, exits with "no pipe", and cheese shows a test image (like on the tv), but no errors are shows. The option in cheese to select a video device is greyed out. I am member of the group video, so that is also not the cause. I installed 32bit versions of v4l libs to no avail, tried the LD_PRELOAD=xxx with skype, didn't work. To me it seems there are some apps or libraries missing that are needed for this webcam to work in certain (mainly gnome) apps, I use KDE. Have not found a solution yet.

Opensuse 11.2 x86_64 kde4
Comment 2 Forgotten User wbt-beX79k 2009-11-17 19:04:18 UTC
I have the same problem with my Creative WebCam Live! in 11.2 (x86_64), has anyone found a solution for gspca based webcams?
Comment 3 Brandon Philips 2009-11-25 07:30:03 UTC
(In reply to comment #0)
> I've tested openSuSE 11.2 GNOME LiveCD Milestone 6 with my webcam Creative
> PC-CAM 600. gspca_main and gspca_sunplus modules are loaded, but the device
> video is not created. After unloading both modules and loading them, the device
> video /dev/video0 appears.

Can you provide the dmesg output from this machine after unloading and loading the modules?

> With ekiga I've selected my webcam model, but I haven't seen any image.
> With cheese I've seen images from my webcam, starting the application with this
> sintax: 
> LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so cheese

What happens without the preload? Can you confirm that gstreamer-properties has the Video Plugin set to v4l2?

> With skype the webcam video image is green, while with Adobe Flash Plugin the
> image is black

We can't fix those apps as they are closed source, sorry.
Comment 4 Brandon Philips 2009-11-25 07:31:35 UTC
(In reply to comment #2)
> I have the same problem with my Creative WebCam Live! in 11.2 (x86_64), has
> anyone found a solution for gspca based webcams?

Please file a separate bug and assign it to me (bphilips@novell.com) and provide the output from hwinfo. Also ensure you have libv4l installed.
Comment 5 Brandon Philips 2009-11-25 07:32:42 UTC
(In reply to comment #2)
> I have the same problem with my Creative WebCam Live! in 11.2 (x86_64), has
> anyone found a solution for gspca based webcams?

See comment #4.
Comment 6 Forgotten User kXJ5nPWWig 2009-11-25 13:05:58 UTC
Created attachment 329449 [details]
dmesg_after_unloading
Comment 7 Forgotten User kXJ5nPWWig 2009-11-25 13:11:52 UTC
Created attachment 329450 [details]
dmesg_after_loading
Comment 8 Forgotten User kXJ5nPWWig 2009-11-25 13:13:15 UTC
Created attachment 329453 [details]
cheese_without_preload
Comment 9 Forgotten User kXJ5nPWWig 2009-11-25 13:14:18 UTC
Created attachment 329455 [details]
cheese_with_preload
Comment 10 Forgotten User kXJ5nPWWig 2009-11-25 13:30:10 UTC
Created attachment 329458 [details]
gstreamer_test_video

I confirm that gstreamer-properties has the Video Plugin set to v4l2, but I get an error message.
I've also compared the source sunplus.c included in openSuSE kernel with sunplus.c released by linuxtv.org.
This version has an optimized code:
http://linuxtv.org/hg/v4l-dvb/rev/7f60302cca90
and the brightness is signed:
http://linuxtv.org/hg/v4l-dvb/rev/652a4093feba
This patch is really useful because the video images from my webcam are too dark.
Is it possible to include these improvements in openSuSE kernel?
Comment 11 Forgotten User kXJ5nPWWig 2009-12-15 13:44:07 UTC
Created attachment 332665 [details]
Webcam images using v4l2ucp settings
Comment 12 Forgotten User kXJ5nPWWig 2009-12-15 13:44:50 UTC
I've solved the problem about dark images from my webcam using v4l2ucp program.
Now video images are really better than with the previous settings.
Comment 13 Jon Nelson 2010-03-10 21:48:07 UTC
Any activity on this bug?

I have the same problem, and using 
LD_PRELOAD=/usr/lib64/libv4l/v4l1compat.so name_of_app
works for me (since I'm on x86_64).

It seems like this should not be too hard to fix.
Comment 14 Brandon Philips 2010-03-10 23:48:14 UTC
It should be fixed in the next version of openSUSE by default. In the mean time you can grab the latest version of libv4l here:
 http://software.opensuse.org/main/ymp_without_arch_and_version?package=libv4l&project=devel%3Alibraries%3Ac_c%2B%2B&repository=openSUSE_11.2
Comment 15 Brandon Philips 2010-03-10 23:50:12 UTC
Bug 501959 duplicate.

*** This bug has been marked as a duplicate of bug 501959 ***