Image 01


mederi mederi , Slovak Republic
VLC Extensions
Subtitler lite mod v1.3

VLC Extensions 63 comments

Score 63.8%
Aug 28 2018
Some Linux users have discussed and shared their experience in comments for Time:
- 1 day ago
Following solution does not need pressings of the button in the dialog box (v1.3).
Line 28>
capabilities = {"playing-listener"}
Line 42> --Define a callback function here by inserting following new lines:
function playing_changed()

Really not a bad idea I could add in the future version. - Jan 17 2020
Also edit related "else" command in line 136 (v1.3) to:
elseif subtitle~=nil then - Jan 14 2020
Find the following line:
if subtitle==nil then
Then try to add the condition there:
if subtitle==nil and vlc.playlist.status()=="paused" then - Jan 14 2020
So do you want to display subtitles only when you pause a playback and do not show them during normal playback? - Jan 13 2020
Time v3.2

VLC Extensions 199 comments

Score 82.6%
Sep 01 2018
Answered on the forum. - May 24 2020
You can have a button in a dialog box window to log the time in a file. I can provide that piece of code for another VLC Extension: Jump to time (Previous frame). Then you can try to use Autohotkey helper to press that button. I have already instructed a user in comments how to copy the time to clipboard and so it can go to a file, too. If you are interested then write a brief comment on Jump to time page. - May 18 2020
in Lua scripts - May 16 2020
Hotkeys are not available in current VLC. - May 16 2020
There is marquee filter workaround. Please check older comments. - Apr 10 2020
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. - Apr 03 2020
O.K., answered on the forum. - Apr 03 2020
Lua 5.1? Check the discussion with bpinto in comments here. - Mar 02 2020
It seems there is currently an issue with comments on this portal. Try the direct link in address bar in your browser:
or - Feb 26 2020
You could use marquee filter in VLC. Please find my reply to frob (on the next page of older comments here). - Feb 25 2020
Yes, just follow the instructions 1-2-3. - Nov 01 2019
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). - Sep 29 2019
[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>"[ TIME ] " .. _VERSION)
- comment out/eliminate Get_function() call in line 43>
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 - Sep 19 2019
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]. - Sep 19 2019
Not looper_intf:lua but time_intf.lua - Sep 18 2019
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:
Interface script location:
Then run VLC from command line (logging to vlc_log.txt file + interface script activation):
/Applications/ --verbose=2 --file-logging --logfile=vlc_log.txt --extraintf=luaintf --lua-intf=looper_intf
Check the log file, post it at and then paste the link here.
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. - Sep 18 2019
_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:
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. - Sep 17 2019
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? - Sep 16 2019
Where exactly was the problem and how did you fix it? - Sep 16 2019
I am not Linux user. I can see there are VLC edition for openSUSE:
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 - Sep 15 2019
I fixed the description here as upgrade of the portal removed all backslashes. I understand that paths were confusing without backlashes. - Sep 11 2019
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. - Sep 08 2019
Check the screenshots and read the instructions in description here. - Jul 30 2019
Find following line in "time_intf.lua":
local duration = vlc.input.item():duration()
Then insert next new line there:
local dt=duration - Jun 21 2019
Just store the duration in a new variable (dt) before it changes a number value to a formatted string:
local duration = vlc.input.item():duration()
local dt=duration
Then you can use your calculation: addend-dt+et (instead of et+addend). - Jun 20 2019
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). - Jun 06 2019
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)))

Insert the code right above following line in "time_intf.lua":
local fps=tonumber(string.match(osd_output,"%[E(.-)%]")) - Jun 05 2019
Please find my recent reply to frob. - May 21 2019
There is a workaround using marquee filter reading a text file (Tools > Preferences > Show settings=All > Video \ Subtitles/OSD
: [v] Marquee display
\ Marquee: Text file [D:\vlc-3.0.2+\portable\timemarquee.txt] / Position / Font / Misc).

Edit the "time_intf.lua" in a text editor, find following line:
vlc.osd.message(TIME_Decode_time_format(), 1111111111, TIME_osd_position)
Replace it with following new lines of code:
local f ="\\timemarquee.txt", "w")
if f then

I could add this option in Time extension in the future version. - May 21 2019
How would you handle all other languages? The "Frame rate" key is translated according to selected interface language in VLC. - May 08 2019
You can edit the "time_intf.lua" script in a text editor. Find the line:
osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps))
Edit the math.floor() function there if it make sense for you:
osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps % fps)) - Feb 19 2019
time_intf.lua - Jan 17 2019
Copy the "time_inft.lua" into "intf" folder, not into "extensions"! Then it works. - Jan 17 2019
Sampler PG

VLC Extensions 26 comments

Score 78.3%
May 22 2014
I mean the Sampler PG is messy. - May 19 2020
I do not tell you how-to now. I remember the code is a bit messy - a rework with minimal effort, a prototype. Probably it requires more work to implement the feature. I will check it later. - May 19 2020
O.K. I have already written the "Mix playlists" script you can find around. The algorithm can be reused in Sampler(PG). Todo:
- The option could be called "Mix samples" placed next to the "Shuffle tracks".
- Another new option "Shuffle samples" could be placed next to the "Random position".
- Skipper [s] (vs Samples per item).
- rework, improve and polish the messy code. - May 16 2020
There is the "Random position" option. Do you want something like "Shuffle samples" when not in random position?
|---S1---S2---S3---S4---| => S3, S1,S4,S2 - May 02 2020
Just search Google: how to run windows applications on android. You could try to run a portable VLC (no installation, just a decompressed VLC with manually created "portable" folder in VLC folder near vlc.exe) in Wine
I am not VLC developer, I have just written this Lua script for VLC. You can file your bug reports & feature requests at - Jan 28 2019
VLC Extension Lua scripts are not supported in VLC for Android. You could try whether it is possible to run VLC for PC on Android (I have Googled a bit: Wine for Android?).
You should try the extension in VLC on PC. The Sampler (PG) generates a playlist with playlist items containing star-time/stop-time advanced VLC options. Then you can save such a playlist with relative paths (VLC 3+) if you save it in the same local folder. Then you could try to run such a playlist with the same folder of media files in VLC for Android. You could let me know, whether VLC for Android supports playlists with advanced VLC options. - Jan 27 2019
Jump to time Previous frame v3

VLC Extensions 55 comments

Score 58.0%
Aug 28 2018 is available in VLC 3.0.2+ - May 19 2020
Edit the script v3 in a text editor. Find following line within click_Get_time function:
local timestring = Time2string(vlc.var.get(input,"time"))
Then inser next new lines of code there:

local f ="/vlc_jtt_log.txt", "a+")
if f then
-- timestring without milliseconds:
end - May 19 2020
O.K. - May 18 2020
You have to manually download and install the extension v3.0 in VLC 3. - Jul 02 2019
Current implementation of extension scripts does not allow too much dynamics and so events could happen mostly only by clicking buttons within dialog box. Some more complicated solution, a workaround, is possible with the usage of interface script or an external helper besides the extension script. - Mar 30 2019
I am Windows user, but it should be possible. Try following command line in your osx:
echo 00:00:00,000|pbcopy
If it works, then you can edit the lua script in a text editor and insert following line within function click_Get_time():
os.execute("echo "..Time2string(vlc.var.get(input,"time")).."|pbcopy") - Mar 30 2019