-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    Linux42.org    OpenSkillz.com   
 
Home
Apps
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


-
- Content .- Fans  .- Knowledge Base (1) . 

Subtitler (lite)

  

VLC Extension

Score 53%
Subtitler (lite)
zoom


Subtitler (lite)
zoom


Forum:  Link
Downloads:  44528
Submitted:  Jul 13 2012
Updated:  Nov 2 2014

Description:

"Subtitler (lite) mod.lua" - A semiautomatic workaround for VLC-2.1+ with [Refresh] button in the dialog box that should be pressed periodically during playback. Just use it with some button presser / key sender (see USAGE below).
"Subtitler (lite).lua" - The extension works only in VLC-2.0.x. The automatic solution should not be forgotten. VLC archive: http://download.videolan.org/vlc/

Subtitler (lite) is VLC extension that displays subtitles on the screen in a playing video and/or in a dialog box. Now you can watch your film with 2 different subtitles. Subtitler (lite) mod now can SKIP unwanted scenes (intro, credits, commercials, unimportant scenes, ...) or MUTE selected scenes.

DOWNLOAD:
- click the download button below
- save the .zip file
INSTALLATION:
- extract (unzip) the .lua file and put it in the VLC subdir /lua/extensions (create "extensions" directory if it does not exist there), by default:
* Windows (all users): %ProgramFiles%\VideoLAN\VLC\lua\extensions\
* Windows (current user): %APPDATA%\VLC\lua\extensions\
* Linux (all users): /usr/lib/vlc/lua/extensions/
* Linux (current user): ~/.local/share/vlc/lua/extensions/
* Mac OS X (all users): /Applications/VLC.app/Contents/MacOS/share/lua/extensions/
* Mac OS X (current user): /Users/%your_name%/Library/Application Support/org.videolan.vlc/lua/extensions/
Restart the VLC.
USAGE:
Then you simply start the extension by going to the "View" menu or "Vlc > Extensions" on Mac OS X and selecting it there.
The extension will try to load SRT subtitle file of the same name and location as a playing media ("d:\films\film.avi" --> "d:\films\film.srt").
Subtitler (lite) mod: Then you need to keep pressing the [Refresh] button in the dialog box. You rather use some button presser / key sender. Following ones are included in the package:
- "keypresser.vbs", a simple VBScript for Windows users;
- "buttonpresser.applescript", a simple AppleScript for Mac OS X users
http://addons.videolan.org/content/show.php?content=152364&forumpage=1#c473169
- Linux, xdotool - A shell script:
http://wikiwiki.jp/disklessfun/?misc1#e976f4fa
"sleep 0.1" or "usleep 100000" instead of "sleep 1"?

AutoHotkey script for Windows:
https://forum.videolan.org/viewtopic.php?f=29&t=97791&start=40#p407054

