Lua for effects

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
infotermoo
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2012 13:20

Lua for effects

Postby infotermoo » 19 Sep 2012 13:33

Hello!

I have question regarding controlling post-processing effects from scripting environment.
I have searched a lot, but haven't found the answer.

Is it possible to change effects (brightness for example) from telnet/http/lua scripts?
I would need to do it while the VLC is running.

Thanks for answers!
Timo

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Lua for effects

Postby Jean-Baptiste Kempf » 19 Sep 2012 20:55

You should be able to do it with http xml requests.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

infotermoo
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2012 13:20

Re: Lua for effects

Postby infotermoo » 19 Sep 2012 20:58

Could You point out a documentation for this? Google is not that helpful this time.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Lua for effects

Postby Jean-Baptiste Kempf » 19 Sep 2012 21:02

Look at lua/intf/modules/httprequests.lua in vlc source code.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

infotermoo
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2012 13:20

Re: Lua for effects

Postby infotermoo » 20 Sep 2012 01:11

Thanks, found it. Added new a command for it:

elseif command == "brightness" then
vlc.config.set("brightness",val)

Just on more thing, the adjustment settings seems to be activated when I un-tick and tick "Adjust Image" checkbox in GUI. Any way to reload them with lua?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Lua for effects

Postby Jean-Baptiste Kempf » 20 Sep 2012 17:57

CHange the video filters string
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

infotermoo
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2012 13:20

Re: Lua for effects

Postby infotermoo » 20 Sep 2012 21:16

should it be
vlc.config.set("video filters","")
vlc.config.set("video filters","adjust")
?

infotermoo
New Cone
New Cone
Posts: 7
Joined: 19 Sep 2012 13:20

Re: Lua for effects

Postby infotermoo » 01 May 2013 13:37

I am still stuck with this problem.

How to force VLC to reload the effects.. ?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 57 guests