VLSub

VLC Extensions by exebetche 818 comments

It is safe to use quotes on paths as they can contain spaces:
"%ProgramFiles%\VideoLAN\VLC\vlc.exe" --verbose=2 --file-logging --logfile="%HOMEPATH%\vlc_log.txt" - Jul 31 2013
VLSub

VLC Extensions by exebetche 818 comments

The translation should be UTF-8 encoded. You do not need any special text editor/convertor (Notepad++ is my favorite one). Just File > Save as... > Encoding: [UTF-8] in Notepad in Windows. - Jul 25 2013
VLSub

VLC Extensions by exebetche 818 comments

O.K. Thanks. Almost perfect.
Now, if you change interface language in Configuration dialog box, all interface gets translated right after pressing Save button except the "What to do with subtitles:" drop-down list until restart of VLSub. Please check also next drop-down lists there.

Then you could split "VLSub working directory: path" and use text_input widget for the "path" occupying next 2 cells. To see the full path it is possible to resize the dialog box. It would be possible to copy the path and use it to get to that place easily.

And finally missing colon at the end of "Display language code in file name" and "Remove tags". - Jul 22 2013
VLSub

VLC Extensions by exebetche 818 comments

Slovak, slo.xml: http://pastebin.com/92ChR0Nv
Czech, cze.xml: http://pastebin.com/F4STC7mr - Jul 22 2013
VLSub

VLC Extensions by exebetche 818 comments

VLSub has created its own working directory lua\extensions\userdata\vlsub in VLC program directory. There is an information about it in the Config dialog box - nice idea for users to know, where vlsub_conf.xml can be found.

Downloading of translations works, but there is a problem with saving changes in Configuration. The actual translation disappears from the vlsub_conf.xml file by saving changes, so if I reopen VLSub, there is the default English language instead of the chosen translation.
Expected behaviour: to keep the actual translation and also do not try to download it again from the Internet even if the [Save] button is pressed. Find update of actual language only by pressing the [Search translations] button. The [Save] button can serch for translation only if the chosen interface language is different from the actual one. I presume, that it is already supposed to work this way, but there is only a bug not saving the actual translation with additional other changes in configuration.

Some messages in the dialog box do not appear translated: "Research complete: results", "No result", "Please use this method during playing". Probably there is a problem to show translated also items in drop-down lists in Configuration, isn't there? If no, than also "false/true" could be shown as "no/yes" and appropriately translated.

Manual setting of translation is not that easy, like simply putting a file in a directory, but it is not a big problem for me to edit the vlsub_conf.xml file. I think, that there could be also the default English translation generated by the script in the conf file, just like other translations are stored there. Users could see the structure <translation>...</translation> and edit it also without the additional languages downloaded from the Internet. Think if VLSub is a .luac script in VLC distribution and users are not connected to Internet.

Just couple of ideas and opinions. Thanks. - Jul 18 2013
VLSub

VLC Extensions by exebetche 818 comments

I see VLSub-0.9.7 is already out. I will let you know. Thanks. - Jul 17 2013
VLSub

VLC Extensions by exebetche 818 comments

http://pastebin.com/5rKtJvDa

If I press [Show config] button, the "What to do with subtitles:" drop-down widget is empty [ ]. If I press [Save] button, it does not create "vlsub_conf.xml" file, but if I [Cancel] and then go back to [Show config], suddenly the "What to do with subtitles:" drop-down widget [Load and save] has all 3 options. Now if I press [Save] several times!, the settings are successfully saved in the "vlsub_conf.xml" file.
[Search translations] just like setting other than English language does not work.
Where will the downloaded language, for example "fre.xml", be saved? Or the downloaded language content will be saved in the "vlsub_conf.xml" file?

Testing environment: Windows XP, VLC-2.0.x;
Necessary changes in VLSub to get it to work (known UTF-8 read/write problem, if there are special characters in a path):
508> vlc.config.userdatadir() >> "c:\\vlsub"
1151> vlc.config.homedir() >> "c:\\vlsub"
1218> vlc.config.cachedir() >> "c:\\vlsub"
1220> vlc.config.cachedir() >> "c:\\vlsub"

There could be also an easy way for manual installation of a different language rather then connecting to the Internet. What about a "vlsub_translations" folder right near the "vlsub_conf.xml"? Then the dialog-box could search for available languages in that folder and display them in the "Interface language:" drop-down widget. Then only [Search translations] could connect to the Internet to find new updates. Or something like that. - Jul 13 2013
eplased_time_to_file.lua

VLC Extensions by valuex 2 comments

