Time Saver: Download subtitles automatically with a simple script

By on December 1, 2013, 11:00 PM

Finding subtitles for ripped or downloaded videos isn’t terribly complicated. Most of the time it involves a quick search at sites like Opensubtitles or Subscene for a particular TV show or movie, and filtering through language options. It’s not a lot of work but it isn’t the most efficient either when dealing with a large video library.

Subtitles by Rainy Cape can shave a few seconds off the whole process by making it as simple as dragging and dropping a video file.  But since we’re already optimizing why not take it to the next level and make subtitle fetching 100% hands off? With the help of a couple handy tools we certainly can!

Read the complete article.




User Comments: 22

Got something to say? Post a comment
Lurker101 said:

Splayer already auto downloads the subtitles for whatever you play.

mosu said:

Rename some viruses .sub or else and here you are, compromised.No automatic subtitles for me , thank you!

Kelly Kufeldt Kelly Kufeldt said:

This is what happens when I run the script:

Error at line 41 in #include file "C:\Program Files\AutoHotkey\Lib\_Struct.ahk".

Line Text: #Include <sizeof>

Error: Function library not found.

The program will now exit.

Staff
Matthew Matthew, TechSpot Staff, said:

I haven't tried the script but it sounds like you may have skipped this step:

"Luckily a lot of the underlying functionality was already taken care off -- you'll need to save the WatchDirectory and Struct scripts onto the Lib folder under your AHK installation. Once that's ready this will get the job done:"

1 person liked this | Kelly Kufeldt Kelly Kufeldt said:

I haven't tried the script but it sounds like you may have skipped this step:

"Luckily a lot of the underlying functionality was already taken care off -- you'll need to save the WatchDirectory and Struct scripts onto the Lib folder under your AHK installation. Once that's ready this will get the job done:"

It would be really hard to get an error at line 41 of the Struct script if it wasn't were it is supposed to be. Just saying. lol

Guest said:

I use VLSub with VLC Player, does the trick for me.

Guest said:

This is absolutely cool.

Guest said:

Media Player Classic does the job for me. Has a built-in function of searching the online database and then loading it in :).

Staff
Jos Jos said:

I haven't tried the script but it sounds like you may have skipped this step:

"Luckily a lot of the underlying functionality was already taken care off -- you'll need to save the WatchDirectory and Struct scripts onto the Lib folder under your AHK installation. Once that's ready this will get the job done:"

It would be really hard to get an error at line 41 of the Struct script if it wasn't were it is supposed to be. Just saying. lol

Thanks for pointing this out. The Struct class itself calls to another function called sizeof, so you should put this in your Lib folder as well. I'll update the article right away but in the meantime you can find sizeof here: [link]

Staff
Matthew Matthew, TechSpot Staff, said:

It would be really hard to get an error at line 41 of the Struct script if it wasn't were it is supposed to be. Just saying. lol

Touche.

1 person liked this |
Staff
Julio Franco Julio Franco, TechSpot Editor, said:

I use VLSub with VLC Player, does the trick for me.

When I pitched the idea for this article to our editorial team and to Jose specifically I told him to recommend programs like VLSub (which I had used) and offer good alternatives or something else that worked cross-platform. The Subtitles app that he mentions in the article is indeed really nice, but going further, his automated solution is at its best when you don't rely on a single media player or if you host your videos on a home server and then reproduce them via a Roku or other set top box, so once set up you get a true hands-off approach to subtitle downloading.

1 person liked this | Kelly Kufeldt Kelly Kufeldt said:

I haven't tried the script but it sounds like you may have skipped this step:

"Luckily a lot of the underlying functionality was already taken care off -- you'll need to save the WatchDirectory and Struct scripts onto the Lib folder under your AHK installation. Once that's ready this will get the job done:"

It would be really hard to get an error at line 41 of the Struct script if it wasn't were it is supposed to be. Just saying. lol

Thanks for pointing this out. The Struct class itself calls to another function called sizeof, so you should put this in your Lib folder as well. I'll update the article right away but in the meantime you can find sizeof here: [link]

Thanks, now the program works great. I appreciate all of you guys that come up with this stuff to make things a lot easier.

I only use Daum Potplayer now. It is by far the best video player that I have used and I have tried all of them over the past 20ish years. Now they just need to add automatic subtitle retrieval, too.

Guest said:

Works well but my video file size becomes 0 kb and the video is not playing! :/

Please give me a solution for this!

Kelly Kufeldt Kelly Kufeldt said:

Works well but my video file size becomes 0 kb and the video is not playing! :/

Please give me a solution for this!

I noticed the same thing after you mentioned it. Will have to put this on the back-burner until someone fixes it or tells us how to fix it!

Guest said:

Same thing happens to me! I'd *LOVE* to use this method, if only someone would find a way around this. Let's hope Jose updates the post with a solution...

Guest said:

Also, Subtitles keep opening up an Amazon web page... annoying!

Staff
Jos Jos said:

I haven't been able to reproduce these errors on my end. I'll try some more and report back.

Kelly Kufeldt Kelly Kufeldt said:

Just curious if anyone is going to get back to us on why our movies are being deleted using these scripts. Any reply would be greatly appreciated!:eek:

Guest said:

I know nothing about Applescript, but this script...

on run {process, visible}

tell application "Finder"

set visible of process "Subtitles" to false

end tell

delay 20

tell application "Subtitles"

quit

end tell

doesn't look right. What about...

return input

end run

... at the end?

Guest said:

One more thing. How do you select the language for the subtitles? Thanks.

Guest said:

I use VLSub with VLC Player, does the trick for me.

Sounded good. Only problem is it does not work with the latest version of VLC, so better not update...

Guest said:

Also, Subtitles keep opening up an Amazon web page... annoying!

I am seeing this as well. Weird.. Is this a virus? Seems to download the srt and then invokes the web browser for Amazon? With the author's name in there somewhere? Amazon doesnt provide subtitles?

Load all comments...

Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...
Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.