This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

How to find out the real value of gamma correction applied?

Problems, bugs, suggestions... anything related to SMPlayer.

How to find out the real value of gamma correction applied?

Postby konstantin » Mon Mar 24, 2014 8:23 pm

Hi!

I would like to transcode a video file with FFmpeg, and apply some gamma correction because the video is too dark. In FFmpeg I have to use this option syntax to apply the color filter: -vf 'mp=eq2=1.7:1.0:0.0:1.0:1.0:1.0:1.0'
Where the first real number (1.7) is the value of the gamma correction parameter. Other programs also use similar notation to define gamma correction. However in SMPlayer the gamma correction parameter is an integer number, for example 22. I would like to preview the video with SMplayer and to correct gamma, and than convert the applied gamma value to the format of FFMpeg. So my question is how can I convert the SMPlayer integer gamma value to the appropriate real number, usually in range 1.0-2.0.
konstantin
 
Posts: 2
Joined: Mon Mar 24, 2014 8:12 pm

Re: How to find out the real value of gamma correction appli

Postby rvm » Tue Mar 25, 2014 1:57 am

SMPlayer uses integer values because the range for brightness, contrast, gamma, hue and saturation slave commands of mplayer is from -100 to 100.

I'm afraid SMPlayer doesn't have any option to automatically convert the values.
rvm
Site Admin
 
Posts: 3787
Joined: Wed Dec 23, 2009 1:25 am
Location: España

Re: How to find out the real value of gamma correction appli

Postby konstantin » Tue Mar 25, 2014 12:45 pm

Thx, I can convert the values for myself of course (assuming linear function), but I need to know what real gamma value correspond to -100 and what value to +100.
konstantin
 
Posts: 2
Joined: Mon Mar 24, 2014 8:12 pm


Return to General

Who is online

Users browsing this forum: Google [Bot] and 27 guests