After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 505538 - Colors are way off in Cheese
Colors are way off in Cheese
Status: RESOLVED INVALID
Product: cheese
Classification: Applications
Component: general
2.21.x
Other All
: Normal major
: ---
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2007-12-25 10:37 UTC by Mårten Woxberg
Modified: 2008-01-23 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
White paper, red shirt (6.46 KB, image/jpeg)
2007-12-25 10:38 UTC, Mårten Woxberg
Details

Description Mårten Woxberg 2007-12-25 10:37:32 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
Comment 1 Mårten Woxberg 2007-12-25 10:38:16 UTC
Created attachment 101572 [details]
White paper, red shirt

Attaching picture taken with cheese.
Comment 2 daniel g. siegel 2007-12-25 15:54:01 UTC
is your camera v4l one? i already saw this problem somewhere....
Comment 3 Mårten Woxberg 2007-12-26 17:14:57 UTC
Yes, it functions only with the v41 drivers not VideoForLinux4v2.
Comment 4 daniel g. siegel 2007-12-26 19:04:49 UTC
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
Comment 5 Jaap A. Haitsma 2007-12-26 19:39:09 UTC
Marten,

Does the following command in a terminal result in an OK picture?

gst-launch v4lsrc ! ffmpegcolorspace ! ximagesink
Comment 6 Mårten Woxberg 2007-12-29 10:54:11 UTC
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.
Comment 7 daniel g. siegel 2007-12-29 11:01:45 UTC
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
Comment 8 Jaap A. Haitsma 2007-12-29 19:25:22 UTC
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.
Comment 9 Mårten Woxberg 2007-12-31 23:57:19 UTC
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.

Comment 10 Jaap A. Haitsma 2008-01-01 17:48:35 UTC
Can you paste the output of

cheese --verbose

overhere

Comment 11 Mårten Woxberg 2008-01-01 21:49:39 UTC
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

Comment 12 daniel g. siegel 2008-01-01 23:04:28 UTC
sorry, but why dont you try cheese 0.3.0?
Comment 13 Mårten Woxberg 2008-01-02 17:17:36 UTC
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?
Comment 14 Jaap A. Haitsma 2008-01-02 17:20:52 UTC
Putting bug on NEEDINFO. I guess we have to wait until hardy comes out
Comment 15 Michael Monreal 2008-01-04 13:21:41 UTC
I get a very similar (blue-ish) picture with cheese, but also with gstreamer-properties.  I will try if updating the gstreamer packages helps.
Comment 16 Jaap A. Haitsma 2008-01-04 16:24:36 UTC
Michael are you using the 0.3 or 0.2.x version of cheese?

Comment 17 Michael Monreal 2008-01-04 16:29:08 UTC
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.
Comment 18 Michael Monreal 2008-01-04 16:36:31 UTC
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?
Comment 19 daniel g. siegel 2008-01-04 16:46:47 UTC
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?
Comment 20 Jaap A. Haitsma 2008-01-04 17:32:34 UTC
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
Comment 21 Michael Monreal 2008-01-23 16:46:55 UTC
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.