Page 1 of 1

Effects and Filters

Posted: 04 Apr 2012 14:26
by frax
Hello

Im developing an video application with Libvlc on windows. I like to be able to adjust things like "brightness" and "saturation" is there a way to bringup the "Effects and Filter" dialog and adjust these from there ?

Re: Effects and Filters

Posted: 04 Apr 2012 16:25
by Rémi Denis-Courmont
No. That's part of the VLC UI.

Re: Effects and Filters

Posted: 05 Apr 2012 11:27
by frax
Ok . If I like to build a new dialog for this ( adding filters and adjusting parameters on them ) is it possible to adjust parameters and add/remove filters while playing media through Libvlc api?

Re: Effects and Filters

Posted: 05 Apr 2012 14:15
by Rémi Denis-Courmont
Some filters are supposed to be exposed but very few. And the guy that wrote that code ran away.

So some LibVLC patching will be needed.

Re: Effects and Filters

Posted: 05 Apr 2012 14:31
by sherington
These methods still work don't they?

http://www.videolan.org/developers/vlc/ ... video.html

Code: Select all

LIBVLC_API int libvlc_video_get_adjust_int (libvlc_media_player_t *p_mi, unsigned option) LIBVLC_API void libvlc_video_set_adjust_int (libvlc_media_player_t *p_mi, unsigned option, int value) LIBVLC_API float libvlc_video_get_adjust_float (libvlc_media_player_t *p_mi, unsigned option) LIBVLC_API void libvlc_video_set_adjust_float (libvlc_media_player_t *p_mi, unsigned option, float value)
I use these in my Java bindings to set/get brightness etc on-the-fly, but with my own dialog of course. I have not used them for a while, but they certainly used to work.

Re: Effects and Filters

Posted: 05 Apr 2012 15:38
by Rémi Denis-Courmont
I am not sure. I have heard some reports that they did not work, but it could be confused developers too. The code did seem to have some, err, bugs last time I looked at it.

In any case, this is quite a small subset of the audio and video filters.

Re: Effects and Filters

Posted: 10 Apr 2012 13:44
by frax
Fine functions for the "adjust " filter! I did not found them before. But as mentioned before there is more filters. I found that someone worked on a function

Code: Select all

libvlc_set_video_filter(
http://mailman.videolan.org/pipermail/v ... 83636.html


That seems to do the things im looking for but I dont find it in the source (2.0.1) that I downloaded. Is is something wrong with these functions ?