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 opencode.net

8
8.0
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 luaextensions folder;
2) "time_intf.lua" > Copy the VLC Interface Lua script file into luaintf 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 luaextensions for an Extension script (Create directory if it does not exist! Then Interface script in luaintf):
* Windows (all users): %ProgramFiles%VideoLANVLCluaextensions
* Windows (current user): %APPDATA%VLCluaextensions
* 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) 9 months ago

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

C

mederi

1 year ago

I really need to simplify the instructions.

Report

NeM

2 years 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

2 years 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

1 year ago

Thanks for the feedback.

Report

snjy

2 years ago

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

Report

Safranriz

2 years 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

3 years 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

3 years 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

3 years 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

4 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

4 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

4 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

4 years ago

O.K. Thanks.

Report

PeterDV

4 years ago

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

Report

NeM

5 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

5 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

5 years ago

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

Report

Alequito

5 years ago

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

C

mederi

5 years ago

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

Alequito

5 years ago

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

Chromatic

5 years ago

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

ignorer

6 years ago

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

Report

C

mederi

6 years ago

Autostart of VLC extensions is not implemented yet.

Report

ignorer

6 years ago

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

Report

C

mederi

6 years ago

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

Report

v3.2 (intf) (27.8.2018) 9 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) 9 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;

12345678910
12
product-maker pascal Sep 28 2018 9 excellent
+
product-maker artistmatej Sep 12 2018 9 excellent
+Thank you very much! Now I can view FPS of my animation.
product-maker khant45 Sep 05 2018 9 excellent
Useful
product-maker GKidM-A-A-DCity Aug 27 2018 9 excellent
+
product-maker neokix Feb 18 2018 9 excellent
Love this script. I'm glad I can use it with VLC v3.0!!
product-maker NeM Feb 12 2018 9 excellent
Excellent extension
product-maker dimitrovden Jul 09 2017 9 excellent
product-maker Storm77 Apr 12 2017 9 excellent
product-maker ipers Feb 26 2017 9 excellent
product-maker CPaddict Dec 20 2016 9 excellent
product-maker Safranriz Oct 05 2016 9 excellent
product-maker 3demax Apr 08 2013 9 excellent
product-maker Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads today
65
page views today 330
System Tags addon gplv2-later