Image 01


mederi mederi , Slovak Republic
VLC Extensions
Time v3.2

VLC Extensions 174 comments

Score 80.0%
Sep 01 2018
You can find a comment from a user named dementia (on the 2-nd page). He provided a solution for [F] tag. You could try it and tell me how it works.
"player.get_rate()" is the speed rate (1x, 1.5x, 2x, ...) and it is the new API for VLC 4. Later I will fix the script for VLC 4 and I can implement some improvements, too. The problem is that the "Frame rate" key is translated according to selected interface language in VLC. I think the English could be supported by default and users of other languages should provide translation manually according to codec information (Tools > Codec information: Stream, Frame rate). - Sep 29 2019
[2-nd thread]
The record button does not transcode/reencode video with a text overlay. You can try streaming wizard (Media > Stream...) where you select source, destination, create&select transcoding profile with appropriate video parameters and subtitles overlay (soverlay). Then you can insert marq sfilter into final stream output string there:
,soverlay,sfilter=marq{position=6,marquee="%d.%m.%y %H:%M:%S"}
You can use more marq parameters (color, size, opacity, x, y) or you can set them in advanced VLC preferences (Tools > Preferences > Show settings=All > Video \ Subtitles/OSD).
You can prepare a command line (a batch/bash script) to simplify things next time or an Extension is possible, too.
The Time VLC Extension can be modified to use marquee filter (please find the conversation with user named frob).

You can help to debug the Time script on your system and share your experience with othere users here. The script is written for Lua 5.1 Please try to edit the "time_intf.lua" script in a text editor, then launch VLC from command line with options activating the interface script and logging into a file:
- insert line 30>"[ TIME ] " .. _VERSION)
- comment out/eliminate Get_function() call in line 43>
Launch VLC from command line (this works on Windows and Mac or try the way mentioned at the end of our 1-st thread conversation; space " " instead of "=" characters in Linux?):
vlc --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=time_intf - Sep 19 2019
This conversation nesting has shrinked the text in too narrow column on my computer (1152x864, 4:3) so I better start on the top again marked as [2-nd thread]. - Sep 19 2019
Not looper_intf:lua but time_intf.lua - Sep 18 2019
It is weird that extensions in the menu is grayed out. There should be at least VLSub extension by default available in VLC menu. Is it possible that extensions are turned off somewhere in VLC preferences?
In the past a usere named pablo_kks helped me to debug the script on his Mac. You can find the discussion with him here if you want. You could start VLC with logging into a file, then check the logs there:
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.
Perhaps it is not an issue with newer Lua interpreter than Lua 5.1 like on Linux in previous discussion with a user named bpinto. - Sep 18 2019
_ext (Settings) helps you to set related VLC preferences for automatic activation of _intf when launching VLC. You can check them manually as described in the description here (Alternative activation ... >> luaintf (all checkboxes disabled!) & time_intf in related input fields). Then you should start VLC with logging into a file and then check the logs file (search time_intf activation):
vlc -vv --logfile=vlclog.txt, or vlc -vv 2>&1 > logfile.txt
What is Lua version you use? You can insert following line into time_ext, into activate() function, then check logs in messages window:
What video source are you trying to record (file, video stream, ...)? How do you record in VLC (View > Advanced controls > Record button)? You should transcode video, if you want to hardburn text overlay like subtitles. If it is system actual date/time only, then you can use marquee filter in VLC. - Sep 17 2019
Thanks. VLC for Windows contains Lua 5.1 interpeter. Loadstring has really disappeared in Lua 5.2 and 5.3. I did not know, that Linux useres can use different/newer Lua version. Then you should fix it in time_intf.lua, too. Perhaps the rest of the code will work. The active _intf script is the main one doing all the running time in a playing video and the _ext script is the control panel and the settings dialog box, where you can activate the _intf script. What do you mean by "to see real time"? Is it [E] elapsed time or [T] system time? - Sep 16 2019
Where exactly was the problem and how did you fix it? - Sep 16 2019
I am not Linux user. I can see there are VLC edition for openSUSE:
Does VLSub work? Can you install manually any other extensions? Does Addons manager work (Tools > Plugins and extensions)? You can check logs (Tools > Messages, Verbosity: 2(debug)). Perhaps you should try VLC for Linux forum - Sep 15 2019
I fixed the description here as upgrade of the portal removed all backslashes. I understand that paths were confusing without backlashes. - Sep 11 2019
Then SETTINGS in dialog box to set the automatic activation of the intf script. Actually the Interface script is the main one doing all the running time in a playing video. It really should work on all 3 systems (Windows, Linux, MacOS) as happy users reported. - Sep 08 2019
Check the screenshots and read the instructions in description here. - Jul 30 2019
Find following line in "time_intf.lua":
local duration = vlc.input.item():duration()
Then insert next new line there:
local dt=duration - Jun 21 2019
Just store the duration in a new variable (dt) before it changes a number value to a formatted string:
local duration = vlc.input.item():duration()
local dt=duration
Then you can use your calculation: addend-dt+et (instead of et+addend). - Jun 20 2019
It is not supported in VLC. You can use an external screenshot taker (like IrfanView - hotkey C; you can switch VLC to Minimal Interface Ctrl+H). - Jun 06 2019
The code for [E+seconds] tag ([E+49830]):
local addend=tonumber(string.match(osd_output,"%[E%+(.-)%]"))
if addend then
osd_output = string.gsub(osd_output, "%[E%+.-%]", tostring(TIME_Time2string(et+addend, 0, not TIME_Enoms)))

