Changing VLC 0.86c brightness,hue,contrast in .Net

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
knuckels23
New Cone
New Cone
Posts: 2
Joined: 25 Jul 2007 11:31

Changing VLC 0.86c brightness,hue,contrast in .Net

Postby knuckels23 » 27 Jul 2007 16:36

Hi,

I am using the .Net interface provided by Tappen.
I need to control the brightness, contrast,hue in the code.
I belive that the following lines of code should do it....

this.vlc.AllowVideoAdjustments = true;
this.vlc.Brightness = 10;

But there is no change in the playing video's brightness :cry:

Am i using it correctly or am I missing any thing...
Are there any other alternatives to this...

Thanks in advance :D

cheers
Paul

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

Re: Changing VLC 0.86c brightness,hue,contrast in .Net

Postby dionoea » 27 Jul 2007 16:47

You might want to ask in this forum category instead: viewforum.php?f=16 (which is where all ActiveX related posts are made).
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

lallous
New Cone
New Cone
Posts: 6
Joined: 23 Jun 2008 10:09

Re: Changing VLC 0.86c brightness,hue,contrast in .Net

Postby lallous » 23 Jun 2008 18:35

Yes you are right, the AllowVideoAdjustments should have worked, but it isn't for some reason's you can find out while debugging the code. To make a long story short, use this as a quick fix in NativeLibVlc.cs :

string[] initOptions =
{
NativeLibVlc.vlcInstallDirectory,
":no-one-instance",
":no-loop",
":no-drop-late-frames",
":disable-screensaver",
":vout=vout_directx",
"--vout-filter=adjust",
"--plugin-path=" + NativeLibVlc.vlcInstallDirectory + @"\plugins",
};

Notice, how the "--vout-filter=adjust" line was added, that's all. And now you can drop the AllowVideoAdjustments.

--
Elias


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 68 guests