mederi mederi , Slovak Republic

Time v3.2

VLC Extensions Sep 01 2018
Score 67%
33 Dislikes

WIP collection

VLC Extensions Jan 20 2018
Score 63%
37 Dislikes

Sampler PG

VLC Extensions May 22 2014
Score 59%
41 Dislikes
Time v3.2

VLC Extensions 119 comments

Score 67%
33 Dislikes
Sep 01 2018
The refresh rate in the script is higher than VLC updates the time value. I think demuxers are responsible for this. - Nov 15 2018
You should follow the instructions (Simple instructions 1, 2, 3) in the description here. - Oct 02 2018
I think a marquee subfilter could be used to display an osd text from a Lua script. - Sep 30 2018
Screenshot (Video > Take Snapshot (Shift+s))? - Sep 11 2018
Thanks - Sep 07 2018
Thanks - Sep 01 2018
The options has been implemented in Time v3.2 - Aug 27 2018
It is one of the main features of this extension, but I understand
that most users do not need the extra information about milliseconds. I will implement the option in the Extension script in the future. For now you can edit the "time_intf.lua" script file (Time v3.1) in a text editor and replace "true" with "false" in line 131:
elapsed_time = TIME_Time2string(elapsed_time, 0, false) - Aug 20 2018
Hi pablo_kks! Please test the new Time v3.1: - Aug 19 2018
Now I can prepare an update. Thank you for cooperation.
Next I would like to ask you to test also my another extension "Jump to time (Previous frame)" on your Mac. There I have implemented a (sub-)menu, too. Closing the "Jump to time (Previous frame) v3" dialog box does not deactivate the extension, it is only hidden and ready to be shown again in extension's menu ("Show dialog", "Help", "Deactivate") in VLC menu on Windows/Linux. Thanks. - Aug 05 2018
So there is no extension's menu in VLC menu after activation of the extension on Mac. VLSub extension also uses the menu, but it has "Show help" and "Show config" button to acces another 2 dialog boxes. Then I will add the "Settings" button in my extension, too. Here I have uploaded a screenshots of VLC so you can see what I mean:
Do you really not remember the "Settings" dialog box when you first activated the extension right after its installation? Please edit the extension scipt "time_ext.lua", last line (145) "bt_help = ..." within "function create_dialog() ... end" and insert next 2 new lines there for "Reset" and "Settings" buttons:
dlg:add_button("Reset", function() vlc.config.set("bookmark10", "") end,1,5,1,1)
dlg:add_button("Settings", function() trigger_menu(2) end,2,5,1,1)
Then activate the extension, click the "Reset" button, then close and reopen VLC and see whether there will automatically appear the "Settings" dialog box after activation of the extension. Please test it whether it works to enable/disable the Interface script.

As for the messages, here is the screenshot (Windows Vista):
I searched the VLC forum for Mac:
So probably you do not need to worry about the messages verbosity level at all. If you see the debugging logs there (main debug: ..., lua debug: ...), then it is the verbosity level 2 (debug). If you launch VLC from the terminal, then you can use the VLC option " --verbose=2" or " -vvv" there. You can open the messages window before activation of the extension and then you can watch all the situation there. - Jul 29 2018
I am glad we have the solution for the Interface script.

