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

9
Score 80.6%
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 and configure the Time interface to your liking:
- Windows/Linux: "View > Time v3.x (intf)";
- Mac OS: "Vlc > Extensions > Time v3.x (intf)".

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]

Lua 5.1! like in VLC-32bit for Windows (later I will fix it for Lua 5.2/5.3)
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) 1 year ago

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

adambishop

1 month ago

I left a message on the forum...not sure if you saw it. Love this plugin. Can you change the Elapsed_Time [E] to reflect changes in the playback speed of videos? Or make another entry [E2] or something? I've been modifying the file for my purposes, but that would be a big help for future versions or even now when I need to download this plugin for another computer. Thanks again.

Report

C

mederi

5 days ago

O.K., answered on the forum.

Report

adrian2020

1 month ago

Hello. It doesn't work on Manjaro Gnome. I did everything right. What can i do ? In other distros works very well. Can you help me please ? Thanks

Report

C

mederi

1 month ago

Lua 5.1? Check the discussion with bpinto in comments here.

Report

adrian2020

1 month ago

Sorry, i don't understand exactly what i have read there. Can you please explain step by step, to a noob, what i have to edit and what i have to add to that file. Thanks

Report

C

mederi

4 days ago

If it is the Lua interpreter version problem, then you could try to fix the script ("load" instead of "loadstring") or better use Lua 5.1 library like in VLC for Windows (5.1.4). I am not Linux user, so do not ask me how to. Try to check the Lua version. Please try to find a solution and let me know it.

Report

adrian2020

4 days ago

I've installed vlc from snap and made a lua folder and copied extension in this folder and it works now. Previous i had the latest vlc from comunity store. So it was version problem maybe. I'm happy that it works now. I'm wondering if it is possible to change the size of the font, different than subtitle. Thank you!

Report

big-apple

1 month ago

Is it possible to format the colour, size, opacity and background of the output without affecting the subtitles?

Report

C

mederi

1 month ago

You could use marquee filter in VLC. Please find my reply to frob (on the next page of older comments here).

Report

big-apple

1 month ago

Regretfully I can not seem to load the older comments on Safari/Chrome or Firefox, if it is not to much effort could you please post it again?

Thanks in advance for your help.

Report

C

mederi

1 month ago

It seems there is currently an issue with comments on this portal. Try the direct link in address bar in your browser:
https://addons.videolan.org/p/1154032/show/page/2
or
https://www.pling.com/p/1154032/show/page/2

Report

kiranzykey

5 months ago

Is it possible to add the extension while using Version 3.0.8 Vetinari ?

Report

C

mederi

5 months ago

Yes, just follow the instructions 1-2-3.

Report

9

sldgehammer

5 months ago

9 9 excellent

Report

yaanu

6 months ago

Will it ever be possible to automatically fetch a video's frame-rate/FPS for use with the "[Efps]" tag, or is this currently impossible? I saw in VLC's Lua scripting documentation that there is a "player.get_rate()" command that fetches "the playing rate", but I wouldn't know if that's simply a speed setting or the actual frame rate.

Report

C

mederi

6 months ago

You can find a comment from a user named dementia (on the 2-nd page). He provided a solution for [F] tag. You could try it and tell me how it works.
"player.get_rate()" is the speed rate (1x, 1.5x, 2x, ...) and it is the new API for VLC 4. Later I will fix the script for VLC 4 and I can implement some improvements, too. The problem is that the "Frame rate" key is translated according to selected interface language in VLC. I think the English could be supported by default and users of other languages should provide translation manually according to codec information (Tools > Codec information: Stream, Frame rate).

Report

yaanu

6 months ago

I just added the code and it works! Using [F] alone captures the frame rate, but using "[E[F]]" together works the same as "[Efps]".

Report

ls1115

6 months ago

I'm on Mac OS Mojave 10.14.06 I have pasted both items at their lua and intf locations, but "extensions" on the VLC drop down menu is grayed out. Any suggestions? I can't find any place under "preferences" (which I suppose is the equivalent of "settings" on Windows) to check automatic activation of _intf when launching VLC.

