Video adjustments not working correctly

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Video adjustments not working correctly

Postby fred.hild » 30 Jul 2007 16:14

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

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Video adjustments not working correctly

Postby fred.hild » 01 Aug 2007 11:45

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?

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Video adjustments not working correctly

Postby funman » 01 Aug 2007 13:02

how do you set vlc_value_t ?

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Video adjustments not working correctly

Postby fred.hild » 01 Aug 2007 13:19

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Video adjustments not working correctly

Postby dionoea » 07 Aug 2007 14:39

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.)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Video adjustments not working correctly

Postby fred.hild » 07 Aug 2007 17:24

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

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Video adjustments not working correctly

Postby dionoea » 07 Aug 2007 17:26

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.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

fred.hild
Blank Cone
Blank Cone
Posts: 41
Joined: 11 Jun 2007 08:40
Operating System: Windows
Location: Uppsala, Sweden

Re: Video adjustments not working correctly

Postby fred.hild » 07 Aug 2007 17:30

Ok thanks


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 57 guests