VLSub

VLC Extensions

Source (link to git-repo or to original if based on someone elses unmodified work): https://github.com/exebetche/vlsub

45
Score 85.5%
Description:

VLSub is not working with Vlc 2.1.x, please update to 2.2.

Search and download subtitles from opensubtitles.org using the hash of the video currently playing or its title.
INSTALLATION:
- download the file from the "Files" tab above
- create a directory "extensions" at this location and put the file "vlsub.lua" inside:
* Windows (all users): %ProgramFiles%VideoLANVLCluaextensions
* Windows (current user): %APPDATA%vlcluaextensions
* 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/

...or use the installer below if you're on Windows 7 (32 or 64)

To start the extension click on View > VLSub or Vlc > Extensions > VLSub on Mac OS.

Limitation

* Impossible to automatically save the subtitles on Windows if the path to your video contain non ASCII (non-english) characters and the "search by hash" method will be slower.
* The "search by hash" method will fail on Windows if for video files >2Go (if VLC is compiled with lua 5.1 anyway)

/! Troubleshooting /!

If you have other issue you can ask for a solution here or on github but please get the full vlc debug log and add it as a pastebin to your post. The procedure is explained here:
https://github.com/exebetche/vlsub/wiki/Troubleshooting
Last changelog:

Support http chunked transfer encoding 2 years ago

Fix broken extension after opensubtitles uses a new CDN

wblock

4 years ago

Hi,

Despite having the config on "load and save", and not "manual download", the extension won't download and load the subtitles automatically. Instead, when clicking "download selection" I get a "download link", for a manual download.

What can I do to fix that?

Thanks for your help!


VLC version: 2.0.8
VLsub version: 0.9.13
OS: Windows 8.1
Debugging log: http://pastebin.com/geripdjE

Report

C

exebetche

4 years ago

I think I fixed it, could you download the script again and confirm it works.

Report

ehmnga06

4 years ago

why does the subtitle doesn't work in all movies? after i watched a movie, the next movie that i want to watch doesn't have any subtitles. how do i turn on the subtitle?

Report

C

exebetche

4 years ago

The Vlc extension system is instable and sometimes fail when you call a function when the movie change. So the best I can advice is to close the extension when you get your subtitles, and open the extension again to start a new search.

Report

Kaham

4 years ago

Hi !

This extensions seems really nice, however, i did not manage to make it worked.
Everything goes OK until i reach the "download link" displayed in green.
Search goes OK and when i hit "download selection", nothing happens except display the link which is not clickable (it is in blue but i can't do anything with it). And no subtitle file is being downloaded nor displaying on the video.
The link "VLSub working directory" in Config panel is not working better (if this is a link).

Besides, i have many "bugs" that can be related such as :
- once the extensions closes, i can't launch it a second time, but i can a third time.
- The buttons OK or Save or Close in different windows never close the windows but open the main one instead, above.

my config :
Mac OS 10.5.8 (can't update anymore) in french
VLC 2.0.8 (also tried 2.0.9) in french
VLSub 0.9.13 (anyway to get on older version ?) in english
searching for subs in english.

Last question : in config panel, what "user" and "password" are for ? filling them with my OS user is giving me more errors during search of subtitles. I leave them blank for now.

Thanks for your time

Report

Kaham

4 years ago

Hey, i come with some news.

I guess you don't want any older version to be available (en tout cas c'est chaud à trouver !), but i found one in the VLC 2.2. Do you have an agreement with Video Lan ? If so, this is great news !

Anyway, VLC 2.2-pre3 includes VLSub 0.9.10 which fixes every problems i have been reporting before !

That's a solution for me and maybe or clue for you...

A plus !

Report

C

exebetche

4 years ago

There's is no older version, the link here point to the latest. I just try to fix the bugs when people report them and put the fix into the script right away. I have no agreement with Videolan, they just asked me if they could include the script in Vlc and I said ok. I'm very surprised it works for you with the 0.9.10 version because it didn't work on Linux en Windows at the time. But again I don't have a Mac environment available to debug on this OS, so I can't investigate more on this bug for now.

Report

mederi

4 years ago

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.

Report

C

exebetche

4 years ago

That's fixed, thank you.

Report

mederi

4 years ago

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.

Report

C

exebetche

4 years ago

I tried something else, can you confirm it works this time? Thank you.

Report

mederi

4 years ago

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?

Report

mederi

4 years ago

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

Report

mederi

4 years ago

Quote:vlc.playlist.status()=="stopped"

Report

karpa

4 years ago

Hey,
thanks for the good work.

Would it be possible to add language code in the filename of downloaded subtitles in front of extension.

For example:
instead of getting
"The.Walking.Dead.S05E02.720p.WEB-DL.2CH.x265.HEVC-PSA.srt"
I would get
"The.Walking.Dead.S05E02.720p.WEB-DL.2CH.x265.HEVC-PSA.en.srt" for English subtitles.

VLC is still able to correctly associate subtitles with played file and I get different subtitles files for different languages (not overwriting each other).

Thanks

Report

C

exebetche

4 years ago

Yes it is, you have this option in the configuration panel.

Report

karpa

4 years ago

Oh, I didn't notice, thanks

Report

techster

4 years ago

Greetings all,

I just wanted to compliment the author on this awesome (and under-appreciated by vlc devs) extension. I've been using this extension for years and signed up for vlc-addons mainly to give it another thumbs up and ever hopeful that vlc devs will see how much the community loves and needs this extension.

I've even started learning to code a bit in trying to understand those marvellous 2000 something lines of it. I primarily use it on os x and haven't had much luck with it since vlc 2.0.8. I'll try to upload a pic of some of the versions I've tried so far, will probably make you grinn execbetche ;) (--elsif sigh most likely;).

