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

5
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) 3 months ago

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

pablo_kks

4 months ago

As I remember after transferring the files into right directions I only had Time v3 (intf) in VLC -> extensions and thats it, I could lunch it but, nothing happened after clicking "START!", which I mention in the very beginning of this conversation and fortunately you figured out why. After adding new lines I have two "Time v3 (intf)"'s in VLC ->extensions, the first one like it was before, and second one with additional buttons. After clicking reset and relaunching VLC the extension is disabled and after clicking this second "Time v3 (intf)" (with two additional buttons) I have a settings screen first. Everything is working properly, only thing is that I have two "Time v3 (intf)"'s in VLC -> extension. How to remove the first one? (purely for esthetic reasons)

Report

pablo_kks

4 months ago

nevermind, after restarting whole preferences I have one time v3 with additional buttons, everything is working :)

Report

C

mederi

4 months ago

Now I can prepare an update. Thank you for cooperation.
Next I would like to ask you to test also my another extension "Jump to time (Previous frame)" on your Mac. There I have implemented a (sub-)menu, too. Closing the "Jump to time (Previous frame) v3" dialog box does not deactivate the extension, it is only hidden and ready to be shown again in extension's menu ("Show dialog", "Help", "Deactivate") in VLC menu on Windows/Linux. Thanks.

Report

C

mederi

3 months ago

Hi pablo_kks! Please test the new Time v3.1: https://addons.videolan.org/p/1255145/

Report

GregoireLeGrand

8 months ago

I like this add-on. Can I use it from commandline in a python script? I am working on a simple audiobook player for use by a blind person. I want to save position in the book and resume it later. Best wishes

Report

neokix

10 months ago

Love this script. I'm glad I can use it with VLC v3.0!!

Report

NeM

10 months ago

Mederi - Thank you for the reset preferences suggestion. The issue is gone now.

Report

NeM

10 months ago

Excellent extension

Report

NeM

10 months ago

Thanks mederi for releasing v3 for VLC 3 but I still see a minor issue. Could you check if it is just me or everyone else too? Steps to reproduce it:
Time format used: E:[O] -[R] [E]/[D]
1) open video
2) press f to enter fullscreen
3) press a to cycle through the aspect ratios settings
4) The time appears in center of the screen with a big black square background covering most of the video when it runs in these ratio settings: Default, 16:9, 4:3, 1:1, 16:10 and 5:4
5) The time appears correctly with no issues in these ratio settings: 2.21:1, 2.35:1, 2.39:1
6) The time appears correctly with no issues when video is not in fullscreen and in all aspect ratio settings.

Report

C

mederi

10 months ago

I cannot reproduce the issue. I have no problem here with default settings in VLC 3 (win32.7z package, portable - "portable" subfolder within vlc folder). Try to reset preferences. What OS, VLC version? You could further investigate the issue: video format, different video output module, enable/disable hardware acceleration, check the logs. You can wait for VLC 3.0.1 whether it gets better or not. Then probably you need to file a bugreport at https://trac.videolan.org/vlc

Report

NeM

10 months ago

Extension has stopped working correctly with VLC 3.0.0

Report

C

mederi

10 months ago

Fixed for VLC 3.

Report

lukkysv

1 year ago

Hi Mederi,
Many thanks for the plugin. Works like a charm for me on the latest version of VLC v2.2.6.

Want to bring to your attention, I was also using "VLC remote" by hobbyist software (https://hobbyistsoftware.com/vlc). I use it primarily to be able to control my VLC player for play/pause/playlist management etc. To my surprise, this suddenly stopped recognizing my VLC on my mobile(remote). I tried resetting preferences, and re-installing multiple times. But, with no luck. If Time 2.1 is installed, then "VLC remote" is not working, and if i run the "VLC remote helper", then Time v2.1 is not working.

Any insights for my enlightenment when you get some time here. Much appreciated.

Thanks again.. Nice work though.

Report

C

mederi

1 year ago

Please check manually the enabled interfaces in VLC preferences (https://hobbyistsoftware.com/VLCSetup-win-manual) where the "[v] Web" is checked (on the first picture) and also the "[v] Lua interpreter" for the custom interface script of Time (the second picture: "Lua interface [looper_intf]" instead of "dummy"), so there are [luaintf:http] in the text input field there ("lua" is wrong, it must be "luaintf" string!). Please let me know.

Report

leminhtan2

1 year 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 year 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 year 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 year 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 year ago

It is still not possible.

Report

dimitrovden

1 year ago

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

Report

C

mederi

1 year 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

1 year 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

1 year ago

I really need to simplify the instructions.

Report

NeM

1 year 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

1 year 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

v3.2 (intf) (27.8.2018) 3 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) 3 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 10 months 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) 6 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 Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads today
0
page views today 371
System Tags addon gplv2-later