Page 1 of 1

Video adjustments not working correctly

Posted: 30 Jul 2007 16:14
by fred.hild
Hello.
I am trying to use the libvlc in a small program (as you might have seen in my previous posts).
The problem this time is with the video adjustments. I have used the adjustment filter together with
the .Net wrapper klass before and it works fine.

When I try doing the same thing on my own it wont work. The problem is that when i have activated the vout-filter and then tries to set, for example, the brightness the videos brightness changes but always to the same value. The value 0 . So for some reason when I am trying to set the value the change is activated but the value is not acctually set. I have tried to fetch the value right after my atempt to set it, but it is always 0.

I am activating the vout-filter by calling the __config_PutPsz and trying to set the values by calling __var_Set

Why doesnt the changes work?

thanks in advance /fred.hild

Re: Video adjustments not working correctly

Posted: 01 Aug 2007 11:45
by fred.hild
I have got it to behave a little bit better now. I seems that there is something wrong with my mapping of libvlc __var_Set the strange thing is that i work for many other things but not for floats. I tried to, instead of defining it with vlc_value_t (which it should), definine it with just float. And the strange thing is that it works. So it works when im sending a float to a function that takes a vlc_value_t. Im happy it works but it really shouldnt work or should it?

Re: Video adjustments not working correctly

Posted: 01 Aug 2007 13:02
by funman
how do you set vlc_value_t ?

Re: Video adjustments not working correctly

Posted: 01 Aug 2007 13:19
by fred.hild
I just sets the f_float value directly (eg vlc_value_t.f_float = 1.5F). This seem to work in the .Net wrapperclass (Im conding in C++ and not .net) so I dont understand why it doesnt work for me.
I have defined my vlc_value_t on my own (as the did in the wrapperclass) so I dont have to include all VLCs headers.

/fred.hild

Re: Video adjustments not working correctly

Posted: 07 Aug 2007 14:39
by dionoea
What VLC version do you use?
What object do you var_Set on?
(Note that config_Set won't change parameters of a filter instance that's already active ... but it's still needed if you want to keep the parameters after the filter instance unloads.)

Re: Video adjustments not working correctly

Posted: 07 Aug 2007 17:24
by fred.hild
Im using VLC 0.8.6b
The object is VLC_OBJECT_VOUT

How do I change a value in a filter thats already active?
Can I check somehow if the filter is active or not?
I only want the settings to affect the video Im about to play. The settings dont have to be saved.
But using the config_Set is the only way I got the filter running.

Thanks in advance / fred.hild

Re: Video adjustments not working correctly

Posted: 07 Aug 2007 17:26
by dionoea
Ah, I don't know about all that .Net specific wrapping layer. You might want to ask your question in the ActiveX related forum category.

Re: Video adjustments not working correctly

Posted: 07 Aug 2007 17:30
by fred.hild
Ok thanks