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 git.opendesktop.org

7
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 \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) 6 months ago

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

jayaprakash

6 years ago

Thank you very much!
I tried as you guided.
It is working very well.

Report

AlexisBV

6 years ago

This currently does not seem to display more info than the stock VLC GUI already displays.. in order to be more useful, the user should be able to select fractional time display, or frames.

(for example 00:01.83, or 55 frames, and so on)

Report

C

mederi

6 years ago

Thank you for your ideas. I would like to publish your instructions how to alter the script to see elapsed time with miliseconds:
Quote:- remove the math.floor() from the elapsedSecond definition (line 91)
- change the elapsed_time string format to "%02d:%02d:%06.3f" (line 115)

Report

Nietha

4 years ago

for people that are not programmers like me and need explicit instructions... change line 91 to

Quote:local elapsedSecond = elapsed_time % 60

Report

wthopman

6 years ago

For most jobs with video material, just the frame- number would be just as helpful.

Report

C

mederi

6 years ago

http://forum.videolan.org/viewtopic.php?f=29&t=103803
Meanwhile here is a patch for extended [E] tag for manual input of constant fps information to convert time to frames, e.g. [E23.976]. Tip: [E1] means time in seconds.
There is also a new tag [N] - new/next line.
- insert following line before line 115>local elapsed_time = string.format(... Quote:local et = elapsed_time- insert following lines right before line 125>return osd_output Quote: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

Report

C

mederi

6 years ago

[PLD] tag added by Ashada:
http://forum.videolan.org/viewtopic.php?f=29&t=97639&start=20#p341783
Playlist handling often cause crash of VLC for example if you add fresh files into playlist while the extension is active. Total playlist duration would also need total elapsed time.

Report

polluted85

6 years ago

hi i am having trouble using this after creating the extensions folder in my Mac OS folder as directed and moving the .lua file in there

i go to > extensions > time

then a window pops out
what do i select?

i have a list of videos in the playlist. i want to find out total playlist time, to see what i have ahead of me to watch.

Report

polluted85

6 years ago

hi i am having trouble using this after creating the extensions folder in my Mac OS folder as directed and moving the .lua file in there

i go to > extensions > time

then a window pops out
what do i select?

i have a list of videos in the playlist. i want to find out total playlist time, to see what i have ahead of me to watch.

Report

v3.2 (intf) (27.8.2018) 6 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) 6 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
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads today
69
page views today 357
page views total 213768
System Tags addon gplv2-later