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

Changelog:

v2.1 (intf) (5.9.2016) 58019 5 months ago

- fixed several bugs in Interface script;

old (before changes on this portal in September 2016) 5 months 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;

1 month ago

ipers

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

4 months ago

snjy

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

Report

5 months ago

Safranriz

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

1 year ago

schroef

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

11 months ago

mederi

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

1 year ago

schroef

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

2 years ago

PeterDV

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

2 years ago

mederi

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

2 years ago

PeterDV

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

Report

2 years ago

PeterDV

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

2 years ago

mederi

O.K. Thanks.

Report

3 years ago

NeM

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

3 years ago

mederi

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

Report

3 years ago

Alequito

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

Report

3 years ago

Alequito

I was thinking... If you can get the total time of the movie maybe you can get some "codec information (Media Information)"... duration, resolution and size, and put it on the clipboard.
Or at least, what file contains that Media Information?

readtracksinfo(mrl)
What is it? How I use it?
Sorry, any idea.

Report

3 years ago

mederi

Yes, it is possible to put some text information into the clipboard in Windows. There is an extension:
>> 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

3 years ago

Alequito

Using the Video Effects overlay "Add text", in VLC 2.0.8 Twoflower, there are bad points:
●A stronger "heart beating" text effect.
●If you click Stop and later Play, the text disappear.

That's why I prefer the addon.

Report

3 years ago

Chromatic

From what I can tell, this script isn't necessary.

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

3 years ago

ignorer

is there anyway to get this extension to autostart or autoload when i run VLC

Report

3 years ago

mederi

Autostart of VLC extensions is not implemented yet.

Report

3 years ago

ignorer

would i be able to use lua interpreter if it was an .luac module

Report

3 years ago

mederi

Compiled (.luac) or non-compiled (.lua) Lua scripts work.

Report

3 years ago

mfakih

Is it possible that when the addon is showing the time , e.g. the elapsed time ([E]), and "Record" is hit (or shirt+r), the time is also displayed in the recorded file?

This is very useful when someone is taking excerpts from a long video file. The excepts will have their time (relative to the original file) within them. VLC does not put the recording time in the filename of the result file, only the system time.

Report

3 years ago

mederi

Hi! It is not possible to do it through the Record button. You should stream a transcoded input with Marquee subpicture filter into a file. Please search VLC wiki and forums for more information about Marquee sub filter.

Report

4 years ago

ravemir

I have been using your patch to show milliseconds on my time, but it seems the displayed times are randomly retrieved.

Are these values supposed to be as precise as possible, or are they estimations with varying precision?

Report

Supporters

Recent Donations

Be the first to donate
Filename Version Description Filetype Packagetype License Downloads Date Filesize Install
Score 57%
57.00 Likes
43 Dislikes

0 Supporters for Time v2.1:

Recent Donations:

Be the first to donate
show all
Details
version
updated Oct 24 2016
added Mar 19 2012
downloads
page views 28982
support mederi
For The Product
Time v2.1
5 - 10 - 25 - 50 - 100 - 200 - 500