[vlc-devel] Can<t set the hue programatically...

Antoine Cellerier dionoea at videolan.org
Mon May 26 10:32:12 CEST 2008

On Fri, May 23, 2008, jboileau wrote:
> I am trying to access the adjust module programaticaly by adding
> functionnality to libvlc. First I make sure my libvlc instance is
> created using the option --video-filter=adjust{hue=200}. This part
> works because when I play a video I can see the greenish hue this
> value produces. Then, while the video is playing, I try to set the hue
> using this code, but nothing changes:
>     val.i_int = 0;
>     var_Set( p_vout, "hue", val );

What VLC version are you using?

I'd guess git master so here it comes:
the "hue" setting is attached to the "adjust" video filter2 object. So
you'd need to run var_Set( p_filter, "hue", val ); (btw, you can use

If the adjust filter wasn't already available in the filter chain, you
can just use var_SetString( p_vout, "video-filter", "adjust" );

You can read modules/gui/qt4/components/extended_panels.cpp to see a
(complex) code example.

Antoine Cellerier

More information about the vlc-devel mailing list