This feature is suitable for hotkeys interface script that can be loaded/activated automatically:
http://forum.videolan.org/viewtopic.php?f=29&t=111880 - Jun 28 2013
Time v3.2

VLC Extensions by mederi 202 comments

Compiled (.luac) or non-compiled (.lua) Lua scripts work. - May 25 2013
Time v3.2

VLC Extensions by mederi 202 comments

Autostart of VLC extensions is not implemented yet. - May 24 2013
VLSub

VLC Extensions by exebetche 818 comments

Thank you for your hard work on this extension. You are unstoppable now :-)
Language autodetection does not work on my Windows XP. The regkey value does not exist there. The solution with black cmd window blink is not nice.
Why not use os.setlocale("", "collate") on Windows? If returned string is for example "French_France.1252", then search for substring "French" in languages table. - May 16 2013
Time v3.2

VLC Extensions by mederi 202 comments

Hi! It is not possible to do it through the Record button. You should stream a transcoded input with Marquee subpicture filter into a file. Please search VLC wiki and forums for more information about Marquee sub filter. - May 03 2013
Subtitles finder

VLC Extensions by ale5000 42 comments

Right! It is a mess; obsolete version here, updated versions there and there.
http://addons.videolan.org is the right place for VLC Extensions.
ale5000 seems to be inactive. thepanz has no access here to upload his updates. - Apr 07 2013
VLSub

VLC Extensions by exebetche 818 comments

To preview chosen and downloaded subtitles in a dialog box. As there is a problem with handling of paths with non-English characters, it would be easy to select and copy content of subtitles and manually save in a local file using some text editor like Notepad in Windows. - Apr 01 2013
VLSub

VLC Extensions by exebetche 818 comments

Quote:H:/Séries/The Walking Dead/Season 3/The.Walking.Dead.S03E09.720p.HDTV.x264-EVOLVE.mkv: No such file or directory
The problem is "é" character. So far it is not possible to handle properly paths with non-English characters. UTF-8 encoded string of the path is incompatible with code page of OS.
Is "H:/" a writable location like HDD or USB? - Apr 01 2013
VLSub

VLC Extensions by exebetche 818 comments

Quote:function progressBarContent(pct)
local content = "<span style='background-color:green;color:#181'>"
local accomplished = math.ceil(progressBarSize*pct/100)

local left = progressBarSize - accomplished
content = content .. string.rep ("-", accomplished)
content = content .. "</span>"
content = content .. string.rep ("-", left)
return content
end
And then also add something like "Done!" at the end of it if the searching is over. - Mar 20 2013
VLSub

VLC Extensions by exebetche 818 comments

Just edit the script in some text editor. Locate "-- Global variables" section at the beginning of the script and set default_language = "all" instead of default_language = "eng". - Mar 20 2013
Time v3.2

VLC Extensions by mederi 202 comments

VLC is time-based player. Every change in position iniciates some internal decoding procedures causing various events. The extension just reads actual available value of elapsed time several times per second, so VLC is not automatically sending any change of time value to extension. If the played media is of constant bitrate, then it si possible to convert time to frames (seconds * fps = frames). Then there is also some rounding of a result (math.floor()). If it is not accurate enough, then I am sorry but I cannot do much about it. - Mar 12 2013
Time v3.2

VLC Extensions by mederi 202 comments

The time is actual playback time returned by VLC. If you pause playing video, then you will see stabile actual time position including milliseconds. Even if it is paused, the value is still being refreshed on the screen. For better stability I programmed the sctipt to perform update of time on the screen approximately 2 times per second. You can try to disable it completely for frequent update of time:Quote:function input_events_handler(var, old, new, data)
-- tt=os.clock()
-- if tt>=(t+.5) then -- OSD update approximately 2 times per second instead of 4-5 times
-- t=tt

...

-- end
end
- Mar 11 2013
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

I have just found this opinion/decision of developers:
http://mailman.videolan.org/pipermail/vlc-devel/2012-March/087604.html
http://mailman.videolan.org/pipermail/vlc-devel/2012-April/087652.html
You can also read previous messages that lead to these ones there.

I understand this as a GAME OVER! Extensions are evil...

If you still need something from me, then we should continue our discussion on VLC forum through private messages. - Feb 03 2013
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

