VLSub

VLC Extensions by exebetche 818 comments

Hi! Please check PM at forum as it is not available here anymore. - Dec 06 2016
Time v3.2

VLC Extensions by mederi 202 comments

I am not VLC developer. The Extension just works with time values provided by VLC. - Jun 03 2016
Time v3.2

VLC Extensions by mederi 202 comments

Thank you for your feedback. So the alignment does not work for you. The "top-right" position should be selected as the default option when you activate the extension. Does it really not work if you select some other position and then press "START" button? Is there anything in the logs (messages) in VLC for this action? Does the ">> PUT^IN" work if you select anything in drop-down list to put it in the input text field?

Perhaps there is a solution to make the TIME extension work in new versions of VLC: interface script (an endless loop with a short sleep to periodically check the settings and to update the time values on the screen) + extension script (dialog box with a control panel for interaction with a user to change time settings and to save settings in some unused VLC variable or in a text file). - Mar 27 2016
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

Thank you for your contribution. I will fix it soon. - Sep 23 2015
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

Thank you for the screenshots. Now I see the difference. VLC for OS X is all different from Windows/Linux. Please can you make 2 more screenshots of 2 different variations for me?
Quote:-- text_input: col_span=1; button: col=3;
textinput_time = d:add_text_input(Time2string(0), 2,1,1,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 3,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,1,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 3,3,1,1)

-- text_input: col_span=2; button: col=4;
textinput_time = d:add_text_input(Time2string(0), 2,1,2,1) -- "00:00:00,000"
d:add_button(">> &Set time", click_Set_time, 4,1,1,1)
textinput_jump = d:add_text_input(jumps[1][2], 2,3,2,1) -- default jump length (1-st in the list)
d:add_button(">> &Forward", function() click_Jump(1) end, 4,3,1,1)Here is how it looks in my computer: https://cdn.pbrd.co/images/NYpDsUO.png

I would like to make a different layout for OS X and to keep the compact one for Windows and Linux. I would like to ask you whether you could help me to find out the best way how to distinguish OS X from Linux in VLC Lua. It can be useful for other cases/extensions, too. Perhaps there is an environment variable that is available in all OS X systems and not available in Linux, or they have a different value. According to this link: http://www.cyberciti.biz/faq/set-environment-variable-unix/unix-env-printenv-set-command-to-display-environment-variables/ the OSTYPE could be the one I am looking for. Please check its value in OS X:Quote:-- some environment variables like "OS" and "windir" on Windows (OS=Windows_NT; windir=C:\WINDOWS). "OSTYPE" on OS X and Linux?
-- word "Application" in userdatadir on OS X, not on Linux?
d:add_html(tostring(os.getenv("OSTYPE")) .."<br />".. vlc.config.userdatadir(), 1,5,3,1)
Do the ampersands "&" in the buttons work as hotkeys (Alt+G, Alt+S, ...)? Probably not as they are not invisible there. I can remove them from OS X layout.
Which of the buttons is the "submit" button? While I am editing a string in a text_input field or selecting an item in the drop-down list on Windows, then the first button in the code "Time format" is automatically focused and ready for action by pressing the Enter key on keyboard. - Sep 21 2015
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

VLC Extensions dialog box widgets stacking issue in VLC for OS X. - Sep 17 2015
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

Sorry, the "always on top" feature is not available for dialog box window of VLC Extensions.
You could have the "Pause/Play" button in the dialog box if it helps you. Just edit the script and insert the new button in function Create_dialog():Quote:d:add_button("&Pause / &Play", function() vlc.playlist.pause() end, 2,4,1,1) - Sep 14 2015
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Quote:sleep 1This command waits 1 second that might be too long. Try to use "sleep 0.1" instead of "sleep 1" or use "usleep 100000" with microseconds. I cannot test it as I am on Windows XP. Please somebody let me know the best solution. - Aug 17 2015
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Quote:http://addons.videolan.org/content/show.php?content=152364&forumpage=1#c477914
On Linux
by KqdK2J4K on: 12 hours ago

