[MPlayer-dev-eng] [PATCH] add -gamma as a command line option

Andy Furniss andyqos at ukfsn.org
Thu Mar 10 11:30:36 CET 2011


Vladimir Mosgalin wrote:
> Hi Reimar Döffinger!
>
>   On 2011.03.09 at 22:13:42 +0100, Reimar Döffinger wrote next:
>
>> On Wed, Mar 09, 2011 at 12:02:21PM -0700, Kevin DeKorte wrote:
>>> This patch adds -gamma as a command line option
>>
>> Hm. Assuming this actually works there sure is nothing speaking
>> against it (and as far as I can tell it should work).
>> Just strange this comes up only now, seems there's really few people
>> caring about gamma?

When I had a CRT I used -vf eq2= and still would have to as my xv 
doesn't do gamma.
xgamma/xrandr also worked, but I found correction needed for games/vid 
was too much to look nice for general browsing/desktop.

>
> Mmm, I suddenly discovered that mplayer (or video driver? well whatever)
> exactly follows gamma set by xgamma, with any kind of gl output,
> including gl:yuv=0, gl:yuv=2 and even for xv, at least with my current
> video card&  driver. Which actually turned better solution than using
> in-mplayer gamma control (I have to set gamma for this monitor to a
> big value, 1.2, to get proper 2.2 gamma, as it's about 2.65 by default).
>
> Both gamma control work at the same time without affecting each other,
> but I don't have any reason to use mplayer gamma control now..
>
> Now, if only Xorg would stop resetting gamma when switching to fullscreen
> apps that change resolution and back *grumble*

Can't reproduce that with recent xorg.

An alternative for you could be to use xrandr, which will also work with 
multiple screens where xgamma is (was?) disabled.
With xrandr < 1 is lighter so something like -

  xrandr --output DVI-0 --gamma 0.8:0.8:0.8



More information about the MPlayer-dev-eng mailing list