Time v3.2

VLC Extensions

Source (required if based on other people's work):

3
Score 66%
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 \lua\extensions\ folder;
2) "time_intf.lua" > Copy the VLC Interface Lua script file into \lua\intf\ 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 \lua\extensions\ for an Extension script (Create directory if it does not exist! Then Interface script in \lua\intf\):
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\VLC\lua\extensions\
* 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) 18 days ago

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

artistmatej

7 days ago

+Thank you very much! Now I can view FPS of my animation.

Report

Belle333Black

10 days 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

8 days ago

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

Report

TWPotter007

12 days 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

14 days ago

Useful

Report

C

mederi

12 days ago

Thanks

Report

GKidM-A-A-DCity

23 days ago

+

Report

C

mederi

18 days ago

Thanks

Report

GKidM-A-A-DCity

11 days ago

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

Report

Bouch13

30 days ago

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

Report

C

mederi

30 days 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

30 days ago

Thank you!

Report

C

mederi

23 days ago

The options has been implemented in Time v3.2

Report

mvastola

1 month 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

1 month ago

ok

Report

bowow0708

2 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

C

mederi

2 months ago

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: https://hobbyistsoftware.com/VLCSetup-mac-manual). 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.

Report

pablo_kks

2 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

2 months ago

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, https://wiki.videolan.org/Vlc_MacOS_Window/). 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.

Report

C

mederi

2 months ago

Interface script location:
~/Library/Application/Support/org.videolan.vlc/lua/intf/looper_intf.lua
Then run VLC from command line (logging to vlc_log.txt file + interface script activation):
/Applications/VLC.app/Contents/MacOS/VLC --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=looper_intf
Check the log file, post it at pastebin.com and then paste the link here.

Report

pablo_kks

1 month ago

https://pastebin.com/Dyssgw8X

Report

C

mederi

1 month ago

There should be more logs in the vlc_log.txt file.

Report

pablo_kks

1 month ago

https://pastebin.com/GRZjMNyj

Report

C

mederi

1 month ago

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.

Report

pablo_kks

1 month ago

Still the same error occurs in the log file :(

Report

v3.2 (intf) (27.8.2018) 18 days ago

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

v3.1 (intf) (19.8.2018) 18 days 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 7 months 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) 6 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 Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads today
0
page views today 413
System Tags addon gplv2-later