I’ve been working on a Lua script to take to snapshots at set times. I am using vlc 2.1.x and 2.2.1. I have been able to get a snapshot captured using:
-- Take a video snapshot
function snapshot()
local vout = vlc.object.vout()
if not vout then return end
vlc.var.set(vout,"video-snapshot",nil)
end
I found this code from : https://github.com/Tilka/vlc/blob/maste ... common.lua
However, I have not been able to figure out how to change the snapshot options (Directory, Prefix and Format) from the Lua script.Is there a way to change these values using Lua?
I've tried vlc.var.set(vout,"snapshot-format","png"), but that does not work.