1) There is a function to get the current subtitle line directly (which is on the screen) ?
2) What time of unit will be stored in this variable?
Code: Select all
local elapsed_time = vlc.var.get(input, "time")
Code: Select all
local elapsed_time = vlc.var.get(input, "time")
I don't know if there is any way to ask VLC for the current subtitle line, but you can parse a subtitle file directly. For example, you could modify subtitler (lite) to figure out the current subtitle line from a SRT file. See http://addons.videolan.org/content/show ... ent=152364 and https://forum.videolan.org/viewtopic.php?f=29&t=1122201) There is a function to get the current subtitle line directly (which is on the screen) ?
It is in seconds: 0.5 is half a second, 1.0 is one second, 1.5 is one and a half seconds, 60.0 is one minute.2) What time of unit will be stored in this variable?Code: Select all
local elapsed_time = vlc.var.get(input, "time")
Return to “Scripting VLC in lua”
Users browsing this forum: No registered users and 3 guests