viewtopic.php?f=29&t=103803- remove the math.floor() from the elapsedSecond definition (line 91)
- change the elapsed_time string format to "%02d:%02d:%06.3f" (line 115)
Code: Select all
local et = elapsed_time
Code: Select all
local osd_output = string.gsub(osd_output, "%[N%]", "\n")
local fps=tonumber(string.match(osd_output,"%[E(.-)%]"))
if fps~=nil then osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps)) end
Hello, is there any way that the TIME option is always checked in View Options?. If I can do this, then it's perfect for me.Hello!
I am happy I can finally share my complete script also with dialog box. Before uploading it to official website for VLC addons I would like you to test it first. I have also a couple of issues to discuss.
[.
Do you have "Display Playlist Tree" enabled? I was having the same problem, but once I disabled this option, the extension (with the playlist duration function) worked fine.It gives me just zeros, not the total time. This happens if I select the extension before I load the playlist, and if I select it after I load the playlist, and whether the player is stopped or active.
Code: Select all
vlc.exe --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=time_intf
Code: Select all
main debug: looking for interface module matching "luaintf,none": 15 candidates
main debug: no interface modules matched
main error: no suitable interface module
main error: interface "luaintf,none" initialization failed
Thanks for the feedback. Another brave masOS user pablo_kks willing to cooperate and debug the script on his system helped me to find a solution for the strange issue with a standard dot as a decimal separator in numbers. The solution:Hey mederi, I saw your comments on the addons site about macOS and I wanted to tell you that your script works absolutely fine in macOS High Sierra.
Code: Select all
os.setlocale("C", "all")
Well, the script works fine here (Vista). The Extension script shows the SETTINGS dialog box that helps users to set appropriate VLC settings for the Interface script and asks them to restart VLC for changes to take effect. They do not have to check the settings manually in VLC preferences.In my experience, it is more stable on macOS than on Windows, because on Windows VLC keeps "forgetting" the extra interface setting (extraintf=luaintf) required for your script to work.
I can open a trac ticket for the missing checkbox for "luaintf" in VLC preferences in Qt GUI. How does the Mac behaves if you check again the VLC preferences? Is there always the "luaintf" in the input field there? What happens if you check some of the checkboxes there for enabling of other interfaces?Tools > Preferences > Show settings=All > Interface >
> Main interfaces: Extra interface modules [luaintf]
> Main interfaces > Lua: Lua interface [time_intf]
Return to “Scripting VLC in lua”
Users browsing this forum: No registered users and 4 guests