
VLC Extensions by mederi 34 comments

VLC Extensions by mederi 34 comments

VLC Extensions by mederi 34 comments

VLC Extensions by kokokoshka 19 comments
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

VLC Extensions by mederi 64 comments
- May 29 2020

VLC Extensions by mederi 34 comments

VLC Extensions by mederi 34 comments
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

VLC Extensions by mederi 56 comments

VLC Extensions by mederi 56 comments
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

VLC Extensions by mederi 56 comments

VLC Extensions by mederi 34 comments
- 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

VLC Extensions by mederi 34 comments
|---S1---S2---S3---S4---| => S3, S1,S4,S2 - May 02 2020

VLC Extensions by mederi 64 comments
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

VLC Extensions by mederi 64 comments
elseif subtitle~=nil then - Jan 14 2020

VLC Extensions by mederi 64 comments
if subtitle==nil then
Then try to add the condition there:
if subtitle==nil and vlc.playlist.status()=="paused" then - Jan 14 2020

VLC Extensions by mederi 64 comments
"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
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
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
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
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
\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

VLC Extensions by mederi 56 comments
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
: [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

VLC Extensions by mederi 56 comments

VLC Extensions by mederi 56 comments
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
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