I'm sure I haven't done 'clean' trials many time (working directory and such). I'll have a look through the troubleshooting section so I can upload some logs you can work with now that vlc has an rc1 of 2.2.

In any event this message is primarily meant to thank and compliment you for your efforts so far and judging by your rating here I think I represent the majority of users.

Kind regards,

Tech

Report

C

exebetche

4 years ago

Wow, that's the nicer comment I've ever had here, thanks a lot man :)
I'm not sure to understand what you want to do with the code. Do you want to improve the extension, writing a new one or just make it work?
Anyway my code is almost not commented so it might not be the best place to learn coding. But feel free to explain to me what you want to achieve and ask me anything, I'm here to help.

Report

hetzbh

4 years ago

the VLSUB window shows up, calculates the hash, show names, but when clicking "Download selection" - the script fails.

Debug output is at: http://pastebin.com/ZSDp6Zwe

Also, if I might add 2 small suggestions:

1. Add an option to use a specific directory that the subs will be downloaded to (helps when using read only volumes)
2. An option to double click specific srt to download would be nice ;)

Overall, one of the BEST extensions that I've seen for VLC. Keep up the good work!

Report

C

exebetche

4 years ago

Is your drive Z: read only? If so no surprise it fail savings the subs.

your suggestions:
1) Ok, I'll try to care care of it this week-end. Someone else ask me this a lot time ago and I never did it.
2) Not possible, see my response here: https://github.com/exebetche/vlsub/issues/79

Report

Neobond

5 years ago

I updated to the newer build (only 64-bit version is available right now) and VLSub doesn't work well with it. Just a heads up.

Config doesn't work, and research does but downloading the subtitle always fails with a file access error.

Report

C

exebetche

4 years ago

It seems like a problem access the directory. What do you have in Config > working directory? You can edit the path here, it should contain english characters only.

Report

cipricus

5 years ago

It is possible.
After the video has started in VLC, start VLSub, put the proper name of the film, and download (see that 'Load and save' is selected in Configs).

An error message may appear saying that the subtitles cannot be saved. Then: 'Click here to open the file'. That will download the subtitles (maybe archived).

This may vary between VLSub versions. A VLC error window may open instead of the error message in the VLSub window. Then, click 'Show config', then 'VLsub working directory' which opens a folder where the subtitle file should be.

http://superuser.com/a/573446/162573
http://superuser.com/a/819188/162573

Report

Niwol

5 years ago

Hey there, great extension!

I just updated to http://download.videolan.org/testing/vlc-2.2.0-pre3/win32/ on windows 7. (removed old version completely) but now clicking the download button gives:
File reading failed:
VLC could not open the file "Series\The.Blacklist.S01.720p.HDTV.X264-BTN\The.Blacklist.S01E06.HDTV.x264-LOL.HI.srt.gz" (No such file or directory).

There is no drive letter there, could that be the problem?