To set up the Subtitler (lite), please edit global variables at the beginning of the script:
http://forum.videolan.org/viewtopic.php?f=29&t=97791#p346506
subtitles_uri = nil
The default value nil means, that the variable subtitles_uri is not defined and the script automatically looks for a SubRip (SRT) subtitle file of the same name and location as a playing media ("d:\films\film.avi" --> "d:\films\film.srt"). You can customize the "srt" extension in filename_extension variable (see below).
You can set your custom uri ("file:///D:/films/subtitles.srt"). A web browser can help you to encode a path in uri format (Firefox: open a file (drag&drop) in the browser, right-click, show info).
output_dialogbox = false
Set the value true or false. If it is true, then it displays subtitles in the dialog window.
output_osd = true
It displays subtitles in a playing video. If a video is not available (audio files), then it automatically displays subtitles (lyrics) in the dialog box.
osd_position = "top"
You can place subtitles in a playing video on "top", "top-left", "top-right", "left", "center", "right", "bottom", "bottom-left", "bottom-right".
charset = "Windows-1250"
Set an appropriate code page of your subtitle files (Western European subtitles "Windows-1252"). UTF-8 charset is automatically detected, but you can force it if you want. nil value also means "UTF-8" charset.
filename_extension = "srt"
You can set your custom extension for your subtitles dedicated to Subtitler. You can set a language code ("eng.srt") or you can set some other extension ("srt-vlc") as a subtitle file now can contain commands for Subtitler (lite) mod.
execute_commands = true
The default value executes commands [SKIP], [MUTE] found at the beginning of a subtitle text. You can use any subtitle editor with SRT support (Subtitle Edit http://www.nikse.dk/subtitleedit/ , Aegisub http://www.aegisub.org/ ) or just any ordinary text editor (Notepad) to create/edit SRT subtitles/scripts/cutlists for Subtitler (lite) mod.

Forum location: http://forum.videolan.org/viewtopic.php?f=29&t=97791

Donation:
If you find this extension interesting, your donation is welcome at http://www.videolan.org/ to encourage developers to do some maintenance and improvements of Lua Extensions support in VLC.
https://trac.videolan.org/vlc/ticket/8097
https://trac.videolan.org/vlc/ticket/3883




Changelog:

Subtitler (lite) mod 1.2 (2.11.2014) 33650
- support for [SKIP] and [MUTE] commands at the beginning of subtitle text
- autodetection of UTF-8 charset of loaded subtitles
- different method of loading subtitles (URI) now should not have any problem to load subtitle files with paths containing also other than Basic Latin (non-ASCII) characters

Subtitler (lite) mod 1.1 (29.3.2014)
- a workaround for VLC-2.1+ with [Refresh] button in the dialog box that should be pressed periodically during playback. Some software button presser or key sender is recommended. A simple VBS script for Windows users is included in the package.

Subtitler (lite) 1.0 (13.7.2012)
- initial release based on vlc.var.add_callback() function removed since VLC-2.1




LicenseGPL
(Subtitler (lite) mod.zip)
Send to a friend
Subscribe
Other  Content  from mederi
Report inappropriate content



goto page: prev   1  2  3 

-

 If the extension crashes for you

 
 by surferau on: Sep 24 2014
 
Score 50%

locate the string in "Subtitler (lite) mod.lua" file
data = file:read(500000)

and add after

data = string.gsub(data, "\r", "")


Reply to this

-

 Re: If the extension crashes for you

 
 by mederi on: Sep 24 2014
 
Score 50%

What OS?


Reply to this

-

 Re: Re: If the extension crashes for you

 
 by surferau on: Sep 24 2014
 
Score 50%

Pretty much any since the regular expression which used to parse the srt file does not take in mind that in windows line endings are \r\n not just \n . That means any srt file made under windows will not work.


Reply to this

-

 Re: Re: Re: If the extension crashes for you

 
 by mederi on: Sep 25 2014
 
Score 50%

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.


Reply to this

-

 Re: Re: Re: Re: If the extension crashes for you

 
 by surferau on: Sep 26 2014
 
Score 50%

Did not work on MAC OS


Reply to this

-

 Re: Re: Re: Re: Re: If the extension crashes for y

 
 by mederi on: Sep 26 2014
 
Score 50%

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.


Reply to this

-

 Re: Re: Re: Re: Re: If the extension crashes for y

 
 by mederi on: Nov 3 2014
 
Score 50%

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


Reply to this

-

 Linux: A shell script for Subtitler (lite) mod

 
 by mederi on: Aug 16 2015
 
Score 50%

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.


Reply to this

-

 Re: Linux: A shell script for Subtitler (lite) mod

 
 by mederi on: Aug 17 2015
 
Score 50%

Quote:
sleep 1
This 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.


Reply to this

goto page: prev   1  2  3 

Add commentBack




-



 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Content RSS   
Events RSS   

Participate
Groups
Forum
Add Content
Public API
About openDesktop.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2007-2016 openDesktop.org Team  
All rights reserved. openDesktop.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
openDesktop is a trademark of the openDesktop.org Team