37

I have many movies without subtitles, is there a program to find the right subtitles for them?

Braiam
  • 67,791
  • 32
  • 179
  • 269
user19437
  • 463

6 Answers6

42

You can use subdownloader Install subdownloader or to install in shell sudo apt-get install subdownloader which is very good to download subtitles for any type of movie/series.

After downloading/installing it the program should be in the Sound & Video section in the applications panel. If you are using Unity by default just press SUPER and type subdownloader and press enter.

When you open the program it will automatically log in to opensubtitles and just search for the movie you want to find the subtitles for or the folder where the video or videos that you want to search the subtitles for. Then select the language for them and download. It will automatically put it in the folder where the video is, renaming it to the video name and enjoy. Open the video with VLC and you should be able to watch the movie with the subtitles.

Luis Alvarado
  • 211,503
  • 2
    Great, starting with the download of the subtitles for my own collection, thanks. ^^ – user19437 Jun 07 '11 at 04:49
  • No problem. Enjoy. It saves me a lot of time actually. – Luis Alvarado Jun 07 '11 at 04:50
  • doesn't do much more than smplayer –  Mar 20 '12 at 19:38
  • I like the way I can download multiple subtitles files from multiple languages for multiple videos. So basically I select a folder with 50 movies, select for example, spanish, english and french language for all and just click to download them all with the correct name and format. In the cases of smplayer and the vlc subtitle plugin I can only do it with the video I am watching. One subtitle at a time basically. – Luis Alvarado Mar 21 '12 at 02:15
  • Seems outdated. Is it still working? –  Jan 19 '17 at 20:12
  • 1
    @cipricus yes it still works and it is up to date with the latest version of Ubuntu. The same applies to smplayer which is currently the one I use. For both cases I don't know where the seems outdated part came from. – Luis Alvarado Jan 19 '17 at 22:23
  • @LuisAlvarado - I have to test this more. I cannot download subs with none of them for the same videos where VLC can find subs very easily. As VLC solves it for me I have not tried to fix it, but I am curious what could be the problem. (SMPlayer always says "0 files available" and SubDownloader shows me the video names only). –  Jan 20 '17 at 23:35
  • 1
    @cipricus OH I see. Well most of the time (99% of the time) it is opensubtitles having an issue. This is do to the fact that most players that offer subtitle download options use it and basically collapse the hell out of it. Basically the need help with some donations to acquire more servers I believe because they also handle A LOT of languages, so imagine the world traffic for them. For me for example, it works at 4PM and then it breaks at 5PM. Then another day it works in the morning but not in the afternoon. – Luis Alvarado Jan 20 '17 at 23:43
  • After testing a bit more (in fact on many occasions) I can say that especially for movie series, where Subdownloader, Subliminal and SMPlayer reported nothing or server overload, VLSub and FileDub (see my answer) where able to find the subs very quickly. –  Jan 29 '17 at 14:10
  • @cipricus thank you for testing. I will be adding this comment to the answer so it helps others. – Luis Alvarado Jan 29 '17 at 15:46
  • 1
    I suggest you wait a bit more, as I am testing this more thoroughly, as indicated in an update to my answer. It is much simpler it seems: SMPlayer and Subdownloader only search based on hash, while VLSub and OpenSubtitlesDownload.py can also search by name - with possible error but much more findings, of which at least one is the good one 90% of the time –  Jan 29 '17 at 16:30
19

You can also try to install smplayer which provides subtitle downloading natively.

enter image description here

You can go to 'Subtitles' --> 'Find subtitles on OpenSubtitles.org'

enter image description here

and get a list of all the available sub files.

enter image description here

The files are downloaded and saved instantly along with your movie file ;-)

Pavlos G.
  • 8,844
  • does it recently work? –  Jan 19 '17 at 20:15
  • @cipricus yes, at least for me – muru Jan 29 '17 at 06:29
  • @muru - the difference in results between the different programs was odd, but it amounts to this: SMPlayer and Subdownloader only search based on hash, while VLSub and OpenSubtitlesDownload.py can also search by name - with possible error but much more findings, of which at least one is the good one 90% of the time –  Jan 29 '17 at 21:41
  • @muru - update: the SMPlayer default search by hash-only can be changed to search by name (in Subtitles-Find subtitles at...-Options), which gives more results. I suspect the image above with so many results is based on this –  Nov 07 '17 at 12:53
10

Try subliminal, which downloads from multiple providers. It has all the features of other software suggested in this thread, but fares much better at detecting movie titles and finding quality subtitles.

You might need to run several passes on a given folder to find all subtitles, recursively.

It also detects embedded subs (mkv..), skips files which already have subs in your language of choice, and automatically renames the subs files to match video file names.

Also, I made a gist and an action, for the Nemo File Manager (can be converted to use Nautilus), that adds a context menu option to automatically download English movie subtitles.

It's available here on GitHub

Zanna
  • 70,465
Mauro Colella
  • 436
  • 4
  • 6