http://pastebin.com/H835Ljt3

Can you help me out? Kind regards, enthusiastic Dutch user.

Report

Support http chunked transfer encoding 2 years ago

Fix broken extension after opensubtitles uses a new CDN

5 years ago

2014-09-12
Fix error with http 301 redirection

2014-08-19
Fix subtitles loading on Vlc 2.2

2014-05-08
Fix a bug due to opensubtitles header modifications

12345678910
5911
product-maker japaalnev Sep 28 2019 10 the best
10 the best
product-maker drsu Feb 12 2019 9 excellent
Hgu
product-maker ernhaka Oct 21 2018 3 bad
i dont like the opensubtitles subs: - they insert advertising inside the movie! - they mention their name at the end of the subtitles, BEFORE the end of the movie, come on, could they wait the credits at least ? - many times the subs found are not accurate to the file, not synced, or HI Now i get subs from subscene, they're more reliable and less annoying. Too bad because VLSub was a great idea.
product-maker mohsen2694 Oct 13 2018 9 excellent
+
product-maker eyalkt Aug 10 2018 9 excellent
+ Works Great!
product-maker omda Jul 01 2018 9 excellent
goooooooood
product-maker rvs75 Feb 27 2018 9 excellent
product-maker D64134n0 Oct 20 2017 9 excellent
product-maker ahmedsaber333 Oct 13 2017 9 excellent
product-maker vinnusaurus Oct 12 2017 9 excellent
product-maker pardeep84 Oct 12 2017 9 excellent
xx
product-maker sapeletv Oct 02 2017 9 excellent
men this is wonderful...cant believe i didnt have this all this while. thanks much
product-maker king021 Oct 01 2017 9 excellent
product-maker Medo@22 Sep 05 2017 9 excellent
product-maker totophe Jul 21 2017 9 excellent
Does the job :-) Thanks for the work!
product-maker alialkhawaja Jul 20 2017 3 bad
zxczcx
product-maker Abhishek May 06 2017 9 excellent
product-maker hamedsoltan Apr 06 2017 9 excellent
product-maker franksalexa Mar 08 2017 9 excellent
product-maker sampo2013 Feb 15 2017 9 excellent
product-maker rbibouh Feb 14 2017 9 excellent
product-maker csola48 Jan 29 2017 9 excellent
product-maker m0hdasif Jan 19 2017 9 excellent
product-maker lazarus Jan 18 2017 9 excellent
product-maker elmenady Jan 17 2017 9 excellent
product-maker matheusricarte Jan 14 2017 9 excellent
product-maker john50cent Jan 10 2017 9 excellent
product-maker stefansundin Dec 31 2016 9 excellent
product-maker 6l9fN967 Dec 24 2016 9 excellent
product-maker j1402 Dec 13 2016 9 excellent
product-maker Rafracra Dec 06 2016 9 excellent
product-maker Yuvesh Dec 04 2016 9 excellent
product-maker kaotik808 Nov 29 2016 9 excellent
product-maker luiscarmona Nov 27 2016 9 excellent
product-maker akhterpalash Nov 25 2016 9 excellent
product-maker AleksaD Nov 12 2016 9 excellent
product-maker ruineves1994 Nov 07 2016 9 excellent
product-maker tmmam Nov 03 2016 9 excellent
product-maker Eldo Oct 28 2016 9 excellent
product-maker vamsi22 Oct 15 2016 9 excellent
product-maker khatrisingh Oct 14 2016 9 excellent
product-maker nhad22 Oct 03 2016 9 excellent
product-maker lotfi333 Sep 23 2016 9 excellent
product-maker Frelle Dec 26 2015 9 excellent
product-maker Ragiowan Nov 09 2015 9 excellent
product-maker alextabs Oct 29 2015 9 excellent
product-maker j4eo Oct 27 2015 9 excellent
product-maker k0b32010 Oct 08 2015 3 bad
product-maker dkarnout Jul 05 2015 9 excellent
product-maker Danielbreezy May 23 2015 9 excellent
product-maker ameirefke Apr 11 2015 9 excellent
product-maker marvael Mar 02 2015 9 excellent
product-maker ilariadorsi Dec 01 2014 9 excellent
product-maker karpa Oct 22 2014 9 excellent
product-maker techster Oct 21 2014 9 excellent
product-maker Niwol Sep 30 2014 9 excellent
product-maker Schwarzkopf Sep 17 2014 9 excellent
product-maker dcos77 May 24 2014 9 excellent
product-maker jordibabot May 19 2014 9 excellent
product-maker havocmker May 13 2014 9 excellent
product-maker Tibus May 01 2014 9 excellent
product-maker robysottini Apr 29 2014 9 excellent
product-maker lean766 Mar 07 2014 9 excellent
product-maker DFPOWER46 Nov 18 2013 9 excellent
product-maker whoodini Nov 15 2013 9 excellent
product-maker unnicked Nov 03 2013 9 excellent
product-maker shandissanayake Oct 11 2013 9 excellent
product-maker Simekuk Sep 19 2013 9 excellent
product-maker voiturebleue Sep 19 2013 9 excellent
product-maker PrakashCh Sep 08 2013 9 excellent
product-maker dux2 Aug 30 2013 9 excellent
product-maker BTKL Aug 30 2013 9 excellent
product-maker thorin Aug 18 2013 9 excellent
product-maker alex9r Aug 17 2013 9 excellent
product-maker Meldi Aug 16 2013 9 excellent
product-maker mastodon Jul 31 2013 9 excellent
product-maker nunomazer Jun 12 2013 9 excellent
product-maker Azpidatziak May 24 2013 9 excellent
product-maker kapcom01 May 19 2013 9 excellent
product-maker Deathmachine May 18 2013 9 excellent
product-maker grzegorz451 Apr 30 2013 9 excellent
product-maker boldyzno Apr 30 2013 9 excellent
product-maker Babalui22 Apr 29 2013 3 bad
product-maker hackerz222 Apr 18 2013 9 excellent
product-maker cipricus Mar 27 2013 9 excellent
product-maker zequi Feb 12 2013 9 excellent
product-maker hdiffly Oct 20 2012 9 excellent
product-maker klacs Oct 09 2012 9 excellent
product-maker tariquenor Sep 12 2012 3 bad
product-maker Chematronix Jul 27 2012 9 excellent
product-maker Navid Jul 20 2012 9 excellent
product-maker Aglo Jul 02 2012 9 excellent
product-maker Cardellos Jun 22 2012 9 excellent
product-maker GuixLe Apr 28 2012 9 excellent
product-maker FracExebetche Apr 23 2012 9 excellent
product-maker BlueK Mar 11 2012 9 excellent
product-maker yapaca Feb 11 2012 9 excellent
product-maker Base: 4 x 5.0 Ratings
m2dbi4u
Jun 28 2019
forex07
Apr 21 2019
mvolak1
Feb 13 2019
drsu
Feb 12 2019
fares555
Dec 06 2018
mohsen2694
Oct 13 2018
sieg
Aug 11 2018
arnoldwaswaiga
May 19 2018
hamabkhan
Mar 24 2018
khaled1384
Mar 17 2018
Slayerino
Feb 24 2018
Raaab888
Jan 24 2016
j4eo
Oct 27 2015
9207771739
May 06 2015
ilariadorsi
Dec 01 2014
techster
Oct 21 2014
gogo57540
Sep 08 2014
surkant07
May 27 2014
dcos77
May 19 2014
Navid
May 18 2014
sailor082
May 18 2014
Tibus
May 01 2014
kastaldi
Jan 05 2014
vily
Nov 23 2013
whoodini
Nov 15 2013
Harmen
Oct 23 2013
cerienjean
Sep 17 2013
dux2
Aug 30 2013
thorin
Aug 18 2013
akosama
Jul 21 2013
Azpidatziak
May 24 2013
cruelty
May 13 2013
boldyzno
Apr 30 2013
Stincjatclava
Apr 22 2013
cipricus
Mar 19 2013
zequi
Feb 12 2013
ferghingaro
Jan 05 2013
tonysilva
Nov 27 2012
allig8or
Nov 22 2012
Chematronix
Jul 27 2012
kapcom01
Jul 25 2012
Aglo
Jul 02 2012
Cardellos
Jun 26 2012
FracExebetche
Apr 23 2012
Tarlak
Feb 25 2012
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs ocs-url or ocs-store to install things
Pling
0 Affiliates
Details
license
version
0.10.0
updated Sep 05 2017
added Feb 07 2012
downloads 24h
185
page views 24h 954
System Tags addon