http://wikiwiki.jp/disklessfun/?misc1#e976f4fa
Thank you for sharing your script. I will put it in description and package of the extension. - Aug 16 2015
Click to Play/Pause

VLC Extensions by 3demax 27 comments

https://github.com/nurupo/vlc-pause-click-plugin - Mar 06 2015
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Thanks! I will put it in the description of the extension.
Now only Linux remains without similar simple solution for automatic pressing of the button. - Feb 10 2015
xHamster.com

VLC Playlist Parsers by Tickeldi 6 comments

Tickeldi please take the fixed script posted by filocida and upload it here. Thanks.
A direct link: http://pastebin.com/download.php?i=fJ1tCnQg - Jan 18 2015
VLSub

VLC Extensions by exebetche 818 comments

A cherry on top of your great extension?
https://forum.videolan.org/viewtopic.php?f=29&t=123653 - Jan 15 2015
Sampler PG

VLC Extensions by mederi 34 comments

You're welcome - Jan 15 2015
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

https://trac.videolan.org/vlc/ticket/3883 - Dec 29 2014
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

Thanks for the tip. I use Notepad++. - Dec 29 2014
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

There are "stop-time" and "run-time" VLC options available for playlist items (check Sampler (PG) and Clipper VLC Extensions). - Dec 28 2014
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

Quote:vlc.var.set(vlc.object.vout(),"crop","16:9") -- predefinded standard ratios
or

vlc.config.set("custom-crop-ratios", "17:8,640:300")
then
vlc.var.set(vlc.object.vout(),"crop","17:8") - Dec 24 2014
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

Quote:vlc.var.set(vlc.object.vout(),"crop-top",100)

vlc.config.set("custom-aspect-ratios", "17:8,640:300")
then
vlc.var.set(vlc.object.vout(),"aspect-ratio","17:8")
- Dec 24 2014
Moments' Tracker

VLC Extensions by aur 43 comments

Tools > Messages (Ctrl+M) > Verbosity: [2 (debug)]
Is there anything in the logs if you try to activate the extension?

Lua cannot handle UTF-8 strings properly and so it cannot create/write files with paths containing other than Basic Latin characters (Non-ASCII). Try to customize the destination path:
Line 3 >Quote: destination = "d:/VLC-moments_tracker.txt"Line 47 >Quote: if destination == nil then destination = vlc.config.userdatadir().."/moments_tracker.txt" end
- Dec 17 2014
Time v3.2

VLC Extensions by mederi 202 comments

O.K. Thanks. - Nov 21 2014
Time v3.2

VLC Extensions by mederi 202 comments

The extension does not work in VLC-2.1+. Please could you try VLC-2.0.9 whether the extension works there? I am on Windows and I do not have enough feedback from OS X users.

A workaround with a Refresh button, that should be pressed periodically during playback (to press and hold the Enter key or a software key sender), is possible. If there are users interested in such a workaround, the principle is shown in "Animated ASCII Art" and "Subtitler (lite) mod" extensions. Could you try them with latest VLC in your Mac OS X? - Nov 19 2014
VLSub

VLC Extensions by exebetche 818 comments

The additional condition really works for stopped video. Line 1671 > Quote: or not openSub.file.hasInput or vlc.playlist.status()=="stopped" then - Nov 19 2014
VLSub

VLC Extensions by exebetche 818 comments

Quote:vlc.playlist.status()=="stopped" - Nov 14 2014
VLSub

VLC Extensions by exebetche 818 comments

Yes, now it works. Thanks.
I have one more thing for you to consider. If I stop playback and VLSub dialog remains open, I suggest to show download link rather than direct download of subtitles for stopped film. What do you think? - Nov 11 2014
VLSub

VLC Extensions by exebetche 818 comments

Thank you, but now it always provide a download link even if a film is playing in VLC and VLSub is configured to "Load and save". There is no error message. Thank you in advance. - Nov 10 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Hi, surferau! Please confirm whether the new version (1.2) of Subtitler (lite) mod works on Mac OS X. Thanks. - Nov 03 2014
VLSub

VLC Extensions by exebetche 818 comments

