Search found 7 matches

Go to advanced search

by ProtoSahara
18 Aug 2021 02:38
Forum: Scripting VLC in lua
Topic: VLC Lua Docs
Replies: 3
Views: 11656

Re: VLC Lua Docs

BTW the docs have moved to: https://vlc.verg.ca
The links in the previous post now 404 :(
by ProtoSahara
09 Feb 2021 17:40
Forum: Scripting VLC in lua
Topic: VLC Lua Docs
Replies: 3
Views: 11656

Re: VLC Lua Docs

I think that aout is the main audio object, but I've had issues with access to the object from time to time. The objects module and the variables have been really weird for me, specifically the variables which have a few strange quirks. My best advice is to look into the source code (https://code.vi...
by ProtoSahara
19 Nov 2020 14:42
Forum: Scripting VLC in lua
Topic: How to apply a video filter with a hotkey?
Replies: 4
Views: 3022

Re: How to apply a video filter with a hotkey?

When I make a vlc variable change I want to reverse, I usually store the value of the variable before modification, then set it back afterwards. But you could also just set the default (no filter) value, which is the empty string "". local o = vlc.object.vout() vlc.var.set(o, "video-f...
by ProtoSahara
17 Nov 2020 22:32
Forum: Scripting VLC in lua
Topic: How to apply a video filter with a hotkey?
Replies: 4
Views: 3022

Re: How to apply a video filter with a hotkey?

I don't know of any way to create custom hotkeys or if hotkeys are available through Lua alone, but a script could turn on the Gaussian blur filter with some code like local o = vlc.object.vout() vlc.var.create(o, "gaussianblur-sigma", 0.5) vlc.var.set(o, "video-filter", "ga...
by ProtoSahara
17 Nov 2020 19:53
Forum: Scripting VLC in lua
Topic: Is metadata editing scriptable?
Replies: 1
Views: 2007

Re: Is metadata editing scriptable?

I know this was posted a while ago, but a better way to do this would be by using python https://stackoverflow.com/questions/308 ... -in-python
by ProtoSahara
17 Nov 2020 19:47
Forum: Scripting VLC in lua
Topic: create global variable
Replies: 1
Views: 1047

Re: create global variable

Where is fd defined? To have it stay the same for multiple events and not be redefined it should be set outside of the input_changed() function (activate(), the global scope, etc...). Also, if you are making a tcp connection to send the player state, it might just be better to set up and tear down t...
by ProtoSahara
16 Nov 2020 07:11
Forum: Scripting VLC in lua
Topic: VLC Lua Docs
Replies: 3
Views: 11656

VLC Lua Docs

I recently spent a bit of time designing a VLC extension and wrote some simple documentation to help me more easily keep track of which Lua modules did what. I've worked on it a bit since then, added some markdown styling and uploaded it to my Github site. Here are the modules I've documented: https...

Go to advanced search