Fix blue tinted video in Ubuntu

by
on
March 12, 2009

A strange issue has been identified in Ubuntu where video takes on a blue colored tint. Other descriptions of the problem include inverted colors, blue skin tones, or distorted video hues. The problems have been reproduced with Totem (Gstreamer), Totem (Xine), Mplayer, as well as VLC and other players.

The common theme with this bug seems to be the use of the Nvidia closed source drivers.

Update 3/11/2011: The problem has been isolated to the interaction between the proprietary NVIDIA driver and the X video extension. The fix should now restore correct video color to all players.

Here is an example showing the blue tint problem.

blue_tint_totem

There are 3 fixes you can try. I have listed them from best to worst.

Fix 1: Install the recomended NVIDIA drivers

Change to the recommended drivers.

System -> Administration -> Additional Drivers

You should have 2 proprietary drivers available. Choose the recommended driver which should be your second option. Restart your system and you should be good to go!

Fix 2: Create a custom setting in gstreamer-properties

Make a change to gstreamer-properties.

Open gstreamer-properties from within a terminal.

$ gstreamer-properties

Now click on the Video tab. From the Plugin dropdown box select Custom. Finally add the following line to the Pipeline box.

videobalance hue=-1 ! autovideosink

The window should look like this.

gstreamer_properties

Fix 3: Turn off Xv optimizations

This is basically your last resort. This will fix your issues for all video players but will result in higher CPU utilization.

Make a change to gstreamer-properties.

Open gstreamer-properties from within a terminal.

$ gstreamer-properties

Now click on the Video tab. From the Plugin dropdown box select X Window System (No Xv).

40 Comments
ubuntu
, , , , , , , , , , , , , ,

Related posts:

  1. Enable HDMI output on Dell XPS M1530/M1330 with Ubuntu
  2. Fix Slow Animations in GNOME Shell for NVIDIA Graphics Cards
  3. YouTube Begins Transcoding All Video to WEBM
  4. Insert a timestamp in your Tomboy notes
  5. How to fix unresponsive Flash player on Ubuntu

Comments (37)

does anybody know the specific steps for other players?

thanks

Well mantvydas, that is pretty simple. Most of the gstreamer settings are general, so with changing this settings will also have effect on VLC.

unfortunately, doesn’t work on VLC… any other suggestions?

Thanks, works great for Totem. Hopefully there will be enough of us linux users soon that companies will have to stop making second rate products for us.

Hello,

thnx for tips.
It works for totem player perfectly.
In case of MPlayer you need to play around with
mplayer’s video preferences (I’ve switched driver xv —> gl) and everything looks great.

Cheers,
Jan

Great hint. Thank you and the google.

worked great! thank you very much :) !

Thanks a bunch. Very helpful.

Thanks. Worked great.

Worth mentioning that if you -like me – automatically sudo’ed the gstreamer-properties command, this will not work. I guess that sets the properties for the root user, not your current user.

… Now if I can only get rid of the video-tearing, I can free up my Windows partition for good :)

See workaround in this bug:
https://bugs.launchpad.net/totem/+bug/395476 , assuming you’re using the closed-source nvidia drivers:
# open totem via Applications > Sound & Video > Movie Player
# open the preferences window via Edit > Preferences
# select the Display tab
# click the Reset to Defaults button

… that fixed the blue tint problem for me in mplayer, VLC, and totem.

    Reset to defaults in Movie Player’s preferences didnt work for me but setting gstreamer-properties worked great. Thanks.

Worked like a charm, cheers

Thank you, it solved my issues with weird colors video playback on all players on Ubuntu 10.04 Lucid Lynx. But I use ATI closed-source drivers, so it seems to be not only NVidia problem.

Thank you!!!!I was really start to think that I am doomed with the new drivers of nvidia…

Thanks Nick J what a hero :-)

THANK YOU!

For me the problem was in the “NVIDIA X-Server Settings” and the tab called “X Server XVideo Settings”. The HUE was at the wrong setting ( all the way down ). Use “Reset hardware defaults” to bring it back to its nominal value. Voilà!

    this was the only helpful solution i found.

Thanks Nick J, your solution works

Thank you for your help. It works.

I tried the gstreamer-properties solution which fixed the issue for the Totem player but that left all other video players with the same problem. Tonight I decided to try changing my NVIDIA driver to the one not yet active. I also removed the Totem property setting for testing purposes.

After rebooting I popped a DVD in and Totem appeared to display the color correctly and so does VLC which previously displayed the color incorrectly. So then I changed the video driver back and….still no problems. I think one of the Ubuntu system updates that I have applied after the fix described in this post must have fixed the problem in general.

Can anyone else confirm that this problem has gone away (after updates) system wide?

open: system->Administration->NVIDIA X Server Setting
Click the tab “X server XVideo Setting”, then you will see “Hue” tab,While open your video player,DIY the Variable until the color is adpated.

You you could edit the webpage name Fix blue tinted video in Ubuntu | WiredRevolution.com to more better for your subject you make. I loved the the writing however.

guys simple change your NVIDIA 731 driver to recommended………

its wonderful !!
thank youu

Go to NVIDIA X server sittings >> X server display configuration >> and choose reset

this fixed my problem hope it help anyone goes here

My fav tip of the day!

Thx, about two yaers laters, it always work, I could fix that pb with ur help, thanks again.

    I’m glad that this helped you out!

worked like charm…thanks !!!

Unfortunately, none of these solution work for me on Ubuntu 10.04 for Xine on a Macbook.

Thanks so much. Fix number 2 solved this very annoying problem!
Appreciated :)

THANK YOU! fix 2 worked perfectly.
since i wanted the driver because it ran the ubuntu effects more smoothly, I didn’t want to remove it.

THX fix 1 works perfectly.
I am using ubuntu 11.04 and nvedia8400GS.

Fix 1 is not a feasible solution because the “recomended” NVidia driver is completely broken; it may fix the blueshifted colors, but it screws up almost everything else (I wonder why it has been released, it’s still beta crap)
I’ll try fix 2

Fix 2 works great!! :)

Any news about the real fix? If the bug has been isolated already 3 months ago I can’t believe the fix hasn’t been released yet.

Note that the “recommended” NVidia drivers (which now can be used on ubuntu 11.10) does NOT fix the issue at all.

Leave a Comment

(displayed with your post)
(will not be published)
(optional)

Copyright 2008-2010 WiredRevolution.com. All rights reserved.