Time v2.1
VLC Extensions
Score 60%
Description:

Time is VLC extension that displays running time on the screen in a playing video.
(Extension script "time_ext.lua" + Interface script "looper_intf.lua")
Features:
- supported tags: [e], [efps], [d], [r], [t], [o], [n], [_];
- 9 possible positions on the screen;
- elapsed time with milliseconds;
- playback speed rate taken into account for duration time;

Time v2.x (intf)
"time_ext.lua" > Put the VLC Extension Lua script file in \lua\extensions\ folder
"looper_intf.lua" > Put the VLC Interface Lua script file in \lua\intf\ folder
** The Interface script can be activated from the CLI (batch script or desktop shortcut icon):
vlc.exe --extraintf=luaintf --lua-intf=looper_intf
** Otherwise the Extension script (First run: "Time > SETTINGS" dialog box) will help you to set appropriate VLC preferences for automatic activation of the Interface script or you can do it manually in VLC Preferences:
Tools > Preferences > Show settings=All > Interface \
\ Main interfaces: Extra interface modules [luaintf]
\ Main interfaces \ Lua: Lua interface [looper_intf]
* Then use the Extension ("Time" dialog box) to control the active Interface script.
The installed Extension is available in VLC menu "View" or "Vlc > Extensions" on Mac OS X.

Time v1.0
The extension works in VLC-2.0.x. VLC archive: http://download.videolan.org/vlc/
Time is VLC extension (extension script "time.lua") that displays running time on the screen in a playing video.
Lite version of this extension - Time (lite): http://addons.videolan.org/content/show.php?content=149619

DOWNLOAD:
- save the .zip file
INSTALLATION:
- extract (unzip) the .lua file and put it in VLC subdir \lua\extensions\ (Interface script in \lua\intf\), by default:
* 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/
(create directories if they don't exist)
- Restart VLC or just reload extensions (Tools > Plugins and extensions > Active Extensions tab: Reload extensions button).
USAGE:
Then you simply start the extension in VLC menu "View" or "Vlc > Extensions" on Mac OS X.

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

v2.1 (intf) (5.9.2016) 58019 1 year ago

- fixed several bugs in Interface script;

leminhtan2

1 month ago

Các loại bánh trung thu được đóng gói bằng các loại bao bì hết sức đẹp mắt và trang trọng , có thể làm quà để tặng cho người thân và gia đình trong dịp trung thu .
http://dailyyensao.vn/banh-trung-thu-yen-sao-khanh-hoa.html - mua bánh trung thu ở đâu
http://dailyyensao.vn/banh-trung-thu-yen-sao-khanh-hoa.html - giá bánh trung thu yến sào

Report

implyx

1 month ago

Hi Medri, great add-on. I have a variable set up in time_ext.lua named as adjusted_time and I'm trying to use this variable in looper_intf.lua. Is there a way I could do it? Many thanks

Report

implyx

1 month ago

Figured it out by myself. Using cfg.adjusted_time in time_ext.lua and config.TIME.adjusttime in looper lua. Again thanks for the clean code

Report

implyx

1 month ago

Just one more question Medri. Is it still possible to add a custom shortcut like this one after VLC disabled callback function from 2.1. Many thanks https://addons.videolan.org/content/show.php/eplased_time_to_file.lua?content=159287&PHPSESSID=013d3bf41d6d8942c8715f091b257568

Report

C

mederi

1 month ago

It is still not possible.

Report

dimitrovden

3 months ago

How remove seconds from time[T]? Show only hours and minutes?

Report

C

mederi

3 months ago

You just need to edit the looper_intf.lua sctipt in a text editor. Find the following line:
local system_time = systemHour..":"..systemMinute..":"..systemSecond
Then simply remove seconds there:
local system_time = systemHour..":"..systemMinute

Report

NeM

5 months ago

Let me clarify my previous comment for Win-7 x64, VLC 2.2.5.1 installation
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

C

mederi

3 months ago

I really need to simplify the instructions.

Report

NeM

5 months ago

For successful installation in Windows 7 x64 of this extension in VLC x64 version 2.2.5.1, copy:
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

7 months ago

Thanks Mederi, I've successfully installed Time 2.1 in VLC 2.2.1 on XUbuntu 14.04 (32bit, hardware is a bit old, Atom CPU and 1GB RAM). Works well and I can configure which info to show and where; tried in window and fullscreen mode, everything goes well.

Report

C

mederi

3 months ago

Thanks for the feedback.

Report

snjy

11 months ago

my vlc subtitle isnt working ...can anyone help me plz

Report

Safranriz

1 year ago

Linux installation to version 2.x, copy the files in the folders

~ /.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

1 year ago

Hi meriri,

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

C

mederi

1 year ago

Thank you for your feedback. So the alignment does not work for you. The "top-right" position should be selected as the default option when you activate the extension. Does it really not work if you select some other position and then press "START" button? Is there anything in the logs (messages) in VLC for this action? Does the ">> PUT^IN" work if you select anything in drop-down list to put it in the input text field?

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

1 year ago

Hi there,
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

2 years ago

Hi.
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

C

mederi

2 years ago

The extension does not work in VLC-2.1+. Please could you try VLC-2.0.9 whether the extension works there? I am on Windows and I do not have enough feedback from OS X users.

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

2 years ago

Hi.
Thanks for the reply. I will try version 2.0.9 and will let you know the result.
Thanks
Peter

Report

PeterDV

2 years ago

Hi.
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

C

mederi

2 years ago

O.K. Thanks.

Report

NeM

4 years ago

Here is the debug error I see:

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

C

mederi

4 years ago

Ticket #8097
Lua Extensions, VLC2.1: var.add_callback( ), var.del_callback( ) do not work
http://trac.videolan.org/vlc/ticket/8097

Report

Alequito

4 years ago

Yes, I mean file size (e.g. 20MB or 1GB in my hard disc)

Report

v2.1 (intf) (5.9.2016) 58019 1 year ago

- fixed several bugs in Interface script;

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

v2.0 (intf) (28.4.2016) 53798
- resurrection attempt for VLC 2.1+ (works also in older versions);
- 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 time;

File (click to download) Version Description Filetype Packagetype License Downloads Date Filesize OCS-Install DL
Details
version
updated Aug 23 2017
added Mar 19 2012
downloads today
13
page views today 34