Image 01
profile-image

mederi

mederi mederi , Slovak Republic
Sampler PG

VLC Extensions by mederi 31 comments

Use "Sampler (PG).lua" instead of "sampler.lua" (for old VLC 2) in current VLC version (3.0.11). Read the description here. - Sep 28 2020
Sampler PG

VLC Extensions by mederi 31 comments

It is out of control of this extension. You can either avoid formats that do not work well with very short durations or better do not use such short times. Try following setting in VLC preferences: Tools > Preferences > Show settings=All > Input/Codecs: Fast seek - Aug 16 2020
YTSubDownload

VLC Extensions by kokokoshka 19 comments

Thanks for the extension. I would like to report some bugs and suggestions on Windows: https://forum.videolan.org/viewtopic.php?f=14&p=506925#p506925
You could use something like: if vlc.io then --use vlc.io stuff since VLC 3.0.2
else
-- use standard Lua's io stuff
end - Jul 28 2020
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Some Linux users have discussed and shared their experience in comments for Time: https://addons.videolan.org/p/1154032/
- May 29 2020
Time v3.2

VLC Extensions by mederi 199 comments

Answered on the forum. - May 24 2020
Sampler PG

VLC Extensions by mederi 31 comments

I mean the Sampler PG is messy. - May 19 2020
Sampler PG

VLC Extensions by mederi 31 comments

https://addons.videolan.org/p/1167844/
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
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

vlc.io is available in VLC 3.0.2+ - May 19 2020
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

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.io.open(vlc.config.userdatadir().."/vlc_jtt_log.txt", "a+")
if f then
-- timestring without milliseconds:
f:write(string.match(timestring,"(.*),").."\r\n")
f:close()
end - May 19 2020
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

O.K. - May 18 2020
Time v3.2

VLC Extensions by mederi 199 comments

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

VLC Extensions by mederi 31 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

in Lua scripts - May 16 2020
Time v3.2

VLC Extensions by mederi 199 comments

Hotkeys are not available in current VLC. - May 16 2020
Sampler PG

VLC Extensions by mederi 31 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

There is marquee filter workaround. Please check older comments. - Apr 10 2020
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

O.K., answered on the forum. - Apr 03 2020
Time v3.2

VLC Extensions by mederi 199 comments

Lua 5.1? Check the discussion with bpinto in comments here. - Mar 02 2020
Time v3.2

VLC Extensions by mederi 199 comments

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 - Feb 26 2020
Time v3.2

VLC Extensions by mederi 199 comments

You could use marquee filter in VLC. Please find my reply to frob (on the next page of older comments here). - Feb 25 2020
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

[2]
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()
input_events_handler()
subtitle=nil
end

Really not a bad idea I could add in the future version. - Jan 17 2020
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Also edit related "else" command in line 136 (v1.3) to:
elseif subtitle~=nil then - Jan 14 2020
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

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
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

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 by mederi 199 comments

Yes, just follow the instructions 1-2-3. - Nov 01 2019
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

[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 - Sep 19 2019
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

Not looper_intf:lua but time_intf.lua - Sep 18 2019
Time v3.2

VLC Extensions by mederi 199 comments

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. - Sep 18 2019
Time v3.2

VLC Extensions by mederi 199 comments

_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. - Sep 17 2019
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

Where exactly was the problem and how did you fix it? - Sep 16 2019
Time v3.2

VLC Extensions by mederi 199 comments

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/ - Sep 15 2019
Time v3.2

VLC Extensions by mederi 199 comments

I fixed the description here as upgrade of the portal removed all backslashes. I understand that paths were confusing without backlashes. - Sep 11 2019
Time v3.2

VLC Extensions by mederi 199 comments

\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. - Sep 08 2019
Time v3.2

VLC Extensions by mederi 199 comments

Check the screenshots and read the instructions in description here. - Jul 30 2019
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

You have to manually download and install the extension v3.0 in VLC 3. - Jul 02 2019
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

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(.-)%]")) - Jun 05 2019
Time v3.2

VLC Extensions by mederi 199 comments

Please find my recent reply to frob. - May 21 2019
Time v3.2

VLC Extensions by mederi 199 comments

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 = vlc.io.open(vlc.config.userdatadir().."\\timemarquee.txt", "w")
if f then
f:write(TIME_Decode_time_format())
f:close()
end

I could add this option in Time extension in the future version. - May 21 2019
Time v3.2

VLC Extensions by mederi 199 comments

How would you handle all other languages? The "Frame rate" key is translated according to selected interface language in VLC. - May 08 2019
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

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
Jump to time Previous frame v3

VLC Extensions by mederi 55 comments

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
Time v3.2

VLC Extensions by mederi 199 comments

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

VLC Extensions by mederi 31 comments

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 https://www.winehq.org/
I am not VLC developer, I have just written this Lua script for VLC. You can file your bug reports & feature requests at https://trac.videolan.org/vlc/ - Jan 28 2019