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

ls1115

2 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

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

1 day ago

Not looper_intf:lua but time_intf.lua

Report

bpinto

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

19 hours 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

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

3 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

3 days ago

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

Report

bpinto

3 days ago

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

Report

C

mederi

3 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

3 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

3 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

2 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

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

20 hours 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

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

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

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

9 days ago

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

Report

baibhav

1 month ago

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

Report

C

mederi

1 month ago

Check the screenshots and read the instructions in description here.

Report

torr3

3 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

C

mederi

3 months ago

The code for [E+seconds] tag ([E+49830]):
local addend=tonumber(string.match(osd_output,"%[E%+(.-)%]"))
if addend then
osd_output = string.gsub(osd_output, "%[E%+.-%]", tostring(TIME_Time2string(et+addend, 0, not TIME_Enoms)))
end

Insert the code right above following line in "time_intf.lua":
local fps=tonumber(string.match(osd_output,"%[E(.-)%]"))

Report

torr3

3 months ago

Wonderful! Thank you!
Another question. How do I get the Time v3.2 information to be on the image when I use the 'Take Snapshot' function in VLC?
Thanks again!

Report

C

mederi

3 months ago

It is not supported in VLC. You can use an external screenshot taker (like IrfanView - hotkey C; you can switch VLC to Minimal Interface Ctrl+H).

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 Count: 4 Rating: 5.0
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
Details
license
GPLv2 or later
version
updated Sep 01 2018
added Mar 19 2012
downloads 24h
79
page views 24h 372
System Tags addon gplv2-later