Please check the 2-nd line in English help text:
Quote:"..
Then there is following text in the Usage section:
Quote:(if nothing is playing you will get a link to download the subtitles in your browser)There is a bug, because VLSub does not offer a direct link for downloading of selected subtitles (with "What to do with subtitles: [Load and Save]" in Configuration):
Quote:lua debug: Clicking 'd:\vlc\lua\extensions\vlsub.lua': 'Download selection'
lua warning: Error while running script d:\vlc\lua\extensions\vlsub.lua, function (null)(): d:\vlc\lua\extensions\vlsub.lua:1689: attempt to concatenate local 'subfileName' (a nil value)
lua warning: Could not translate clickThanks. - Oct 27 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Was it the same crash as was already reported here by conehead on May 31, 2014, and the additional line of code is the solution?
http://addons.videolan.org/content/show.php?content=152364&forumpage=1#c465569
The script should not crash. It just should not find any subtitles in the file. I can pass all necessary information to VLC developers to fix this crashing issue and I can update the script.
Is there any method to send "Enter" keystrokes automatically and periodically into the "Subtitler (lite) mod" dialog box on Mac OSX? Any script or application?
Thank you for your report and solution. - Sep 26 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Well, the script works well for me on my system Windows XP, VLC 32-bit. The "\r\n" EOLs are automatically converted to "\n"s by the file:read() function.
Please confirm conditions when is the different behavior. VLC 64-bit? Linux or Mac? I cannot test it, but it is really possible that you are true and additional line of code is necessary there. - Sep 25 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

What OS? - Sep 24 2014
VLSub

VLC Extensions by exebetche 818 comments

