Page 1 of 1

How to change Brightness and Contrast using libvlc

Posted: 06 Oct 2015 12:43
by Ellora
Hi,

I am using libvlc 2.2.1.
I want to change the brightness and contrast of the video.

Here is the code snippet i am using. Its a C# wrapper to libvlc APIs.
LibVlc.libvlc_video_set_adjust_int(HandlePlayer, libvlc_video_adjust_option_t.libvlc_adjust_Enable, 1);
LibVlc.libvlc_video_set_adjust_float(HandlePlayer, libvlc_video_adjust_option_t.libvlc_adjust_Brightness, value); //Value ranges from 0.0 to 2.0

But i dnt see any change in the brightness.
Please let me know if I am missing any step ?

Just wondering, do we need to set any command line args while creating libvlc instance like video filter or something ?

Thanks

Re: How to change Brightness and Contrast using libvlc

Posted: 06 Oct 2015 13:26
by RĂ©mi Denis-Courmont
It's the other way: you should not pass ANY arguments to libvlc_new(). But those functions might be bugged.

Re: How to change Brightness and Contrast using libvlc

Posted: 07 Oct 2015 08:51
by Ellora
If i try to get the value of brightness after set, i get the correct value. But i dnt see any change in the brightness on the screen.
Even i tried without passing any arguments and facing the same issue.

Please let me know if there is any other way to make it work.
I am not finding any proper steps even after google search.

Re: How to change Brightness and Contrast using libvlc

Posted: 07 Oct 2015 18:38
by sherington
Did you try setting the enable value *after* setting the brightness value.