There is no error in the messages you provided.
All is solved in the VLC forum: http://forum.videolan.org/viewtopic.php?f=29&t=97791&start=20#p365954
It really should work if you set a proper Linux path to your subtitle file in "subtitles_path" Global variable at the beginning of the script. Somethig like:Quote:subtitles_path = "/proper Linux path to your SRT file.srt"Can you see activated Subtitler (lite) dialog box on the screen at least? Then if you load some film in VLC player, the extension should load and parse SRT file and you will see it in the dialog box.
Or you can try automatic detection of subtitles. Then:Quote:...
subtitles_path = nil
...
media_uri = "/"..string.gsub(media_uri, "^.-///(.*)%..-$","%1")
...
I have planned later to publish a new version of the extension with the fixed bug for Linux and some new features (controls, timing (delay +/-, fps), ...), but currently I have just lost motivation because VLC2.1 does not support callbacks in Lua.
If you can C++ programming, you could help developers to fix this Lua issue. - Jan 31 2013
Subtitler lite mod v1.3

VLC Extensions by mederi 64 comments

http://forum.videolan.org/viewtopic.php?f=29&t=98644#p330318
is a good start where I gathered available information. Then here is the manual for you:
1.) Global VLC Lua README.txt: http://www.videolan.org/developers/vlc/share/lua/README.txt
2.) Lua 5.1 Reference Manual: http://www.lua.org/manual/5.1/
3.) Lua tutorials: http://lua-users.org/wiki/TutorialDirectory
4.) non-compiled VLC Lua scripts (like in VLC1): http://www.videolan.org/developers/vlc/share/lua/
5.) http://addons.videolan.org/
6.) VideoLAN Forum - Scripting VLC in Lua: http://forum.videolan.org/viewforum.php?f=29 - Jan 28 2013
Jump to time Previous frame v3

VLC Extensions by mederi 56 comments

I tested the extension on a short sample of TS{M2V, M1A} and MKV{AVC1, AAC}. The extension does not work well with these formats if you would like to perform split-second jumps, but it still can be used for longer backward/forward jumps. Tiny jumps work well in AVI{XVID, MP3} format. - Jan 11 2013
Time v3.2

VLC Extensions by mederi 202 comments

Please read carefully my posts above here to add some extra lines of code in the script. Then [E1] tag will be elapsed time in seconds. To edit the script you can use simple text editor like Notepad in Windows, but I recommend you to use Notepad++ that you can find on Internet. - Jan 07 2013
Time v3.2

VLC Extensions by mederi 202 comments

Please, press HELP button and read red and yellow parts.
Then just write some new time pattern "[E]/[R]/[D]" or just edit the predefined one. You can also edit the extension script to add some new predefined pattern in the drop-down list and/or to set your favourite pattern as the default one.
To change the look of time, change subtitle settings in VLC preferences.
This extension shows time in a played video. Some future version of this extension can show time also for music files in the dialog box as a video is not available. - Dec 31 2012
Sampler PG

VLC Extensions by mederi 34 comments

O.K. Inside the activate() function to seed a pseudo-random generator when starting the extension. - Nov 12 2012
Sampler PG

VLC Extensions by mederi 34 comments

Thanks for your positive feedback.
And here is a patch for proper randomization at least. Please locate "function activate()" in the code and insert a following new line right after it. Quote:math.randomseed(os.time())
- Nov 08 2012
TrayVLC

VLC Other by noam 1 comment

:o) - Sep 24 2012
Time v3.2

VLC Extensions by mederi 202 comments

http://forum.videolan.org/viewtopic.php?f=29&t=103803
Meanwhile here is a patch for extended [E] tag for manual input of constant fps information to convert time to frames, e.g. [E23.976]. Tip: [E1] means time in seconds.
There is also a new tag [N] - new/next line.
- insert following line before line 115>local elapsed_time = string.format(... Quote:local et = elapsed_time- insert following lines right before line 125>return osd_output Quote:local osd_output = string.gsub(osd_output, "%[N%]", "\n")
local fps=tonumber(string.match(osd_output,"%[E(.-)%]"))
if fps~=nil then osd_output = string.gsub(osd_output, "%[E.-%]", math.floor(et * fps)) end - Sep 03 2012
Time v3.2

VLC Extensions by mederi 202 comments

Thank you for your ideas. I would like to publish your instructions how to alter the script to see elapsed time with miliseconds:
Quote:- remove the math.floor() from the elapsedSecond definition (line 91)
- change the elapsed_time string format to "%02d:%02d:%06.3f" (line 115) - Aug 23 2012
Time v3.2

VLC Extensions by mederi 202 comments

[PLD] tag added by Ashada:
http://forum.videolan.org/viewtopic.php?f=29&t=97639&start=20#p341783
Playlist handling often cause crash of VLC for example if you add fresh files into playlist while the extension is active. Total playlist duration would also need total elapsed time. - Jun 08 2012