9

Before mentioning a few tools beside the ones mentioned in the other answers, I want to clarify why there is a difference between the different tools.

I have noticed that the most up-voted tools under this question that I also wanted to use failed in finding any subtitles for certain videos, while VLC/VLSub, for example, was finding a lot o subtitles for the same videos at the same moment. - After testing a bit more (with videos of various origin, period, celebrity, country and extension) I have found that the cause is rather simple:

Some tools (namely SubDownloader, SMPlayer (default setting - see update below), Subliminal) search based on hash which is theoretically error free, while VLSub and OpenSubtitlesDownload.py can also search by name - with possible error but much more findings, of which at least one is the good one 90% of the time. - VLC/VLSub has also a separate option to search only by hash.


  • VLC can do it with the addon VLSub: it comes integrated in the player after version 2.2; sometimes the integrated version may be outdated I think and you have to use the latest version of the addon from HERE or HERE, where it is actively updated, by putting the lua file in ~/.local/share/vlc/lua/extensions/ . See this answer on how to install.

    It can be accessed under 'View':

enter image description here

enter image description here

VLSub can find and save subtitles in the video folder by instantly renaming the subtitle to match the video name. That can be configured.

The only downside is that you have to start the player and run VLsub from there, as lua files cannot be run from command line, but even that brings the advantage that while the video is open you can quickly test the subtitles. The window of the VLSub tool with the list of found subtitles stays open and you can easily select a new one to download and load if the previous was not good. (That is a big advantage when you search only by name, and not by hash, and face the risk of getting first the wrong subtitles.)


"It can be used as a nautilus script, or as a regular application working under GNOME or KDE desktop environments."

For Nautilus:

git clone https://github.com/emericg/OpenSubtitlesDownload.git
mkdir -p ~/.local/share/nautilus/scripts/
cp OpenSubtitlesDownload/OpenSubtitlesDownload.py ~/.local/share/nautilus/scripts/OpenSubtitlesDownload.py
chmod u+x ~/.local/share/nautilus/scripts/OpenSubtitlesDownload.py

enter image description here

enter image description here

But the OpenSubtitlesDownload.py script can be used in other File managers (Thunar custom actions, Nemo actions, Pantheon-Files contract files) by adding the command

sh -c "/path/to/OpenSubtitlesDownload.py %f"

A downside that I've noticed is that (while it is said to search by both hash and name) in the list it shows it's not clear which subtitle is to be preferred; after selecting a subtitle the zenity window closes; after selecting a bad subtitle, and in order to select a new one, one must run the script again; also, it seems to be less effective in finding subtitles for series than for feature movies.


"tool for organizing and renaming your movies, tv shows or anime, and music well as downloading subtitles and artwork."

enter image description here

Or search by typing the name

enter image description here

Downloading subtitles is only one of its options, and it is mainly centered on renaming. It needs Java to work (and the GUI version seems to specifically ask for Oracle Java to work as intended).

The GUI interface is especially useful to download subtitles for multiple videos (e.g. for series, which none of the above can do), and then the program can be used to match the names of videos and subtitles with the 'Rename' tool. It searches both by name and hash.

The general command is filebot -get-subtitles /path/to/video/.

To search also by name (beside hash) the -non-strict option should be used.

To download English subtitles no language option is needed, but for other languages there is the option --lang with the 2 or 3 letter language code, but only one language can be specified per command, so you have to use separate commands for each language.

To rename the media files (using TMDb) and match their names, a useful option is -rename.

The command can be added to context menu in Thunar's custom actions (or Nautilus actions, etc) by running it in a terminal; for French it should be:

gnome-terminal -e "filebot -get-subtitles  --lang fr -rename -non-strict %F"

enter image description here

enter image description here

I especially like about it the ability to download subtitles for multiple videos at once when the %F argument is used (tested in Thunar).

Also, for already existing videos and/or subtitles, it can get the proper names by using the -rename argument and by omitting the -get-subtitles one; example of a Thunar custom action in Xfce for English titles:

xfce4-terminal -e "filebot -rename -non-strict %F" -H

The downside of the CLI version is that when it gets the bad subtitles (which rarely happens, even if hash-checked subs are not available, only ones searched by name, but it may happen) there seems to be no way to list and select new subtitles as in other tools.


UPDATE on SMPlayer:

It searches by hash by default, but that can be changed in Subtitles-Find subtitles at...-Options.

enter image description here

1

Features of Subdownloader are:

  • No spyware, no adware
  • Fast hashing algorithm (27 GB movies/7 seconds)
  • Recursive folder search
  • Autodetect language of the subtitles
  • Upload entire series subtitles in less than 1 minute
  • Many more…

SubDownloader : Ubuntu subtitle Downloader

enzotib
  • 93,831
0

There is a other alternative to download with terminal.

http://subliminal.readthedocs.io/en/latest/

~$ subliminal -l pt -- movie_name.avi

Max
  • 31