As for the Extension script, does the "Time v3 (intf)" dialog box window like in the picture at the top of the page here appear on the screen? It is the control panel for the running Interface script. Does it work? Can you customize the "Time format" during the playback of a video and is it remembered when you close VLC and play a video next time? You can watch messages for any errors/warnings (⌘+Shift+m, verbosity level 2=debug) when you click the "START!" button there.
Then if the "Time v3 (intf)" dialog box window is on the screen, do not close it and check again the VLC menu where you activated the Extension. Now the Extension "Time v3 (intf) > ..." should contain submenu consisting of "Control panel", "Settings" and "Deactivate" options. Here you can activate the "Settings" dialog box containing "[v] Enable Interface" checkbox, "[looper_intf]" input field and the buttons: "SAVE" and "CANCEL". The saving button should set the settings automatically for you. Please again watch the messages when you click it.
The "Settings" dialog box should automatically appear only on the very first activation of the Extension. Next time whenever you activate the Extension, only the "Control panel" should appear on the screen and the "Settings" are again available in Extension's submenu in VLC menu (VLC > Extensions > Time v3 (intf) > Settings). Is there any sumbenu at all after activation of the Extension when there is a dialog box on the screen? - Jul 28 2018
Does the Extension not work ( VLC > Extensions > Time: 2 dialog boxes: Settings and Control panel)?
Please try to edit the original Interface script "looper_intf.lua" and insert a following new line somewhere on the top whether it helps to recognize the dot in numbers as decimal separator:
os.setlocale("C", "all") - Jul 27 2018
The extension script "time_ext.lua" installed in "\lua\extensions\" and available in VLC menu can help you to set appropriate VLC settings on its first run only (VLC > Extensions > Time v3 (intf)). Next time it is available in the extensions's submenu after activation of the extension (VLC > Extensions > Time v3 (intf) > Settings). I hope it works. I need to improve this so it could always appear automatically if the interface script is not active. Otherwise you can set the settings ("luaintf", "looper_intf") manually in VLC preferences as described in some previous post here and in the main description (**) of the extension. Plese let me know whether it works. Thank you for cooperation. I will need your further assistance. - Jul 25 2018
Are you sure if you just use the integer value "1" instead of "0.1" on the line 49: "Sleep(1)", that you get an error on the same line and not on a different one?
Could this error mean a locale issue and so not appearing on all Macs only on some of them, a decimal separator issue? What happens if you replace dot by comma in numbers (like 0.1 --> 0,1)? - Jul 25 2018
Thank you. I can see that the location of the script is correct and the VLC preferences settings or CLI options activating the script are correct, too (line 76 in the logs).
There is an error (line 83): "lua error: Error loading script .../Library/Application Support/org.videolan.vlc/lua/intf/looper_intf.lua:49: malformed number near '0.1'".
I do not know what it really means. Line 49 in the "looper_intf.lua" code is "Sleep(0.1)" function call. Could you try to edit the script in a text editor? Try to change the number that function call: "Sleep(.1)" or "Sleep(1)". Then check the logs whether it helped a bit. Then you could try to move "function Sleep(st) ... end" in front of "function Looper() ... end" so it is defined first before it is called.
The script works well in Windows and Linux, just not in the macOS. I need some clues to solve the issue or to report a VLC bug. - Jul 22 2018
ok - Jul 21 2018
There should be more logs in the vlc_log.txt file. - Jul 21 2018
Interface script location:
Then run VLC from command line (logging to vlc_log.txt file + interface script activation):
/Applications/ --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=looper_intf
Check the log file, post it at and then paste the link here. - Jul 18 2018
Mac is always different. You could help me to debug the sript on your Mac. You can check the logs with verbosity level 2=debug (⌘+Shift+m, Better if you check the logs from the start of VLC in a log file (VLC menu > Preferences > Show All > Advanced > Logging). Perhaps there should be just "lua" instead of "luaintf" in VLC preferences (>Interface > Main interfaces > Lua > Extra interface modules [luaintf] or just [lua]?). Please try it. - Jul 15 2018
I cannot test it on Mac as I am on Windows. It is important to copy/install the looper_intf.lua script file in the proper directory for interface scripts \lua\intf\. Then you have to activate the script in VLC. The extension script time_ext.lua installed in \lua\extensions\ and available in VLC menu can help you to set appropriate VLC settings on its first run. Later it is again available in VLC menu in the extensions's submenu. You can also manually check settings in VLC preferences (luaintf, looper_intf > some screenshots for different addon but lua seetings are visible there above the marked ones: Successfully activated interface script is already displaying the time in a playing video or you simply check the activity of the interface script in logs in VLC menu (like in VLC for Windows: Tools > Messages). If the interface script is running in VLC, you can control it with the extension script in VLC menu. - Jul 14 2018
I cannot reproduce the issue. I have no problem here with default settings in VLC 3 (win32.7z package, portable - "portable" subfolder within vlc folder). Try to reset preferences. What OS, VLC version? You could further investigate the issue: video format, different video output module, enable/disable hardware acceleration, check the logs. You can wait for VLC 3.0.1 whether it gets better or not. Then probably you need to file a bugreport at - Feb 14 2018
Fixed for VLC 3. - Feb 11 2018
Please check manually the enabled interfaces in VLC preferences ( where the "[v] Web" is checked (on the first picture) and also the "[v] Lua interpreter" for the custom interface script of Time (the second picture: "Lua interface [looper_intf]" instead of "dummy"), so there are [luaintf:http] in the text input field there ("lua" is wrong, it must be "luaintf" string!). Please let me know. - Dec 06 2017
It is still not possible. - Aug 23 2017
Thanks for the feedback. - Jul 06 2017
I really need to simplify the instructions. - Jul 06 2017
You just need to edit the looper_intf.lua sctipt in a text editor. Find the following line:
local system_time = systemHour..":"..systemMinute..":"..systemSecond
Then simply remove seconds there:
local system_time = systemHour..":"..systemMinute - Jul 06 2017
I am not VLC developer. The Extension just works with time values provided by VLC. - Jun 03 2016
Thank you for your feedback. So the alignment does not work for you. The "top-right" position should be selected as the default option when you activate the extension. Does it really not work if you select some other position and then press "START" button? Is there anything in the logs (messages) in VLC for this action? Does the ">> PUT^IN" work if you select anything in drop-down list to put it in the input text field?

Perhaps there is a solution to make the TIME extension work in new versions of VLC: interface script (an endless loop with a short sleep to periodically check the settings and to update the time values on the screen) + extension script (dialog box with a control panel for interaction with a user to change time settings and to save settings in some unused VLC variable or in a text file). - Mar 27 2016
Jump to time Previous frame v3

VLC Extensions 41 comments

Score 52%
48 Dislikes
Aug 28 2018
Custom hotkeys are not available in addons in current VLC version. There are only dialog box button hotkeys (Alt+b) available within Qt GUI. You could try to use an external helper like AutoHotkey on Windows. - Aug 24 2018
First of all, if you use the new VLC 3, then you have to download and install the updated script (v3) manually from here. Then the usage is simple. There is more help available in extension's submenu in VLC menu after activation of the extension (when the dialogbox appears go back in VLC menu View > Jump to time > Help). - Jul 25 2018
Thanks. - Jul 21 2018
Does the updated script v3 not work on OSX? You need to download it manually here. It is not available through the Addons Manager yet. Then there is a problem with "Frame rate" key, as it depends on VLC interface language. The key is translated in different languages. Therefore I take the first number value for "Frame rate". It works in most cases. - Feb 16 2018
You can use some external helper/program like DeskPins. - Jan 29 2018
The button hotkeys work only in active/focused dialogbox window. It is not possible to improve the script the way you want it. The scripting VLC in Lua is very limited and require further improvements. You could try to use Autohotkey, the external helper for Windows, to send keystrokes to Jump to time window. - Dec 13 2017
So this is what you need. O.K. - Nov 10 2017
There is "1/VLCfps" in dropdown menu. Then use "1/x" on the returned value to see the fps. Does it return correct fps for your films? Do you want to have automatic update of the time value in the bottom input field? - Nov 10 2017
Thank you for your contribution. I will fix it soon. - Sep 23 2015
Thank you for the screenshots. Now I see the difference. VLC for OS X is all different from Windows/Linux. Please can you make 2 more screenshots of 2 different variations for me?
-- text_input: col_span=1; button: col=3;
textinput_time = d:add_text_input(Time2string(0), 2,1,1,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 3,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,1,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 3,3,1,1)

-- text_input: col_span=2; button: col=4;
textinput_time = d:add_text_input(Time2string(0), 2,1,2,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 4,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,2,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 4,3,1,1)
Here is how it looks in my computer:

I would like to make a different layout for OS X and to keep the compact one for Windows and Linux. I would like to ask you whether you could help me to find out the best way how to distinguish OS X from Linux in VLC Lua. It can be useful for other cases/extensions, too. Perhaps there is an environment variable that is available in all OS X systems and not available in Linux, or they have a different value. According to this link: the OSTYPE could be the one I am looking for. Please check its value in OS X:Quote:
-- some environment variables like "OS" and "windir" on Windows (OS=Windows_NT; windir=C:\WINDOWS). "OSTYPE" on OS X and Linux?
-- word "Application" in userdatadir on OS X, not on Linux?
d:add_html(tostring(os.getenv("OSTYPE")) .."<br />".. vlc.config.userdatadir(), 1,5,3,1)

Do the ampersands "&" in the buttons work as hotkeys (Alt+G, Alt+S, ...)? Probably not as they are not invisible there. I can remove them from OS X layout.
Which of the buttons is the "submit" button? While I am editing a string in a text_input field or selecting an item in the drop-down list on Windows, then the first button in the code "Time format" is automatically focused and ready for action by pressing the Enter key on keyboard. - Sep 21 2015
VLC Extensions dialog box widgets stacking issue in VLC for OS X. - Sep 17 2015
Sorry, the "always on top" feature is not available for dialog box window of VLC Extensions.
You could have the "Pause/Play" button in the dialog box if it helps you. Just edit the script and insert the new button in function Create_dialog():Quote:
d:add_button("&Pause / &Play", function() vlc.playlist.pause() end, 2,4,1,1)
- Sep 14 2015
Sampler PG

VLC Extensions 10 comments

Score 59%
41 Dislikes
May 22 2014
I cannot reproduce the issue in VLC 3.0.2 (Vista 32-bit). There is just a black screen only in some films for a split of a second. There is really nothing I can do about it. Perhaps it depends on a video format you are playing. You can report the :start-time VLC option issue and provide a video samples at - May 09 2018
Remember Playing Now

VLC Extensions 4 comments

Score 52%
48 Dislikes
Apr 29 2018
I recommend you to upgrade your script to use if it is available (introduced by VLSub included in VLC 3.0.2) instead of Lua's standard io functions. It solves the issue with non-ASCII characters in the path on some systems. This script and similar ones can work properly on all systems from now. - Apr 30 2018
Moments' Tracker

VLC Extensions 31 comments

by aur
Score 59%
41 Dislikes
Sep 13 2017
Check the logs: Tools > Messages: Verbosity: [2 (debug)] - Sep 21 2017
WIP collection

VLC Extensions 7 comments

Score 63%
37 Dislikes
Jan 20 2018
Ah! The MacOS X case:
VLC 3? - Apr 14 2017
Yes, save it (select>copy>paste) as a simple text file with lua extension instead of txt. Check some other extensions on this portal for detailed installation instructions on your OS. - Apr 13 2017

VLC Extensions 9 comments

by tim89
Score 52%
48 Dislikes
Sep 13 2014
You can watch key codes in VLC console (View > Add Interface > Console) after activation of Time2Clipboard extension. Then edit the script and use your desired key code there. As for the global hotkeys, please read the description of the extension here. You can install AutoHotkey and write your custom .ahk script. - Mar 14 2017
VLC 2.0.x! - Mar 09 2017

VLC Extensions 794 comments

Score 86%
14 Dislikes
Sep 05 2017
Hi! Please check PM at forum as it is not available here anymore. - Dec 06 2016