iSight camera images have green/purple tint

Bug #345080 reported by Steffen Röcker
132
This bug affects 22 people
Affects Status Importance Assigned to Milestone
Cheese
Invalid
Undecided
Unassigned
Mactel Support
Invalid
Undecided
Unassigned
gst-plugins-good
Invalid
Undecided
Unassigned
cheese (Ubuntu)
Invalid
Medium
Unassigned
Jaunty
Invalid
Undecided
Unassigned
Karmic
Invalid
Medium
Unassigned
libv4l (Ubuntu)
Fix Released
Medium
Unassigned
Jaunty
Won't Fix
Undecided
Unassigned
Karmic
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: cheese

The picture in cheese is green/purple.
Cheese doesn't set the right colorspace format.

distro: jaunty
version: cheese 2.25.92-0ubuntu1

device:
Bus 001 Device 006: ID 05ac:8501 Apple, Inc. Built-in iSight [Micron]
(uvcvideo)

wrong green/purple picture:
$ gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink

right picture with normal colors:
$ gst-launch-0.10 v4l2src ! video/x-raw-yuv,format=\(fourcc\)UYVY,width=640,height=480 ! ffmpegcolorspace ! ximagesink

Tags: patch

Related branches

Revision history for this message
Steffen Röcker (sroecker) wrote :
Revision history for this message
Steffen Röcker (sroecker) wrote :

Empathy also uses gstreamer but shows me a smaller but normal picture.

Revision history for this message
Sebastian Thürrschmidt (thuerrschmidt) wrote :

Same problem here, iSight in MacBook 4,1, Jaunty Beta. Greenish image in Cheese, but extended gst-launch-0.10 command delivers correct colors.

summary: - cheese uses wrong colorspace format
+ iSight camera images have green/purple tint
Changed in cheese (Ubuntu):
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Robert Ancell (robert-ancell) wrote :

From bug 357051:
cheese is not using gconfvideosrc which is configured via gstreamer-properties.
instead it tries to detect the camera. for the iSights this fails.
it tries to use rgb instead of yuv from the camera, resulting in green images,
https://help.ubuntu.com/community/MactelSupportTeam/AppleiSight
suggests to set gstreamer-properties, this no longer works in cheese.

Revision history for this message
j^ (j) wrote :

a patch to make cheese use UYVY, this might break other cameras though

Revision history for this message
Filippo Argiolas (fargiolas) wrote :

Cheese doesn't fail anything here. It is a known libv4l bug. Hans has fixed it in a test development snapshot and it will definitely be fixed in the next release. See http://bugzilla.gnome.org/show_bug.cgi?id=571772

Changed in gst-plugins-good:
status: New → Invalid
Changed in cheese (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

Is it the same as bug #349255 ?

Revision history for this message
Filippo Argiolas (fargiolas) wrote :

> Is it the same as bug #349255 ?

Yes it is, marked as duplicate

Revision history for this message
NoBugs! (luke32j) wrote :

I was able to fix it by using the previous version of the v4l webcam driver:
Download the .deb at the bottom of this page:
http://packages.ubuntu.com/intrepid/libv4l-0

Go to the directory you downloaded it, run:
sudo dpkg -i ./libv4l-0_0.5.0-3~intrepid1_i386.deb

Revision history for this message
eriko (ugrossek) wrote :

Great, this works for me to. Thanks a lot.

Revision history for this message
j^ (j) wrote :

great works here with skype too, for 64bit i had to downgrade lib32v4l too, here is what i did:

wget http://de.archive.ubuntu.com/ubuntu/pool/main/libv/libv4l/lib32v4l-0_0.5.0-3~intrepid1_amd64.deb
wget http://de.archive.ubuntu.com/ubuntu/pool/main/libv/libv4l/libv4l-0_0.5.0-3~intrepid1_amd64.deb
sudo dpkg -i libv4l-0_0.5.0-3~intrepid1_amd64.deb lib32v4l-0_0.5.0-3~intrepid1_amd64.deb
echo lib32v4l-0 hold | sudo dpkg --set-selections
echo libv4l-0 hold | sudo dpkg --set-selections

Revision history for this message
Steffen Röcker (sroecker) wrote :

Can we make this a SRU?
I looked at Hans de Goedes patch, it's a trivial one line patch.
I have tested it on my Macbook1,1 and it works fine now.

I have attached a diff and uploaded a patched version to my ppa.

(You can still fix the unnecessary conversion later on.)

Changed in libv4l (Ubuntu):
status: New → Confirmed
Revision history for this message
Steffen Röcker (sroecker) wrote :
Changed in libv4l (Ubuntu):
status: Confirmed → Fix Released
James Westby (james-w)
Changed in libv4l (Ubuntu):
importance: Undecided → Medium
status: Fix Released → Triaged
Revision history for this message
SheaN (snewton2) wrote :

I'm pretty new at this...

Installed lib4vl-0.5.98 without incident on a MacBook 1,1 but the image in Cheese is still green.

Revision history for this message
Otto Kekäläinen (otto) wrote :

I'm using Jaunty and I can confirm this issue. In Jaunty, the default libv4l version is 0.5.8 (http://packages.ubuntu.com/jaunty/libv4l-0).

I installed version 0.5.98 from source as #13 suggests, but that didn't work (picture still green). I also installed version 0.5.9-1 from Karmic with Gdebi, but that didn't work either (both Cheese and Ekiga crash with the error message "memory override").

Finally I got it working by installing version 0.5.99 from source. Here is how:

1. download and unpack http://people.atrpms.net/~hdegoede/libv4l-0.5.99.tar.gz on your computer
2. install build dependencies with command:
  sudo apt-get build-dep libv4l-0
3. go to correct directory:
  cd libv4l-0.5.99/
4. compile:
  make
5. install:
  sudo make install PREFIX=/usr
6. shut down the computer completely and then turn it on again for to camera to reset

Now it works correctly for me!

I guess this bug will be automatically fixed for Karmic if it will contain the libv4l version 0.5.99

Revision history for this message
Martin Pitt (pitti) wrote :

I confirmed that this patch is applied upstream in the latest version, I'll sponsor this.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libv4l - 0.5.9-1ubuntu1

---------------
libv4l (0.5.9-1ubuntu1) karmic; urgency=low

  * libv4lconvert/rgbyuv.c: Fix UYVY->YUV420 conversion. Patch backported from
    upstream. Thanks to Steffen Röcker and Hans de Goede! (LP: #345080)

 -- Martin Pitt <email address hidden> Fri, 03 Jul 2009 18:10:07 +0200

Changed in libv4l (Ubuntu Karmic):
status: Triaged → Fix Released
Revision history for this message
ferriol (ostres) wrote :

Ok,

I installed libv4l package of karmic: http://packages.ubuntu.com/karmic/libv4l-0
And now works fine, no more green tint image.

Thanks !!!

Revision history for this message
Edgar Mes (tripundra) wrote :

Hey,

iSight problem here!
Macbook 2,1 with Jaunty
installed the libv4l
Gstreamer gives error (video0) not found
Not even a green color! ;)

lsusb shows ishight as present but no firmware loaded. Idid load isight-firmware-tools! as posted on other threads!

any ideas?

thanks
Edgar

Revision history for this message
Aldrin Martoq (amartoq) wrote : Re: [Bug 345080] Re: iSight camera images have green/purple tint

On Sat, Jul 18, 2009 at 4:16 PM, Edgar Mes<email address hidden> wrote:
> iSight problem here!
> Macbook 2,1 with Jaunty
> installed the libv4l
> Gstreamer gives error (video0) not found
> Not even a green color! ;)

