exebetche / vlsub Goto Github PK
View Code? Open in Web Editor NEWVLC extension to download subtitles from opensubtitles.org
VLC extension to download subtitles from opensubtitles.org
It doesn't work on my Mac. It find the subtitles but it doesn't download or displays it. More specifically:
My system configuration:
Mac Mini
OS X Yosemite 10.10
VLC Version 3.0.0-git Vetinari (Intel 64bit)
Hi,
I have just downloaded new version of the script and it won't work anymore for me. I am using VLC 2.0.8 in Windows 7 64.
The problem is that VLsub starts downloading but the progress bar stucks at the end forever. I checked the folder. There are 2 files, file.tar.gz and file.srt. Srt is empty. Tar.gz is corrupted.
The log output: http://pastebin.com/fqK5AHRi
I see the error, it says "not a valid zip archive".
I take advantange of this problem to congratulate you for this wonderful project! Many thanks!
Hello, I'm using VLC 2.0.8 (so as to avoid the bug #28), on Ubuntu GNOME Remix 12.10 x64.
The extension opens properly, but when I try to do a hash or a normal search, it hangs and then a pop-up appears saying "Extension not responding! Extension 'VLsub 0.9.10 ' does not respond. Do you want to kill it now?" with a progress bar stuck at 0%. Here's a screenshot :
If I wait 10-15 seconds, this window disappears and I get the results from the search. Same error message appears when I'm changing the settings. When I try to click "Close" to close the extension window, it doesn't work and I have to hit the cross in top-right corner. Then after the window"s already closed, the same "Extension not responding" window pops up, and hence I click "Yes" for killing it (even though no extension window is apparent anymore).
Tell me if you need more info. Nothing appears in VLC Message dialog (level 0), but it seems to be badly interacting with VLC itself, since opening VLC menus while the extension is hanging makes the whole program hangs.
Thanks a lot for your excellent extension, which provides a much needed feature in VLC.
VLsub extension does not start in VLC 2.1.0 (Rincewind) 64bit edition under Windows 7
Here is the log of the error, hope it helps
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\FakeName\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\FakeName\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///D:/Dowloads/Complete.Legal.Content.mp4
lua warning: Error while running script C:\Program Files\VideoLAN\VLC\lua\extensions\vlsub.lua, function activate(): ...\Program Files\VideoLAN\VLC\lua\extensions\vlsub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
I am using vlc 2.0.7 with vlsub from git on a Linux system and experience the following problem:
I open a playlist and start the first movie, open vlsub, download the subs for the movie, then skip to the next movie (without closing the vlsub window).
The vlsub window still contains the data from the first movie, cannot be closed or does not respond in any way, just like vlc does now.
To prevent this, I have to close the vlsub window before changing to the next movie from the playlist, open the window again and so on.
It would be nice if the window reinitialized itself after changing the video.
In my VLC, the extension won't work. The messages log at -vvv verbose level shows:
(complete log pasted for context information)
(Windows 8.1 x64)
main debug: VLC media player - 2.1.2 Rincewind
main debug: Copyright © 1996-2013 the VideoLAN team
main debug: revision 2.1.2-0-ga4c4876
main debug: configured with ../extras/package/win32/../../../configure '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-avcodec' '--enable-merge-ffmpeg' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--enable-dvdread' '--enable-shout' '--enable-goom' '--enable-caca' '--disable-sdl' '--enable-qt' '--enable-skins2' '--enable-sse' '--enable-mmx' '--enable-libcddb' '--enable-zvbi' '--disable-telx' '--enable-nls' '--disable-dirac' '--host=i686-w64-mingw32' 'host_alias=i686-w64-mingw32'
main debug: auto hiding mouse cursor
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\simlei\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\simlei\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///E:/Serien/Battlestar%20Galactica/S03E06%20-%20Torn%20%281%29.avi
lua warning: Error while running script C:\Program Files (x86)\VideoLAN\VLC\lua\extensions\vlsub.lua, function activate(): ...am Files (x86)\VideoLAN\VLC\lua\extensions\vlsub.lua:1185: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
File read failed:
VLC could not open the file "/media/Storage/Profile/loostro/file:///home/loostro/SomeMovie/SomeMovie.mpl" (No such file or directory).
Your input cannot be opened:
VLC program cannot open MRL 'file:///media/Storage/Profile/loostro/file%3A///home/loostro/SomeMovie/SomeMovie.mpl'. Details in error log.
Note: Actual error messages may be diffrent - I had to translate them from Polish.
I have a "Storage" drive mounted under /media/Storage
where I keep all my data, including the home directory (in /media/Storage/Profile/loostro
).
I have /home
symlinked to /media/Storage/Profile
. It seem's thats the cause of the problem.
VLC 2.1.2
VLsub 0.9.10
In the menu view it shows that the extension is loaded, but when I click on it it doesn't do anything. Only the first time something opened voor a microsecond and immedietly closed.
Thanks for the excellent work! Great piece of software.
This is request for enhancement to add support for batch mode: Point vlsub to a directory, for every file search by hash, if no matches found, search by name, either way download the first hit. Very useful if you have hundreds of episodes :)
Hi
For some weird reason, VLSub stopped working correctly since today.
I am using Crunchbang (Debian Based Linux Distro) and i am running a self built vlc 2.0.8 version of vlc.
I traced down the error through the console:
lua generic warning: Error while running script /home/gregkwaste/.local/share/vlc/lua/extensions/vlsub.lua, function (null)(): ...gregkwaste/.local/share/vlc/lua/extensions/vlsub.lua:1693: bad argument #1 to 'gmatch' (string expected, got nil)
This prevents the extension to successfully download and load the subtitle. I click Download Subtitle but the progress bar never moves on. The other modes work as they should.
I tried the latest version of the script posted in the master branch here. The result was the same.
I hope you can find a solution ^^
I could open the extension when I was not playing a movie (just started VLC). But when I open a movie from my home NAS, the dialog does not pop up. I noticed some relevant errors in the log file attached
Log at: http://pastebin.com/UaMSSdhN
===== Log dump
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: /Users/kim0/Library/Application Support/org.videolan.vlc/lua/extensions/userdata/vlsub
lua debug: [VLSub] Loading config file: /Users/kim0/Library/Application Support/org.videolan.vlc/lua/extensions/userdata/vlsub/vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///Volumes/Harddisk/movie/Monsters.University.2013.720p.BluRay.x264.YIFY.mp4
lua warning: Error while running script /Applications/VLC.app/Contents/MacOS/share/lua/extensions/VLSub.luac, function activate(): ...ckage/macosx/../../../share/lua/extensions/VLSub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
macosx debug: activating or triggering extension 'VLsub 0.9.10', id 0
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: /Users/kim0/Library/Application Support/org.videolan.vlc/lua/extensions/userdata/vlsub
lua debug: [VLSub] Loading config file: /Users/kim0/Library/Application Support/org.videolan.vlc/lua/extensions/userdata/vlsub/vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///Volumes/Harddisk/movie/Monsters.University.2013.720p.BluRay.x264.YIFY.mp4
lua warning: Error while running script /Applications/VLC.app/Contents/MacOS/share/lua/extensions/VLSub.luac, function activate(): ...ckage/macosx/../../../share/lua/extensions/VLSub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
macosx debug: Terminating
-- logger module stopped --
Steps to reproduce:
Is it possible to check if the cache dir exists and if not create a new one before the download is started ?
Hi, Im using Windows 7 Pro x86, I've downloaded VLC 2.0.8 and after installation there is no extensions submenu, only the name VLSub 0.9.10.When I try to navigate to extensions, nothing appears. Only the name VLSUB 0.9.10 is there.The name of extension appears when a movie is opened, but unfortunately there is no library in user's folder.
Thanks for your help
Hi, How about add subscene with opensubtitles.
When updated to the new VLC version 2.1.1, VLsub stopped working.
When click on VLC->Extensions->VLsub 0.9.10 in menu bar, nothing happens.
Hello,
This is not really an issue but really a request. I have a subtitle directory in each of directories containing videos. So, if I was to download subtitles for a running video, I’d like it to go into the subtitle directory. Is there a way to have such a behaviour in your plugin ?
Hello, im doing a modification because i want to select the language code for the file in iso-639-1 or iso-639-3. For example i need to use the extension .es.srt instead of .spa.srt.
That is done and working, my problem is when I reopen the configuration, the displayed option is always the first.
Anyone can help me? I'm sure that it is a stupid thing what is missing me.
I am using the latest version of vlsub and Linux Fedora OS. The log file reports the following:
lua debug: Opening Lua Extension module
lua debug: Trying Lua scripts in /home/keramidas/.local/share/vlc/lua/extensions
lua debug: Trying Lua playlist script /home/keramidas/.local/share/vlc/lua/extensions/vlsub.lua
lua debug: Scanning Lua script /home/keramidas/.local/share/vlc/lua/extensions/vlsub.lua
lua warning: Error loading script /home/keramidas/.local/share/vlc/lua/extensions/vlsub.lua: /home/keramidas/.local/share/vlc/lua/extensions/vlsub.lua:1881: invalid escape sequence near ')'
[0x7f7a840bc648] lua generic debug: Creating dialog 'VLSub 0.9: Configuration'
[0x7f7a840bc648] lua generic warning: Error while running script /usr/lib/vlc/lua/extensions/vlsub.lua, function (null)(): /usr/lib/vlc/lua/extensions/vlsub.lua:407: dialog:add_text_input usage: (text = nil)
[0x25dab28] qt4 interface debug: Creating a new dialog: 'VLSub 0.9: Configuration'
This prevents the dialog to show the input_text for username, doesn't show at all password label and input_text, and blanks all the selectors.
How to reproduce :
-install vlsub in its place, in /usr/lib/vlc/lua/extensions/
-remove ~/.local/share/vlc (as if you had never launched vlc, which was my case)
-start vlc
-launch vlsub
-go to configuration of vlsub
-try to save -> error : can't fount (typo here, by the way) a suitable path to save config, please set it manually
-quit vlc
-start vlc, vlsub, configuration, vlsub
-save -> no error (note : I did not change any configuration option since the start of debug), default elements are filled, including VLSub working directory
-quit vlc
-start vlc, vlsub, configuration => windows not showing at the right place, nothing filled EXCEPT VLSub working directory, error in the terminal as indicated at the top of the issue
In ~/.local/share/vlc/lua/extensions/userdata/vlsub/vlsub_conf.xml, os_username and os_password do not contain anything
As one can expect, filling os_username in ~/.local/share/vls/lua/extensions/userdata/vlsub/ move the error to line 409, filling os_password and os_username resolves the bug.
as a side note, wouldn't it be possible to fill with '*' the input box of the password ?
Best regards,
[0x9d24ef0] qt4 interface debug: activating or triggering extension 'VLsub 0.9.10'
[0xacbb26e0] lua generic debug: Activating extension 'VLsub 0.9.10'
[0xacbb26e0] lua generic debug: [VLsub] Welcome
[0xacbb26e0] lua generic debug: [VLSub] Working directory: /home/podarokua/.local/share/vlc/lua/extensions/userdata/vlsub
[0xacbb26e0] lua generic debug: [VLSub] Loading config file: /home/podarokua/.local/share/vlc/lua/extensions/userdata/vlsub/vlsub_conf.xml
[0xacbb26e0] lua generic debug: [VLSub] Video URI: file:///media/podarokua/68628217-d977-42d9-b189-351a87126f6f/home/podarok/%D0%92%D1%96%D0%B4%D0%B5%D0%BE/kotenok/Fortysomething/Fortysomething%20ep%201_rus.eng.avi
[0xacbb26e0] lua generic warning: Error while running script /usr/lib/vlc/lua/extensions/VLSub.luac, function activate(): lua/extensions/VLSub.lua:1184: attempt to index field 'net' (a nil value)
[0xacbb26e0] lua generic error: Could not activate extension!
[0xacbb26e0] lua generic debug: Deactivating 'VLsub 0.9.10'
[0xacbb26e0] lua generic debug: [VLsub] Bye bye!
[0xacbb26e0] lua generic debug: Extension thread end: 'VLsub 0.9.10'
Using VLC 2.2.0, I get the following error when I stream a video (House of Cards, s01e01) from Popcorn Time:
qt4 debug: activating or triggering extension 'VLsub 0.9.13'
lua debug: Activating extension 'VLsub 0.9.13'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\jan\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\jan\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: http://127.0.0.1:53620/
lua warning: Error while running script c:\Program Files (x86)\VideoLAN\VLC\lua\extensions\vlsub.lua, function activate(): ...am Files (x86)\VideoLAN\VLC\lua\extensions\vlsub.lua:1416: bad argument #1 to 'match' (string expected, got nil)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.13'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.13'
Could there be an update that allows you to search for subtitles based on name/season/episode if the video comes from Popcorn Time/any network stream?
e.g.
type( parse_xml("<os_password></os_password>").os_password ) == 'table'
So interface_config() crashes in line 407 (if config has been saved having username and password emtpy)
input_table['os_username'] = dlg:add_text_input(openSub.option.os_username or "", 2, 7, 2, 1)
Hi,
is there no real title to use in streams from peerflix?
I tested vlc-2.2.0-pre3 and 2.0.8
Ju
[030062e8] lua generic debug: Activating extension 'VLsub 0.9.13'
[030062e8] lua generic debug: [VLsub] Welcome
[030062e8] lua generic debug: [VLSub] Working directory: D:\Users\judano\AppData
\Roaming\vlc\lua\extensions\userdata\vlsub
[030062e8] lua generic debug: [VLSub] Loading config file: D:\Users\judano\AppDa
ta\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
[030062e8] lua generic debug: [VLSub] Video URI: http://192.168.0.107:8888/
[030062e8] lua generic warning: Error while running script C:\Program Files (x86
)\VideoLAN\VLC\lua\extensions\vlsub.lua, function activate(): ...am Files (x86)
VideoLAN\VLC\lua\extensions\vlsub.lua:1416: bad argument #1 to 'match' (string e
xpected, got nil)
[030062e8] lua generic error: Could not activate extension!
[030062e8] lua generic debug: Deactivating 'VLsub 0.9.13'
[030062e8] lua generic debug: [VLsub] Bye bye!
[030062e8] lua generic debug: Extension thread end: 'VLsub 0.9.13'
full log with vlc2.0.8: http://pastebin.com/download.php?i=R74cDmdT
Hello, i don't know how to program in Lua but i'm studying the code because i want to avoid the automatic resize of the dialog.
When i look for i find some functions that restarts the size of the dialog, for example:
mainlist:clear()
mainlist:add_value(...
input_table["message"]:set_text(str)
That is a Lua behavior or it is by the VLC?
If it's a VLC behavior, where is that code to look?
It's posible to set a size by the user and resize automatically after each call of these functions to resize to the selected user size for dialog?
The extension open only when there's no video running. When a video is running, the extension don't open.
Tested on Windows 7 Ultimate, with VLC 2.1.3.
OpenSubtitle leech contents from addic7ed community and add ads.
They propose to register as VIP member to remove ads.
If they read contents from their website, we could to.
There are repo on github.
If you are looking for others providers, there is a thread about this in PopcornTime's forum.
This issue is kind of relative to issue #88.
Thank you.
It seems a great feature for me
Hi guys, and first, thanks for this awesome plugin!
Sometimes .srt
files are not encoded to UTF-8
, and when you have accents, that is the result... :
( a ?
instead of special characters like accents)
To fix it, you can modify your encoding preferences in VLC, or manually convert the .srt
file to UTF-8
(with notepad for example).
But these solutions are not fast and simple.
In html
, you can force encoding with a meta, like <meta charset="utf-8">
...
But, is there a way to force reading .srt
files in UTF-8
?
And if not, a way to convert them?
The VLsub extension does not start in VLC 1.1.9 (Ubuntu 11.04).
Here is the log of the error, hope it helps:
[0x8b37344] lua generic debug: Activating extension 'VLsub 0.9.10'
[0x8b37344] lua generic debug: [VLsub] Welcome
[0x8b37344] lua generic warning: Error while running script /usr/lib/vlc/lua/extensions/vlsub.lua, function activate(): /usr/lib/vlc/lua/extensions/vlsub.lua:552: attempt to call field 'datadir' (a nil value)
[0x8b37344] lua generic debug: Could not activate extension!
[0x8b37344] lua generic debug: Deactivating 'VLsub 0.9.10'
[0x8b37344] lua generic debug: [VLsub] Bye bye!
I copied the vlsub file here:
C:\Program Files (x86)\VLC\lua\extensions
after creating the extensions folder myself, it doesn't exist in VLC 2.0.7. vlsub doesn't show in the View menu.
The install instructions specify the "lua\extensions" folder. Is it still applicable to VLC 2.0.7?
Hey,
VLSUB is just showing the list of subtitles, but on pressing the download button, it does not download it. It was working fine a few days back. Please advice. Since it was not working with the currrent version of VLC, I am using VLC 2.0.2
VLC reports "lua error: Could not activate extension!" when you click on the vlsub option from view menu.
[...]
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\username\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\username\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///C:/Users/username/Desktop/SomeShow.S99E99.HDTV.x264-GROUP.mp4
lua warning: Error while running script C:\Users\username\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function activate(): ...username\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1190: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
[...]
Doesn't work while streaming video. For example, with popcorntime.io
In the activate() function I just added the "and" condition and it seems to work
if vlc.input.item() and vlc.input.item() ~= "" then
openSub.getFileInfo()
openSub.getMovieInfo()
end
Could be very useful
I have vlsub 0.11 that has been modified to work behind a proxy. It used to work earlier, but now it seems to be broken.
The "search from hash" feature works fine - it displays the results, but when I try to download a subtitle, I get a "Server not responding" error. I'm not familiar with lua, but there seems to be some problem with the get(url)
call in dump_zip
.
Here is my modified get function:
function get(url)
local host, path = parse_url(url)
local header = {
--"GET "..path.." HTTP/1.1",
"GET http://"..host..path.." HTTP/1.1",
"Host: "..host,
"User-Agent: "..openSub.conf.userAgentHTTP,
"",
""
}
local request = table.concat(header, "\r\n")
local response
local status, responseStr = http_req("proxy.iiit.ac.in", 8080, request)
if status == 200 then
return response
else
return false, status, response
end
end
I tried to manually intercept and send the request using telnet and it worked perfectly.
Request:
GET http://dl.opensubtitles.org/en/download/subad/src-api/vrf-af84340f73/5772547 HTTP/1.1
Host: dl.opensubtitles.org
User-Agent: VLSub
Response:
Trying 10.4.3.204...
Connected to proxy.iiit.ac.in.
Escape character is '^]'.
HTTP/1.0 200 OK
Set-Cookie: PHPSESSID=rdf7vpqob9hiep7ese0ni396v3; path=/; domain=.opensubtitles.org
Set-Cookie: ts=1406929442; expires=Mon, 01-Sep-2014 21:44:02 GMT; path=/; domain=.opensubtitles.org
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Origin: *
Content-Type: application/zip
Content-Disposition: attachment; filename="suits.were.done.(2014).eng.1cd.(5772547).zip"
Pragma: public
Expires: Mon, 1 Apr 2006 01:23:45 GMT
Content-Transfer-Encoding: Binary
Cache-Control: must-revalidate, post-check=0, pre-check=0
Download-Quota: 181
Content-Length: 27009
Accept-Ranges: bytes
Date: Fri, 01 Aug 2014 21:44:02 GMT
Age: 0
X-Cache: MISS
X-Cache-Backend: web1
X-Cache: MISS from proxy
X-Cache-Lookup: MISS from proxy:8080
Connection: keep-alive
<Binary zip follows>
I used wireshark to read the response packet to vlsub and that too begins with HTTP/1.0 200 OK\r\n
. I then thought that the if
condition in dump_zip
that sets the error code was being erroneously triggered, so I commented it out, but then I get a srt.gz file of 0 bytes in my video folder and the addon hangs.
Let me repeat two things -
status
andresponseStr
in get
function.URL to the whole modified code - http://pastebin.com/DPtC74VQ
Any help here would be great. Thanks. :)
EDIT - using VLC media player 3.0.0-git Vetinari (revision 2.2.0~~git20140801+r57492+123~ubuntu14.04.1) on Linux Mint 17
Not critical at all, but pretty easy to fix:
When the user has no extensions installed, the "extensions" folder may not exist. In such case, the installer fails.
Downloading a subtitle doesn't work. The search works and the video is recognized. But the downloading doesn't work anymore.
windows 7 x64
vlc 208
I can't search any subtitle. It says "Error: code '401 Unauthorized' (200)"
VLC in Windows 8 doesn't see vlsub
Hi,
I got a bug in vlsub 0.9.10.
i use VLC 2.0.8 x64 on Win8.1
the error is as follow:
File reading failed:
VLC could not open the file "Data\Media\Videos\Sherlock.3x03.HDTV_x264-FoV.srt.gz". (Bad file descriptor)
the subtitle is succesfully downloaded and it exists in the directory as a .gz archive by the name: Sherlock.3x03.HDTV_x264-FoV.srt.gz
but it seems like the subtitle is failed to be extracted from the .gz archive, because the srt file is created but it's empty (0 byte).
is this a new bug?
because i'd been using vlsub on my old pc and it runs without this bug.
Please help :)
Thanks!
I came across this little error while testing on Windows on a build from the latest source:
lua debug: Clicking 'C:\Users\Gazy\AppData\Roaming\vlc\lua\extensions\vlsub.lua': 'Close'
lua debug: [VLsub] Bye bye!
core debug: net: connecting to api.opensubtitles.org port 80
core debug: connection succeeded (socket = 1996)
lua debug: Deactivating 'VLsub 0.9.12'
lua debug: [VLsub] Bye bye!
core debug: net: connecting to api.opensubtitles.org port 80
core debug: connection succeeded (socket = 1316)
lua warning: Error while running script C:\Users\Gazy\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function deactivate(): ...rs\Gazy\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1684: Interrupted.
lua debug: Deleting dialog 'VLSub 0.9'
lua debug: Waiting for the dialog to be deleted...
qt4 debug: Deleting extension dialog 'VLSub 0.9'
lua warning: Extension 'VLsub 0.9.12' did not deactivate properly
lua debug: Extension thread end: 'VLsub 0.9.12'
I think vlc.deactivate() is calling the extension's deactivate() method, which would explain the duplicate "Bye bye!" message.
I'm using 0.9.12 in VLC 2.2 in MacOSX, i can search and download subtitles with no problems, but when I click to close the vlsub windows all VLC hangs, I need to force close and reopen (the subs was downloaded correctly
lua generic error: Could not activate extension!
occured when i clicked in 'VLsub 0.9.11" or "VLsub 0.9.10" in the "View" submenu
23:52:40 tobias@lothlorien:/tmp$ git clone https://github.com/exebetche/vlsub.git
Cloning into 'vlsub'...
remote: Reusing existing pack: 458, done.
remote: Counting objects: 36, done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 494 (delta 19), reused 7 (delta 2)
Receiving objects: 100% (494/494), 168.46 KiB | 125.00 KiB/s, done.
Resolving deltas: 100% (208/208), done.
Checking connectivity... done.
23:53:30 tobias@lothlorien:/tmp$ mkdir ~/.local/share/vlc/lua/extensions/
23:53:41 tobias@lothlorien:/tmp$ cp vlsub/
.git/ locale/ README.md vlsub.lua
23:53:41 tobias@lothlorien:/tmp$ cp vlsub/vlsub.lua ~/.local/share/vlc/lua/extensions/
23:54:09 tobias@lothlorien:/tmp$ vlc
VLC media player 2.1.2 Rincewind (revision 2.1.2-0-ga4c4876)
[0xfc2118] main libvlc: Executando o VLC com a interface padrão. Use 'cvlc' para usar o VLC sem interface.
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7ff6a8001248] main vout display error: Failed to resize display
[0x7ff6e02b04a8] lua generic error: Could not activate extension!
[0x7ff6e02b04a8] lua generic error: Could not activate extension!
23:55:02 tobias@lothlorien:/tmp$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux testing (jessie)
Release: testing
Codename: jessie
OS X Yosemite 10.10.2
VLC 2.2
Here is the log of the error, hope it helps for giving me your advice in order to fix Vlsub
Im using vlc-2.0.8-win32.exe but the executable vlc.exe is shown as from VLC 2.1.1 version??
main debug: adding item aWedding.avi' ( file:///C:/Users/Brahim/Downloads/aWedding.avi ) qt4 debug: Adding a new MRL to recent ones: file:///C:/Users/Brahim/Downloads/aWedding.avi main debug: Creating an input for 'aWedding.avi' main debug: processing request item: aWedding.avi, node: null, skip: 0 main debug: rebuilding array of current - root Liste de lecture main debug: rebuild done - 1 items, index 0 main debug: starting playback of the new playlist item main debug: resyncing on aWedding.avi main debug: aWedding.avi is at 0 main debug: creating new input thread main debug: Creating an input for 'aWedding.avi' main debug: meta ok for (null), need to fetch art main debug: looking for meta fetcher module matching "any": 1 candidates lua debug: Trying Lua scripts in C:\Users\Brahim\AppData\Roaming\vlc\lua\meta\fetcher lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac main debug: using timeshift granularity of 50 MiB, in path 'C:\Users\Brahim\AppData\Local\Temp' main debug:
file:///C:/Users/Brahim/Downloads/aWedding.avi' gives access file' demux
' path /C:/Users/Brahim/Downloads/aWedding.avi' main debug: creating demux: access='file' demux='' location='/C:/Users/Brahim/Downloads/aWedding.avi' file='C:\Users\Brahim\Downloads\aWedding.avi' main debug: looking for access_demux module matching "file": 12 candidates main debug: using meta fetcher module "lua" main debug: removing module "lua" main debug: searching art for aWedding.avi main debug: looking for art finder module matching "any": 2 candidates main debug: no access_demux modules matched main debug: creating access 'file' location='/C:/Users/Brahim/Downloads/aWedding.avi', path='C:\Users\Brahim\Downloads\aWedding.avi' main debug: looking for access module matching "file": 20 candidates filesystem debug: opening file
C:\Users\Brahim\Downloads\aWedding.avi'
main debug: using access module "filesystem"
main debug: Using stream method for AStream*
main debug: starting pre-buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module matching "any": 6 candidates
main debug: no stream_filter modules matched
main debug: looking for stream_filter module matching "record": 6 candidates
main debug: using stream_filter module "record"
main debug: creating demux: access='file' demux='' location='/C:/Users/Brahim/Downloads/aWedding.avi' file='C:\Users\Brahim\Downloads\aWedding.avi'
main debug: looking for demux module matching "avi": 63 candidates
avi debug:
avi debug:
avi debug:
avi debug:
avi debug:
lua debug: Trying Lua scripts in C:\Users\Brahim\AppData\Roaming\vlc\lua\meta\art
avi debug:
avi debug:
avi debug:
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
avi debug:
avi debug: skipping movi chunk
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
avi debug:
avi debug: * LIST-root size:96022706 pos:0
avi debug: + RIFF-AVI size:96022698 pos:0
avi debug: | + LIST-hdrl size:8830 pos:12
avi debug: | | + avih size:56 pos:24
avi debug: | | + LIST-strl size:4244 pos:88
avi debug: | | | + strh size:56 pos:100
avi debug: | | | + strf size:40 pos:164
avi debug: | | | + JUNK size:4120 pos:212
avi debug: | | + LIST-strl size:4234 pos:4340
avi debug: | | | + strh size:56 pos:4352
avi debug: | | | + strf size:30 pos:4416
avi debug: | | | + JUNK size:4120 pos:4454
avi debug: | | + LIST-odml size:260 pos:8582
avi debug: | | | + dmlh size:248 pos:8594
avi debug: | + JUNK size:1382 pos:8850
avi debug: | + LIST-movi size:95893714 pos:10240
avi debug: | + idx1 size:118736 pos:95903962
avi debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED
avi debug: stream[0] rate:30000 scale:1000 samplesize:0
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
main debug: no art finder modules matched
main debug: art not found for aWedding.avi
avi debug: stream[0] video(X264) 1216x638 24bpp 30.000000fps
main debug: selecting program id=0
avi debug: stream[1] rate:16000 scale:1 samplesize:1
avi debug: stream[1] audio(0x55 - MPEG Audio layer 1/2/3) 2 channels 44100Hz 0bits
avi debug: selected standard index for stream[0]
avi debug: selected standard index for stream[1]
avi debug: stream[0] created 3261 index entries
avi error: no key frame set for track 1
avi debug: stream[1] created 4160 index entries
avi debug: stream[0] length:108 (based on index)
avi debug: stream[1] length:108 (based on index)
main debug: using demux module "avi"
main debug: looking for a subtitle file in C:\Users\Brahim\Downloads
main debug: looking for decoder module matching "any": 39 candidates
avcodec debug: trying to use direct rendering
avcodec debug: allowing 4 thread(s) for decoding
avcodec debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started
avcodec debug: using frame thread mode with 4 threads
main debug: using decoder module "avcodec"
main debug: looking for decoder module matching "any": 39 candidates
main debug: using decoder module "mpeg_audio"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Brahim\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
main debug: no meta reader modules matched
main debug: `file:///C:/Users/Brahim/Downloads/aWedding.avi' successfully opened
main debug: Buffering 0%
main debug: Buffering 8%
mpeg_audio debug: MPGA channels:2 samplerate:44100 bitrate:128
main debug: reusing audio output
directsound debug: Opening DirectSound Audio Output
main debug: Buffering 16%
main debug: Buffering 25%
main debug: Buffering 33%
main debug: Buffering 41%
main debug: Buffering 50%
main debug: Buffering 58%
main debug: Buffering 66%
main debug: Buffering 75%
main debug: Buffering 83%
main debug: Buffering 91%
main debug: Buffering 100%
main debug: Stream buffering done (325 ms in 1 ms)
main debug: looking for text renderer module matching "any": 2 candidates
freetype debug: Using Arial as font from file C:\Windows\Fonts\arial.ttf
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
main debug: looking for video filter2 module matching "any": 55 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: RGBA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: looking for video filter2 module matching "any": 55 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: Deinterlacing available
main debug: deinterlace 0, mode blend, is_needed 0
main debug: Opening vout display wrapper
main debug: looking for vout display module matching "any": 10 candidates
directsound debug: Windows speaker config: Stereo and stream has 2 channels, using 2 channels
main debug: output 'f32l' 44100 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio volume module matching "any": 2 candidates
main debug: using audio volume module "float_mixer"
main debug: input 'mpga' 44100 Hz Stereo frame=1152 samples/1053 bytes
main debug: looking for audio filter module matching "scaletempo": 14 candidates
scaletempo debug: format: 44100 rate, 2 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 1323.000 stride_in, 1323 stride_out, 1059 standing, 264 overlap, 617 search, 2204 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: conversion: 'mpga'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: looking for audio converter module matching "any": 12 candidates
main debug: no audio converter modules matched
main debug: looking for audio converter module matching "any": 12 candidates
mpgatofixed32 debug: mpga->f32l, bits per sample: 32
main debug: using audio converter module "mpgatofixed32"
main debug: conversion pipeline complete
main debug: conversion: 'f32l'->'f32l' 44100 Hz->44100 Hz Stereo->Stereo
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "samplerate"
main debug: End of audio preroll
direct3d debug: creating Vout EventThread
direct3d debug: DirectXCreateWindow
main debug: looking for vout window hwnd module matching "qt4,any": 3 candidates
qt4 debug: requesting video window...
qt4 debug: IM: Setting an input
qt4 debug: Video was requested 0, 0
main debug: using vout window hwnd module "qt4"
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
direct3d debug: Direct3d Device: Intel(R) HD Graphics 32902 258 9
main debug: VoutDisplayEvent 'resize' 1234x689 window
direct3d warning: trying surface pixel format: YV12
direct3d debug: selected surface pixel format is YV12
direct3d debug: Using D3DTEXF_LINEAR for minification
direct3d debug: Using D3DTEXF_LINEAR for magnification
direct3d debug: Direct3D scene created successfully
direct3d debug: Direct3D device adapter successfully initialized
main debug: using vout display module "direct3d"
main debug: original format sz 1216x638, of (0,0), vsz 1216x638, 4cc I420, sar 9901:10000, msk r0x0 g0x0 b0x0
main debug: removing module "freetype"
main debug: looking for text renderer module matching "any": 2 candidates
main debug: VoutDisplayEvent 'resize' 1920x975 window
freetype debug: Using Arial as font from file C:\Windows\Fonts\arial.ttf
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
avcodec debug: using direct rendering
main debug: End of video preroll
main debug: Received first picture
direct3d debug: Created 240x43 texture for OSD
main debug: Decoder buffering done in 148 ms
main debug: inserting 352 zeroes
main warning: playback too late (61007): up-sampling
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: resampling stopped (drift: 5624 us)
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///C:/Users/Brahim/Downloads/aWedding.avi
lua warning: Error while running script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function activate(): ...\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
qt4 debug: ExtensionsDialogProvider is quitting...
main debug: removing module "lua"
lua debug: Deactivating all loaded extensions
lua debug: All extensions are now deactivated
main debug: looking for extension module matching "any": 1 candidates
lua debug: Opening Lua Extension module
lua debug: Trying Lua scripts in C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions
lua debug: Trying Lua playlist script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua
lua debug: Scanning Lua script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua
lua debug: Script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua has the following capability flags: 0x5
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\extensions
main debug: using extension module "lua"
qt4 debug: ExtensionsDialogProvider is quitting...
main debug: removing module "lua"
lua debug: Deactivating all loaded extensions
lua debug: All extensions are now deactivated
main debug: looking for extension module matching "any": 1 candidates
lua debug: Opening Lua Extension module
lua debug: Trying Lua scripts in C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions
lua debug: Trying Lua playlist script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua
lua debug: Scanning Lua script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua
lua debug: Script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua has the following capability flags: 0x5
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\extensions
main debug: using extension module "lua"
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
avi debug: seek requested: 33 seconds 31%
avi debug: old:90933333 > new 33587998
avi debug: seek: 33 seconds
main debug: Buffering 0%
main debug: Buffering 8%
main debug: End of audio preroll
main debug: Buffering 16%
main debug: Buffering 25%
main debug: Buffering 33%
main debug: Buffering 41%
main debug: Buffering 50%
main debug: Buffering 58%
main debug: Buffering 66%
main debug: Buffering 75%
main debug: Buffering 83%
main debug: Buffering 91%
main debug: Buffering 100%
main debug: Stream buffering done (325 ms in 1 ms)
main debug: End of video preroll
main debug: Received first picture
main debug: Decoder buffering done in 48 ms
mpgatofixed32 error: libmad error: bad main_data_begin pointer
main debug: picture might be displayed late (missing 13 ms)
main debug: auto hiding mouse cursor
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///C:/Users/Brahim/Downloads/aWedding.avi
lua warning: Error while running script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function activate(): ...\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
dshow error: no video capture device was detected
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///C:/Users/Brahim/Downloads/aWedding.avi
lua warning: Error while running script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function activate(): ...\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
avi debug: seek requested: 2 seconds 2%
avi debug: old:104033333 > new 2484000
avi debug: seek: 2 seconds
main debug: Buffering 0%
main debug: End of audio preroll
main debug: Buffering 8%
main debug: Buffering 16%
main debug: Buffering 25%
main debug: Buffering 33%
main debug: Buffering 41%
main debug: Buffering 50%
main debug: Buffering 58%
main debug: Buffering 66%
main debug: Buffering 75%
main debug: Buffering 83%
main debug: Buffering 91%
main debug: Buffering 100%
main debug: Stream buffering done (325 ms in 4 ms)
main debug: End of video preroll
main debug: Received first picture
main debug: Decoder buffering done in 59 ms
mpgatofixed32 error: libmad error: bad main_data_begin pointer
main debug: inserting 1130 zeroes
main debug: picture might be displayed late (missing 6 ms)
main debug: auto hiding mouse cursor
qt4 debug: activating or triggering extension 'VLsub 0.9.10'
lua debug: Activating extension 'VLsub 0.9.10'
lua debug: [VLsub] Welcome
lua debug: [VLSub] Working directory: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub
lua debug: [VLSub] Loading config file: C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\userdata\vlsub\vlsub_conf.xml
lua debug: [VLSub] Video URI: file:///C:/Users/Brahim/Downloads/aWedding.avi
lua warning: Error while running script C:\Users\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua, function activate(): ...\Brahim\AppData\Roaming\vlc\lua\extensions\vlsub.lua:1184: attempt to index field 'net' (a nil value)
lua error: Could not activate extension!
lua debug: Deactivating 'VLsub 0.9.10'
lua debug: [VLsub] Bye bye!
lua debug: Extension thread end: 'VLsub 0.9.10'
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
main debug: auto hiding mouse cursor
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.