How to change Brightness and Contrast using libvlc
Posted: 06 Oct 2015 12:43
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
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