Subtitle "reader"

Discuss your Lua playlist, album art and interface scripts.
szaboa
New Cone
New Cone
Posts: 1
Joined: 06 Apr 2014 21:50

Subtitle "reader"

Postby szaboa » 06 Apr 2014 22:02

Hello everybody, I need a little help..:)
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")

Etoh
Blank Cone
Blank Cone
Posts: 60
Joined: 12 Jan 2013 16:33

Re: Subtitle "reader"

Postby Etoh » 07 Apr 2014 00:08

1) There is a function to get the current subtitle line directly (which is on the screen) ?
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=112220
2) What time of unit will be stored in this variable?

Code: Select all

local elapsed_time = vlc.var.get(input, "time")
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.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 3 guests