Report

C

mederi

6 months ago

It is weird that extensions in the menu is grayed out. There should be at least VLSub extension by default available in VLC menu. Is it possible that extensions are turned off somewhere in VLC preferences?
In the past a usere named pablo_kks helped me to debug the script on his Mac. You can find the discussion with him here if you want. You could start VLC with logging into a file, then check the logs there:
[quote]
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.
[/quote]
Perhaps it is not an issue with newer Lua interpreter than Lua 5.1 like on Linux in previous discussion with a user named bpinto.

Report

C

mederi

6 months ago

Not looper_intf:lua but time_intf.lua

Report

bpinto

6 months ago

I'm using Opensuse 15.1 leaf and I followed the instructions. This is what I have:
linux-tboz:/usr/lib64/vlc/lua/intf # ls
cli.luac dumpmeta.luac luac.luac telnet.luac
dummy.luac http.luac modules time_intf.lua
linux-tboz:/usr/lib64/vlc/lua/extensions # ls
time_ext.lua VLSub.luac

but when I select the "View > Time v3.2 (intf)" option she doesn't became "blue" and the "Time v3.2 Control panel" doesn't pop up...
What did I miss?

Report

C

mederi

6 months ago

[2-nd thread]
The record button does not transcode/reencode video with a text overlay. You can try streaming wizard (Media > Stream...) where you select source, destination, create&select transcoding profile with appropriate video parameters and subtitles overlay (soverlay). Then you can insert marq sfilter into final stream output string there:
,soverlay,sfilter=marq{position=6,marquee="%d.%m.%y %H:%M:%S"}
You can use more marq parameters (color, size, opacity, x, y) or you can set them in advanced VLC preferences (Tools > Preferences > Show settings=All > Video \ Subtitles/OSD).
You can prepare a command line (a batch/bash script) to simplify things next time or an Extension is possible, too.
The Time VLC Extension can be modified to use marquee filter (please find the conversation with user named frob).

You can help to debug the Time script on your system and share your experience with othere users here. The script is written for Lua 5.1 Please try to edit the "time_intf.lua" script in a text editor, then launch VLC from command line with options activating the interface script and logging into a file:
- insert line 30>
vlc.msg.info("[ TIME ] " .. _VERSION)
- comment out/eliminate Get_function() call in line 43>
--Get_config()
Launch VLC from command line (this works on Windows and Mac or try the way mentioned at the end of our 1-st thread conversation; space " " instead of "=" characters in Linux?):
vlc --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=time_intf

Report

C

mederi

6 months ago

I am not Linux user. I can see there are VLC edition for openSUSE: http://www.videolan.org/vlc/download-suse.html
Does VLSub work? Can you install manually any other extensions? Does Addons manager work (Tools > Plugins and extensions)? You can check logs (Tools > Messages, Verbosity: 2(debug)). Perhaps you should try VLC for Linux forum https://forum.videolan.org/

Report

bpinto

6 months ago

thank you for the verbosity information. It was useful to correct the problem :). It was in a "globalstring" on Get_config (). Now I'm on the next stage: I don't see any clock when I record a video :). I need to see real time showing in my recorded videos, so I will keep trying.

Report

C

mederi

6 months ago

Where exactly was the problem and how did you fix it?

Report

v3.2 (intf) (27.8.2018) 1 year ago

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

v3.1 (intf) (19.8.2018) 1 year 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 3 years ago

- fixed several bugs in Interface script;

old (before changes on this portal in September 2016) 1 year 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
13
product-maker sldgehammer Oct 25 2019 9 excellent
9 excellent
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 Base: 4 x 5.0 Ratings
yaanu
Sep 28 2019
lukas089
Apr 24 2019
jaramazovic
Feb 14 2019
praneet
Dec 28 2018
engdarkrosealchemist
Nov 13 2018
gu5tavo
Nov 09 2018
artistmatej
Sep 12 2018
arnoldwaswaiga
May 19 2018
neokix
Feb 18 2018
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads 24h
95
mediaviews 24h 0
pageviews 24h 535
System Tags addon gplv2-later