Is not related to this bug then, please don't report it here.

> lsusb shows ishight as present but no firmware loaded. Idid load isight-
> firmware-tools! as posted on other threads!
> any ideas?

Check Ubuntu Mactel support first:
https://help.ubuntu.com/community/MacBook2-1/
https://wiki.ubuntu.com/MactelSupportTeam/

I guess you need to SHUTDOWN completely your Macbook, as stated there.

--
Aldrin Martoq
http://aldrin.martoq.cl/

Revision history for this message
Ricky Campbell (cyberdork33) wrote : Re: [Mactel-support] [Bug 345080] Re: iSight camera images have green/purple tint

Then your firmware isn't loading and this is not the appropriate bug.
Installing IFT isn't the only step.

Ricky

On Jul 18, 2009, at 3:16 PM, Edgar Mes <email address hidden> wrote:

> Hey,
>
> iSight problem here!
> Macbook 2,1 with Jaunty
> installed the libv4l
> Gstreamer gives error (video0) not found
> Not even a green color! ;)
>
> lsusb shows ishight as present but no firmware loaded. Idid load
> isight-
> firmware-tools! as posted on other threads!
>
> any ideas?
>
> thanks
> Edgar
>
> --
> iSight camera images have green/purple tint
> https://bugs.launchpad.net/bugs/345080
> You received this bug notification because you are a member of Mactel
> Support, which is the registrant for Mactel Support.
>
> Status in Cheese Camera Application: New
> Status in GStreamer Plugins (Good): Invalid
> Status in Mactel Support: New
> Status in “cheese” package in Ubuntu: Invalid
> Status in “libv4l” package in Ubuntu: Fix Released
> Status in cheese in Ubuntu Jaunty: New
> Status in libv4l in Ubuntu Jaunty: New
> Status in cheese in Ubuntu Karmic: Invalid
> Status in libv4l in Ubuntu Karmic: Fix Released
>
> Bug description:
> Binary package hint: cheese
>
> The picture in cheese is green/purple.
> Cheese doesn't set the right colorspace format.
>
> distro: jaunty
> version: cheese 2.25.92-0ubuntu1
>
> device:
> Bus 001 Device 006: ID 05ac:8501 Apple, Inc. Built-in iSight [Micron]
> (uvcvideo)
>
> wrong green/purple picture:
> $ gst-launch-0.10 v4l2src ! ffmpegcolorspace ! ximagesink
>
> right picture with normal colors:
> $ gst-launch-0.10 v4l2src ! video/x-raw-yuv,format=\(fourcc\)
> UYVY,width=640,height=480 ! ffmpegcolorspace ! ximagesink
>
> _______________________________________________
> Mailing list: https://launchpad.net/~mactel-support
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~mactel-support
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Steffen Röcker (sroecker) wrote :

The patch should also be applied to jaunty.

Changed in libv4l (Ubuntu Jaunty):
status: New → Confirmed
Changed in cheese (Ubuntu Jaunty):
status: New → Confirmed
status: Confirmed → Invalid
tags: added: patch
Martin Pitt (pitti)
Changed in libv4l (Ubuntu Jaunty):
status: Confirmed → Won't Fix
Changed in cheese:
status: New → Invalid
Changed in mactel-support:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.