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.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 \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]

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

yaanu

17 days 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

15 days 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

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

27 days 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

27 days 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

27 days ago

Not looper_intf:lua but time_intf.lua

Report

bpinto

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

26 days 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

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

29 days 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

29 days ago

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

Report

bpinto

28 days ago

at line 258. I changed from "loadstring" to "load" at the Get_config function of the time_ext.lua.

Report

C

mederi

28 days ago

Thanks. VLC for Windows contains Lua 5.1 interpeter. Loadstring has really disappeared in Lua 5.2 and 5.3. I did not know, that Linux useres can use different/newer Lua version. Then you should fix it in time_intf.lua, too. Perhaps the rest of the code will work. The active _intf script is the main one doing all the running time in a playing video and the _ext script is the control panel and the settings dialog box, where you can activate the _intf script. What do you mean by "to see real time"? Is it [E] elapsed time or [T] system time?

Report

bpinto

28 days ago

ok, _ext isn't activating _intf as far as I understand, because with/without changing the _intf the result is the same..., it's something between the two...

Report

bpinto

28 days ago

I also changed the time_intf.lua and still doesn't work. The debug also doesn't help me on this one for now. Well I want to record a video and the that the real time of the recording be on the video when I play it again later on. That's what I call real time recording :) . I'm looking software to do it on linux. Any ideas are welcome.

Report

C

mederi

27 days ago

_ext (Settings) helps you to set related VLC preferences for automatic activation of _intf when launching VLC. You can check them manually as described in the description here (Alternative activation ... >> luaintf (all checkboxes disabled!) & time_intf in related input fields). Then you should start VLC with logging into a file and then check the logs file (search time_intf activation):
vlc -vv --logfile=vlclog.txt, or vlc -vv 2>&1 > logfile.txt
What is Lua version you use? You can insert following line into time_ext, into activate() function, then check logs in messages window:
vlc.msg.info(_VERSION)
What video source are you trying to record (file, video stream, ...)? How do you record in VLC (View > Advanced controls > Record button)? You should transcode video, if you want to hardburn text overlay like subtitles. If it is system actual date/time only, then you can use marquee filter in VLC.

Report

bpinto

26 days ago

Hi, I have done something wrong :( . I don't get the "View > Time v3.2 (intf)" option. At the beginning again...

Yes I use the record button like you describe and I want to record a file. I went to see Lua version and strangely I have two: liblua5_1-5 and liblua5_3-5. Can this generate conflict?. I'm lost..., not to much experience...

I went to see marquee and as far as I understand, it display time but after recording when I play the video time is not there and I need it.

I will try again for a few day before I give up. Then I must find an easier solution to record video and real time and playback a video with time like in debut (only for windows).

thanks for your help :)

Report

C

mederi

26 days ago

This conversation nesting has shrinked the text in too narrow column on my computer (1152x864, 4:3) so I better start on the top again marked as [2-nd thread].

Report

unknow0059

1 month ago

I followed the instructions correctly. I selected the pattern [E]. I clicked Start. I played the video. The extension is not displaying the timestamp anywhere.

Report

C

mederi

1 month ago

I fixed the description here as upgrade of the portal removed all backslashes. I understand that paths were confusing without backlashes.

Report

C

mederi

1 month ago

\lua\intf\time_intf.lua
\lua\extensions\time_ext.lua
Then SETTINGS in dialog box to set the automatic activation of the intf script. Actually the Interface script is the main one doing all the running time in a playing video. It really should work on all 3 systems (Windows, Linux, MacOS) as happy users reported.

Report

unknow0059

1 month ago

I misread one of the folders as being luaintf instead of \lua\intf. It's now working as it should, thanks.

Report

baibhav

2 months ago

how to control and stop time in this version. how can i slow down the video in miliseccond

Report

C

mederi

2 months ago

Check the screenshots and read the instructions in description here.

Report

torr3

4 months ago

Hi. Is there a way to use this extension to calculate and display the record time of the video? If I know the start time of the video could I add the [E] time to that to get the record time displayed? Something like: 13:50:30 + [E] This would be very helpful to me. Thanks for your support and help!

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 2 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
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 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 ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads 24h
53
page views 24h 242
System Tags addon gplv2-later