VLSub works again in Windows (http://download.videolan.org/testing/vlc-2.2.0-pre3/win32/). I am going to ask VLC developers to not forget to include the updated version of VLSub. Thanks. - Aug 31 2014
Youtube playlist

VLC Playlist Parsers by exebetche 360 comments

The "youtube.lua" playlist script has been updated recently:
http://git.videolan.org/?p=vlc.git;a=blob_plain;f=share/lua/playlist/youtube.lua;hb=HEAD
Download it and replace the outdated "lua\playlist\youtube.luac" in your VLC folder or download and install actual nightly version of VLC. - Aug 11 2014
Resume Media V3.40 (Win/Lin)

VLC Extensions by pnon10s 100 comments

vlc.net.opendir() is available in VLC-2.0.x and is back in VLC-2.2. You could test items of returned table for file/folder/unrecognizable flag, for example:
Quote: local file,err,code = io.open(path, "r")
if file then
-- file
io.close(file)
elseif code~=2 then
-- folder
else
-- ?
endI was playing myself with it in the past, but never put the complete file open dialog together. - Jul 26 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

There is not any better solution for VLC-2.1+. The "add_callback()" has been removed from Lua extensions.
You just need to use some "keypresser" or "keysender", an external application that is able to send "Enter" keystrokes to "Subtitler (lite) mod" window in certain time interval (about 100 ms) automatically. I have written and included a simple VBScript for Windows users. Linux users could find some application on the Internet and share their recommendation right here. - Jul 07 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

What do you mean by "keeping always the subtitle on the screen"? - Jul 07 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Are there any extensions that works in OS X? Please try "Animated ASCII Art" extension as the "Subtitler (lite) mod" is based on the same principle. Please try also "Sampler (PG)", "VLSub" and some others if you can. Thanks. - Jun 05 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

https://trac.videolan.org/vlc/ticket/11566 - Jun 04 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Is the "Subtitler (lite) mod.lua" file in the right place: "/Applications/VLC.app/Contents/MacOS/share/lua/extensions/" or "/Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/"? Does the extension appear in VLC > Extensions > Subtitler (lite) mod? If you activate the extension, does the dialog box appear on the screen? I need a feedback from OS X users as I am on Windows.

Then the extension works as described in the screenshot: play a media first, activate the extension, press and hold Enter key or use an application that sends the presses of the Enter key automatically in the dialog box. The activated extension should automatically load SRT subtitle file with the same name and place as a playing media file when activating the extension or you can specify the path to SRT file directly in the script (edit the Lua script in a text editor). The path should not contain any special characters. It can contain only ASCII characters (Basic Latin range in Unicode charset), but this is probably only Windows related problem. - May 27 2014
stop after duration

VLC Extensions by bugsneo 15 comments

Does the countdown work for you if one playlist item is over and VLC plays next media? What OS do you use? - Apr 15 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

It is possible to modify the script and add a Refresh button in the dialog box. Then you could keep Enter key pressed down to keep updating subtitles on the screen. It is possible to use some "keypresser", an external application, to automatically send presses of Enter key in the dialog box window of this extension.
You can test this method on Animated ASCII Art extension: http://addons.videolan.org/content/show.php?content=162229
Interested? - Feb 26 2014
VLSub

VLC Extensions by exebetche 818 comments

https://trac.videolan.org/vlc/ticket/9495#comment:9 - Jan 05 2014
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

Thank you for feedback. I have just found following video with instructions how to install VLSub extension on Linux, Windows and Mac:
http://www.youtube.com/watch?v=of2wgf_dhQw
You do not need to understand the language there, just jump to the 13-th minute in the video (part about Mac) and watch it.
VLSub extension also uses dialog box and it apparently works on Mac, too. Please install the Previous frame extension the same way like the guy in the video and tell me, whether the extension appears in VLC menu and whether it works. Do not eliminate dialog box by removing create_dialog(). You probably need to eliminate callback as described in my previous comment.
Callbacks probably never worked on Mac. They works on Windows and Linux in VLC-2.0.x, not in new VLC-2.1.x. Please share your experience to provide correct instructions for other users of Mac OS X. Thanks. - Jan 04 2014
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

Ticket #8097
Lua Extensions, VLC2.1: var.add_callback( ), var.del_callback( ) do not work
http://trac.videolan.org/vlc/ticket/8097
Some willing C++ developer could help. - Nov 02 2013
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

Please edit the script and remove those two lines with add_callback, del_callback and share your experience here, whether the dialog box in extension works on Mac. I am on Windows XP. - Oct 31 2013
Time v3.2

VLC Extensions by mederi 202 comments

Ticket #8097
Lua Extensions, VLC2.1: var.add_callback( ), var.del_callback( ) do not work
http://trac.videolan.org/vlc/ticket/8097 - Sep 28 2013
Time v3.2

VLC Extensions by mederi 202 comments

Yes, it is possible to put some text information into the clipboard in Windows. There is an extension:
>> http://forum.videolan.org/viewtopic.php?f=29&t=101114&p=341439#p341211
And it is also possible to read the Codec Information. There is an interface script, that displays it on the screen in a playing video by pressing the "t" hotkey:
>> http://forum.videolan.org/viewtopic.php?f=29&t=111880
So duration is available (if it is available :), resolution is available within Codec Information. By size do you mean a file size of a played media file? - Sep 08 2013
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

You cannot find it in the hotkeys dialog (VLC preferences) because it is not there. You just activate the extension in VLC menu, then you use the predefined hotkeys Numpad4 and Numpad6 in the player. If you want to define custom hotkeys, then edit the script and use custom key code number (previous_key=52). To find out a key code, just activate the Logger in Help in the dialog box of the extension, focus the player and press a desired key there. - Aug 27 2013
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

http://forum.videolan.org/viewtopic.php?f=29&t=112220#p382214

* find line 134> if actual_time>=v[1] and actual_time<=v[2] then
* insert next new lines>
Quote: if string.match(v[3], "It's been a long road")~=nil then
local duration = vlc.var.get(input,"length")
vlc.var.set(input,"position", (v[1]+80) / duration)
break
endJumps 80 seconds ahead if subtitle text "It's been a long road" should appear. - Aug 15 2013
Time v3.2

VLC Extensions by mederi 202 comments

Or you can remove that timing part from the script :) It just reduces a refresh period a bit. The extension seems to work pretty well, so it is not necessary there at all. We cannot talk about precision here. You just see a running time on the screen and if you pause a playing video, then actual time appears. - Aug 04 2013