GNOME Bugzilla – Bug 505538
Colors are way off in Cheese
Last modified: 2008-01-23 18:41:07 UTC
Please describe the problem: I use a Creative Webcam Instant P0620. When trying gstreamer-properties and ekiga the colors in the camera works great (although the picture is a bit small). But when I use Cheese my red shirt turns blue etc... It's almost better if I use the Hulk filter all the time to get more correct colors. Steps to reproduce: 1. Start Cheese 2. Wait for picture 3. Watch Actual results: I get a picture with wrong colors Expected results: To get a picture with the correct colors. Does this happen every time? Yes Other information: This is Using 2.4 of Cheese on a Ubuntu 8.04 system if that has any effect
Created attachment 101572 [details] White paper, red shirt Attaching picture taken with cheese.
is your camera v4l one? i already saw this problem somewhere....
Yes, it functions only with the v41 drivers not VideoForLinux4v2.
ah, yeah i can recall it now, it was rev176 http://svn.gnome.org/viewvc/cheese?view=revision&revision=176 i need to look up if that patch is still there
Marten, Does the following command in a terminal result in an OK picture? gst-launch v4lsrc ! ffmpegcolorspace ! ximagesink
Yes, the colors are good now. The Area is a quarter of the size though. This camera supports 640x480 video, I hope Cheese automatically uses that.
jaap, r176 is still there and i even think this gstreamer bug went into the latest release. anyway this problem should be related to cheese
Marten, Is it just the photos that are incorrect in cheese are also the preview video? It seems that the red and the blue channel are somehow switched with your camera. To make sure can you hold something red, green and blue in front of your camera In the coding we're forcing gstreamer to produce RGB in that order. So I think the problem is actually not in cheese.
it's the photos and the preview video. both of them. I had a red shirt on and it's blue, see my previous attachment. Since your's is the ONLY program that I'm experiencing this with I'd still say it's Cheese... So far I've tested, gstreamer-properties, ekiga and skype. They all produce the correct results. Is there any other program I should test? I won't be able to test anything else after the 1st of January since it's my parents new camera and I'll be going home (840 km away) on the 2nd.
Can you paste the output of cheese --verbose overhere
Here's the output from running cheese --verbose (version 0.2.4) and then taking a picture. max@ubuntu:~$ cheese --verbose appending /home/max/.gnome2/cheese/images/Picture01.jpg to thumbnail row appending /home/max/.gnome2/cheese/images/Picture02.jpg to thumbnail row appending /home/max/.gnome2/cheese/images/Picture03.jpg to thumbnail row appending /home/max/.gnome2/cheese/images/Picture04.jpg to thumbnail row ** Message: Probing the webcam, please ignore the following, not applicabable tries ** Message: Error running pipeline 'v4l2src ! fakesink': Fel vid hämtning av förmågor för enheten "/dev/video0": Den är inte en v4l2-drivrutin. Kontrollera om den är en v4l1-drivrutin. [v4l2_calls.c(80): gst_v4l2_get_capabilities (): /pipeline0/v4l2src0: system error: Ogiltigt argument] ** Message: test pipeline for v4l2src failed: [v4l2src ! fakesink]: Fel vid hämtning av förmågor för enheten "/dev/video0": Den är inte en v4l2-drivrutin. Kontrollera om den är en v4l1-drivrutin. ** Message: Error running pipeline 'v4lsrc ! video/x-raw-rgb,width=640,height=480 ! fakesink': Could not negotiate format [gstbasesrc.c(2293): gst_base_src_start (): /pipeline1/v4lsrc0: Check your filtered caps, if any] ** Message: test pipeline for v4lsrc failed: [v4lsrc ! video/x-raw-rgb,width=640,height=480 ! fakesink]: Could not negotiate format ** Message: Error running pipeline 'v4lsrc ! video/x-raw-yuv,width=640,height=480 ! fakesink': Could not negotiate format [gstbasesrc.c(2293): gst_base_src_start (): /pipeline2/v4lsrc1: Check your filtered caps, if any] ** Message: test pipeline for v4lsrc failed: [v4lsrc ! video/x-raw-yuv,width=640,height=480 ! fakesink]: Could not negotiate format using photo source: v4lsrc ! video/x-raw-rgb,width=320,height=240 ! ffmpegcolorspace using video source: v4lsrc ! video/x-raw-rgb,width=320,height=240 ! ffmpegcolorspace Photo saved: /home/max/.gnome2/cheese/images/Picture05.jpg (320x240) ** Message: new file found: /home/max/.gnome2/cheese/images/Picture05.jpg creating thumbnail for /home/max/.gnome2/cheese/images/Picture05.jpg (image/jpeg) appending /home/max/.gnome2/cheese/images/Picture05.jpg to thumbnail row
sorry, but why dont you try cheese 0.3.0?
I'm not at the camera now... But the reason I didn't try Cheese 0.3.0 was that there wasn't any .deb for it for Ubuntu Gutsy (or feisty for that mather). That's why I specifically stated that I used the 0.2.4 version in my first post. Would it be possible to leave this bug in the NEED INFO state until a 0.3.0 release is available in .deb form so I can instruct my Dad to try it out?
Putting bug on NEEDINFO. I guess we have to wait until hardy comes out
I get a very similar (blue-ish) picture with cheese, but also with gstreamer-properties. I will try if updating the gstreamer packages helps.
Michael are you using the 0.3 or 0.2.x version of cheese?
Currently I "use" trunk. Cheese used to work some time ago, but I don't really remember when it broke. Updating gstreamer packages did not fix the problem btw... I'll try an older release if I can find it now.
Update: just tested cheese 0.2.4 and 0.2.1, of which I'm quite sure they used to work just fine. Well, not anymore :( So my problem is caused by a bug in gstreamer, introduced perhaps 2 month ago. If I have the time I will try to build an older gstreamer release to verify. Any idea what element could be broken?
this was fixed with 0.10.15 http://webcvs.freedesktop.org/gstreamer/gst-plugins-base/sys/v4l/gstv4lsrc.c?revision=1.107&view=markup jaap, we should drop our "color-forcing" now?
Indeed 2008-01-04 Jaap Haitsma <jaap@haitsma.org> * src/cheese-webcam.c: Color forcing not needed anymore. This has been fixed in gstreamer http://webcvs.freedesktop.org/gstreamer/gst-plugins-base/sys/v4l/gstv4lsrc.c?revision=1.107&view=markup
So I updated my gstreamer stack and cheese now but I still get the blueish visual... even in gstreamer-properties, so I guess I will have to file a bug against gstreamer.