Time v3

VLC Extensions

Source (required if based on other people's work):

2
Score 63%
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/v3 (intf)
Simple instructions:
1.) "time_ext.lua" > Copy the VLC Extension Lua script file into \lua\extensions\ folder;
2.) "looper_intf.lua" > Copy the VLC Interface Lua script file into \lua\intf\ folder;
3.) Start the extension in VLC menu "View > Time v3 (intf)" or "Vlc > Extensions > Time v3 (intf)" on Mac OS X and configure the Time interface to your liking.

** 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:

v3.0 (intf) (11.2.2017) 66127 5 months ago

- fixed time in microseconds for VLC 3;

mvastola

1 day ago

This plugin is great, but is there any way you can remove the different editions for different VLC versions? At least between 2.2 and 3.0 the only difference is one line in the interface script, and the misc.version() method could be used to determine which code to use. Thanks!

Report

C

mederi

20 hours ago

ok

Report

bowow0708

9 days ago

Hello I followed all the instructions for installation, but I can't seem to get it to work. I can see the interface alright and it's showing up in my extension tab, but the time stamp does not appear for me no matter what I try. I'm on el capitan Mac and tried using VLC 2.4.8, 3.0.0, and 3.0.4 with all appropriate files. any advice to help?

Report

C

mederi

7 days ago

I cannot test it on Mac as I am on Windows. It is important to copy/install the looper_intf.lua script file in the proper directory for interface scripts \lua\intf\. Then you have to activate the script in VLC. The extension script time_ext.lua installed in \lua\extensions\ and available in VLC menu can help you to set appropriate VLC settings on its first run. Later it is again available in VLC menu in the extensions's submenu. You can also manually check settings in VLC preferences (luaintf, looper_intf > some screenshots for different addon but lua seetings are visible there above the marked ones: https://hobbyistsoftware.com/VLCSetup-mac-manual). Successfully activated interface script is already displaying the time in a playing video or you simply check the activity of the interface script in logs in VLC menu (like in VLC for Windows: Tools > Messages). If the interface script is running in VLC, you can control it with the extension script in VLC menu.

Report

pablo_kks

7 days ago

Same here, maybe it simply doesn't work now for Mac? I have the interface but no time stamp. I am on High Sierra OS

Report

C

mederi

6 days ago

Mac is always different. You could help me to debug the sript on your Mac. You can check the logs with verbosity level 2=debug (⌘+Shift+m, https://wiki.videolan.org/Vlc_MacOS_Window/). Better if you check the logs from the start of VLC in a log file (VLC menu > Preferences > Show All > Advanced > Logging). Perhaps there should be just "lua" instead of "luaintf" in VLC preferences (>Interface > Main interfaces > Lua > Extra interface modules [luaintf] or just [lua]?). Please try it.

Report

C

mederi

3 days ago

Interface script location:
~/Library/Application/Support/org.videolan.vlc/lua/intf/looper_intf.lua
Then run VLC from command line (logging to vlc_log.txt file + interface script activation):
/Applications/VLC.app/Contents/MacOS/VLC --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=looper_intf
Check the log file, post it at pastebin.com and then paste the link here.

Report

pablo_kks

1 day ago

https://pastebin.com/Dyssgw8X

Report

C

mederi

20 hours ago

There should be more logs in the vlc_log.txt file.

Report

pablo_kks

18 hours ago

https://pastebin.com/GRZjMNyj

Report

GregoireLeGrand

3 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

5 months ago

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

Report

NeM

5 months ago

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

Report

NeM

5 months ago

Excellent extension

Report

NeM

5 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

5 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

5 months ago

Extension has stopped working correctly with VLC 3.0.0

Report

C

mederi

5 months ago

Fixed for VLC 3.

Report

lukkysv

7 months 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

7 months 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

11 months 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

11 months 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

11 months 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

10 months 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

10 months ago

It is still not possible.

Report

v3.0 (intf) (11.2.2017) 66127 5 months ago

- fixed time in microseconds for VLC 3;

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) 6 years ago

v2.0 (intf) (28.4.2016) 53798
- resurrection attempt;
- Interface script "time_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 Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
GPLv2 or later
version
updated Feb 11 2018
added Mar 19 2012
downloads today
0
page views today 4
System Tags addon gplv2-later