Time v3.2 Original

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

8
Score 67%
Description:

Time is VLC Extension that displays running time on the screen in a playing video.
(Extension script "time_ext.lua" + Interface script "time_intf.lua")
Features:
- supported tags: [E], [Efps], [D], [R], [T], [O], [P], [n], [_];
- 9 possible positions on the screen;
- elapsed time with milliseconds;
- playback speed rate taken into account for duration time;

Time v3.1+ (intf)
Simple instructions:
1) "time_ext.lua" > Copy the VLC Extension Lua script file into luaextensions folder;
2) "time_intf.lua" > Copy the VLC Interface Lua script file into luaintf folder;
3) Start the Extension in VLC menu "View > Time v3.x (intf)" on Windows/Linux or "Vlc > Extensions > Time v3.x (intf)" on Mac and configure the Time interface to your liking.

Alternative activation of the Interface script:
* The Interface script can be activated from the CLI (batch script or desktop shortcut icon):
vlc.exe --extraintf=luaintf --lua-intf=time_intf
* VLC preferences for automatic activation of the Interface script:
Tools > Preferences > Show settings=All > Interface >
> Main interfaces: Extra interface modules [luaintf]
> Main interfaces > Lua: Lua interface [time_intf]

INSTALLATION location luaextensions for an Extension script (Create directory if it does not exist! Then Interface script in luaintf):
* Windows (all users): %ProgramFiles%VideoLANVLCluaextensions
* Windows (current user): %APPDATA%VLCluaextensions
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
* Mac OS X (current user): /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/

Forum: https://forum.videolan.org/viewtopic.php?f=29&t=97639

Last changelog:

v3.2 (intf) (27.8.2018) 7 months ago

- option to disable milliseconds in elapsed time
- option to show system/ending time in "h:m" format

Belle333Black

7 months ago

I noticed it doesn't show up on screencaps which was the main reason why I needed this. Is there anyway to fix that?

Report

C

mederi

7 months ago

Screenshot (Video > Take Snapshot (Shift+s))?

Report

smmaruf

5 months ago

I want to have the time plugins in the screenshot.

Report

TWPotter007

7 months ago

is there any way to poll (call) this feature from another app while the video is running? This would allow me to see for a particular viewer where they are during playback?

Report

khant45

7 months ago

Useful

Report

C

mederi

7 months ago

Thanks

Report

GKidM-A-A-DCity

7 months ago

+

Report

C

mederi

7 months ago

Thanks

Report

GKidM-A-A-DCity

7 months ago

Thank you, helps a ton for Handbrake productions. Good work.

Report

Bouch13

8 months ago

Is there a way to turn milliseconds off? I find them very distracting and unnecessary.

Report

C

mederi

7 months ago

The options has been implemented in Time v3.2

Report

C

mederi

8 months ago

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)

Report

Bouch13

8 months ago

Thank you!

Report

mvastola

9 months ago

This plugin is great, but is there any way you can remove the different editions for different VLC versions? At least between 2.2 and 3.0 the only difference is one line in the interface script, and the misc.version() method could be used to determine which code to use. Thanks!

Report

C

mederi

9 months ago

ok

Report

bowow0708

9 months ago

Hello I followed all the instructions for installation, but I can't seem to get it to work. I can see the interface alright and it's showing up in my extension tab, but the time stamp does not appear for me no matter what I try. I'm on el capitan Mac and tried using VLC 2.4.8, 3.0.0, and 3.0.4 with all appropriate files. any advice to help?

Report

pablo_kks

9 months ago

Same here, maybe it simply doesn't work now for Mac? I have the interface but no time stamp. I am on High Sierra OS

Report

C

mederi

8 months ago

Hi pablo_kks! Please test the new Time v3.1: https://addons.videolan.org/p/1255145/

Report

C

mederi

8 months ago

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.

Report

C

mederi

8 months ago

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:
http://postimg.cz/images/xTAsF.png
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):
http://postimg.cz/images/xTTAH.png
I searched the VLC forum for Mac:
https://forum.videolan.org/viewtopic.php?f=12&t=122697
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.

Report

pablo_kks

8 months ago

As I remember after transferring the files into right directions I only had Time v3 (intf) in VLC -> extensions and thats it, I could lunch it but, nothing happened after clicking "START!", which I mention in the very beginning of this conversation and fortunately you figured out why. After adding new lines I have two "Time v3 (intf)"'s in VLC ->extensions, the first one like it was before, and second one with additional buttons. After clicking reset and relaunching VLC the extension is disabled and after clicking this second "Time v3 (intf)" (with two additional buttons) I have a settings screen first. Everything is working properly, only thing is that I have two "Time v3 (intf)"'s in VLC -> extension. How to remove the first one? (purely for esthetic reasons)

Report

pablo_kks

8 months ago

nevermind, after restarting whole preferences I have one time v3 with additional buttons, everything is working :)

Report

C

mederi

8 months ago

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?

Report

pablo_kks

8 months ago

Yes, Time v3 (intf) is the control panel and appears when I click it just like on the screen on this page, and it works fine, I can customize it whenever I want and it saves configuration for the next time I am lunching VLC, so like I sad I can fully enjoy add-on now thanks to that line you gave me added to interface script and activation made manually in VLC preferences. I don't see any errors in this "⌘+Shift+m" panel when I am clicking "START!". I am not sure what you mean by "verbosity level 2=debug" should I see it on this panel or type it somewhere? I still only have "time v3 (intf)" in vlc > extensions without any submenu and I am not following you how to activate this submenu

Report

C

mederi

8 months ago

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")

Report

v3.2 (intf) (27.8.2018) 7 months ago

- option to disable milliseconds in elapsed time
- option to show system/ending time in "h:m" format

v3.1 (intf) (19.8.2018) 7 months ago

- fixed numeric locale issue on Mac
- VLC version detection so the script works also in older VLC versions
- auto-format time (s > m:s > h:m:s > D/h:m:s)
- percentage playback position tag [P]
- always show "Settings" dialog box for disabled interface script
- respect other enabled VLC interfaces when saving settings
- "Settings" button in "Control panel" dialog box
- ">STOPPED<" status in title bar
- "looper_intf.lua" script file renamed to "time_intf.lua"

v3.0 (intf) (11.2.2018) 66127 1 year ago

- fixed time in microseconds for VLC 3;

v2.1 (intf) (5.9.2016) 58019 2 years ago

- fixed several bugs in Interface script;

old (before changes on this portal in September 2016) 7 years ago

v2.0 (intf) (28.4.2016) 53798
- resurrection attempt;
- Interface script "looper_intf.lua" + Extension script "time_ext.lua";
- new tags [Efps]-elapsed frames (et*fps), [n]-name, [_]-new/next line;
- elapsed time with milliseconds;
- playback speed rate taken into account for duration time;

v1.0 (19.3.2012)
- works in VLC 2.0.x;
- supported tags: [E]-elapsed time, [D]-duration, [R]-remaining time, [T]-system time, [O]-over/ending time;

File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads today
70
page views today 358
System Tags addon gplv2-later