
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
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 and configure the Time interface to your liking:
- Windows/Linux: "View > Time v3.x (intf)";
- Mac OS: "Vlc > Extensions > Time v3.x (intf)".
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
Lua 5.1! like in VLC-32bit for Windows (later I will fix it for Lua 5.2/5.3)
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
v3.2 (intf) (27.8.2018) 2 years ago
- option to disable milliseconds in elapsed time
- option to show system/ending time in "h:m" format
v3.2 (intf) (27.8.2018) 2 years ago
- option to disable milliseconds in elapsed time
- option to show system/ending time in "h:m" format
v3.1 (intf) (19.8.2018) 2 years 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 2 years ago
- fixed time in microseconds for VLC 3;
v2.1 (intf) (5.9.2016) 58019 4 years ago
- fixed several bugs in Interface script;
old (before changes on this portal in September 2016) 2 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;
mederi
3 years ago
local system_time = systemHour..":"..systemMinute..":"..systemSecond
Then simply remove seconds there:
local system_time = systemHour..":"..systemMinute
Report
NeM
3 years ago
As per the author's instructions:
1) extract (unzip) the time_ext.lua file and put it in VLC subdir C:\Program Files\VideoLAN\VLC\lua\extensions and
2) extract (unzip) the looper_intf.lua file and put it in VLC subdir C:\Program Files\VideoLAN\VLC\lua\intf
3) start the extension in VLC menu "View" and enable Time v2.1 (intf) and configure the Time interface to your liking.
Report
mederi
3 years ago
Report
NeM
3 years ago
1) looper_intf.lua and time_ext_lua to the C:\Program Files\VideoLAN\VLC\lua\extensions folder AND
2) to the C:\Program Files\VideoLAN\VLC\lua\intf folder
3) Start VLC -> go to View and enable Time v2.1 (intf) and configure the Time gui to your liking.
Report
ipers
4 years ago
Report
mederi
3 years ago
Report
snjy
4 years ago
Report
Safranriz
4 years ago
~ /.local/Share/VLC/lua/extensions/time_ext.lua
~ /.local/Share/VLC/lua/intf/time_ext.lua
or for all users
/usr/lib(64)/vlc/lua/extensions/time_ext.lua
/usr/lib(64)/vlc/lua/intf//time_ext.lua
the need to be created and file extensions intf
/*************************************************************************/
Installation linux pour la version 2.x, copier les fichiers dans les dossiers
~/.local/share/vlc/lua/extensions/time_ext.lua
~/.local/share/vlc/lua/intf/time_ext.lua
ou pour tous les utilisateurs
/usr/lib(64)/vlc/lua/extensions/time_ext.lua
/usr/lib(64)/vlc/lua/intf//time_ext.lua
au besoin il faut créer les dossier extensions et intf
Report
schroef
5 years ago
I got it to work in older version on mac now. I also managed to alter the script so it shows also milliseconds. The part which doesnt work is the alignement. I can only change this from within the source code.
PS what info do you need to het it possible working in version 2.2.2?
Id like to give feedback and help you possibly solve this issue
Report
mederi
5 years ago
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).
Report
schroef
5 years ago
i tried the plugin but it showed one time and then never really appears. I got some erros in the log file about. Ill try to save the ouput somewhere.
Any people got luck with other addon?
Report
PeterDV
6 years ago
I've followed the instructions for installing the TIME addon, and it doesn't seem to be working. I'm running Mac OS, with the latest version of VLC. The extension appears in the extensions tab of the VLC pulldown menu, but choosing it there (which doesn't put a check beside it), has no effect.
I've googled around quite a bit for an answer to this, but no luck.
Peter
Report
mederi
6 years ago
A workaround with a Refresh button, that should be pressed periodically during playback (to press and hold the Enter key or a software key sender), is possible. If there are users interested in such a workaround, the principle is shown in "Animated ASCII Art" and "Subtitler (lite) mod" extensions. Could you try them with latest VLC in your Mac OS X?
Report
PeterDV
6 years ago
I just tried the TIME extension with VLC 2.0.9 and it works.
Thank you for suggesting that.
I hope the extension will work with newer version of VLC in the future.
Now I am going to attempt to to get the frames to show, using you comments from ealier posts.
Thanks
Peter
Report
mederi
6 years ago
Report
PeterDV
6 years ago
Thanks for the reply. I will try version 2.0.9 and will let you know the result.
Thanks
Peter
Report
NeM
7 years ago
lua debug: Activating extension 'Time'
lua warning: Error while running script C:\Program Files\VideoLAN\VLC\lua\extensions\time.lua, function activate(): ...:\Program Files\VideoLAN\VLC\lua\extensions\time.lua:54: attempt to call field 'add_callback' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'Time'
lua warning: Error while running script C:\Program Files\VideoLAN\VLC\lua\extensions\time.lua, function deactivate(): ...:\Program Files\VideoLAN\VLC\lua\extensions\time.lua:57: attempt to call field 'del_callback' (a nil value)
lua warning: Extension 'Time' did not deactivate properly
lua debug: Extension thread end: 'Time'
Report
mederi
7 years ago
Lua Extensions, VLC2.1: var.add_callback( ), var.del_callback( ) do not work
http://trac.videolan.org/vlc/ticket/8097
Report
Alequito
7 years ago
Report
Alequito
7 years ago
Or at least, what file contains that Media Information?
readtracksinfo(mrl)
What is it? How I use it?
Sorry, any idea.
Report
mederi
7 years ago
>> http://forum.videolan.org/viewtopic.php?f=29&t=101114&p=341439#p341211
And it is also possible to read the Codec Information. There is an interface script, that displays it on the screen in a playing video by pressing the "t" hotkey:
>> http://forum.videolan.org/viewtopic.php?f=29&t=111880
So duration is available (if it is available :), resolution is available within Codec Information. By size do you mean a file size of a played media file?
Report
Alequito
7 years ago
●A stronger "heart beating" text effect.
●If you click Stop and later Play, the text disappear.
That's why I prefer the addon.
Report
Chromatic
7 years ago
Simply use the Video Effects overlay "Add text" -- and use the variables -- $T and $D .
The $T variable will show the running time of the current video in real time.. and $D if you want it displayed, will show the full duration/length of the video being played.
So it would look something like 00:32:02/01:30:00
If you want the filename shown as well, the variable $N will show the filename.
The add text will let you position it anywhere on the screen.. You can adjust the font and color with the other advanced preferences in VLC.
Take care.
Report
ignorer
7 years ago
Report
mederi
7 years ago
Report