Insert the code right above following line in "time_intf.lua":
local fps=tonumber(string.match(osd_output,"%[E(.-)%]")) - Jun 05 2019
Please find my recent reply to frob. - May 21 2019
There is a workaround using marquee filter reading a text file (Tools > Preferences > Show settings=All > Video \ Subtitles/OSD
: [v] Marquee display
\ Marquee: Text file [D:\vlc-3.0.2+\portable\timemarquee.txt] / Position / Font / Misc).

Edit the "time_intf.lua" in a text editor, find following line:
vlc.osd.message(TIME_Decode_time_format(), 1111111111, TIME_osd_position)
Replace it with following new lines of code:
local f ="\\timemarquee.txt", "w")
if f then

I could add this option in Time extension in the future version. - May 21 2019
How would you handle all other languages? The "Frame rate" key is translated according to selected interface language in VLC. - May 08 2019
You can edit the "time_intf.lua" script in a text editor. Find the line:
osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps))
Edit the math.floor() function there if it make sense for you:
osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps % fps)) - Feb 19 2019
time_intf.lua - Jan 17 2019
Copy the "time_inft.lua" into "intf" folder, not into "extensions"! Then it works. - Jan 17 2019
It is known that VLC is not frame accurate. The split-second jumps are better in some video formats and worse in others (like variable frame rate). The [Efps] tag just multiplies time value (returned by VLC) with the provided fps value and the result is rounded down: math.floor(et * fps). You can check/ask VLC, whether it gets better in VLC 4. - Jan 05 2019
You can enable an audio visualization in VLC: Audio > Visualization >. You can set up visualizations in VLC preferences: Tools > Preferences > Show settings=All > Audio \ Visualizations - Dec 28 2018
You can use an external screenshot taker (like IrfanView - hotkey C on Windows). - Nov 26 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
Jump to time Previous frame v3

VLC Extensions 49 comments

Score 58.0%
Aug 28 2018
You have to manually download and install the extension v3.0 in VLC 3. - Jul 02 2019
Current implementation of extension scripts does not allow too much dynamics and so events could happen mostly only by clicking buttons within dialog box. Some more complicated solution, a workaround, is possible with the usage of interface script or an external helper besides the extension script. - Mar 30 2019
I am Windows user, but it should be possible. Try following command line in your osx:
echo 00:00:00,000|pbcopy
If it works, then you can edit the lua script in a text editor and insert following line within function click_Get_time():
os.execute("echo "..Time2string(vlc.var.get(input,"time")).."|pbcopy") - Mar 30 2019
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
Sampler PG

VLC Extensions 16 comments

Score 74.0%
May 22 2014
Just search Google: how to run windows applications on android. You could try to run a portable VLC (no installation, just a decompressed VLC with manually created "portable" folder in VLC folder near vlc.exe) in Wine
I am not VLC developer, I have just written this Lua script for VLC. You can file your bug reports & feature requests at - Jan 28 2019
VLC Extension Lua scripts are not supported in VLC for Android. You could try whether it is possible to run VLC for PC on Android (I have Googled a bit: Wine for Android?).
You should try the extension in VLC on PC. The Sampler (PG) generates a playlist with playlist items containing star-time/stop-time advanced VLC options. Then you can save such a playlist with relative paths (VLC 3+) if you save it in the same local folder. Then you could try to run such a playlist with the same folder of media files in VLC for Android. You could let me know, whether VLC for Android supports playlists with advanced VLC options. - Jan 27 2019