Thursday, November 18

Easily Find Subtitles for Any Video with Periscope

Periscope is a python module that searches subtitles for any given video on many online services and tries to find a correct match. It comes with an easy command line interface as well as a nautilus extension so that you can download subtitles with a simple right click.

Periscope searches subtitles by using as much info as available from the file and on the websites. Some websites allow you to use hash of the files, the size/length of the video or the exact file name.

The goal behind Periscope is to return only correct subtitles so that the user can simply relax and enjoy the video without having to double-check that the subtitles match the video.

Periscope currently uses following services to find subtitles:

Run the following commands to install Periscope on Ubuntu from a PPA:  

sudo add-apt-repository ppa:patrick-dessalle/ppa
sudo apt-get update
sudo apt-get install periscope-gnome

This will only install command line interface. You can download subtitles from Periscope using following commands:

$ periscope /path/to/my/video -l en
$ periscope /path/to/my/video -l en -l fr

You can easily change language by replacing en. In the second command, the first preference is for English and the second preference is for French subtitles. You can find subtitles in any language you prefer.

You can do the same thing by a simple right click using a nautilus extension

Follow the instructions for nautilus support (First install Periscope from PPA)

Run the following command to ensure you have all the dependencies installed: 

sudo apt-get install python-nautilus python-notify 

Now create a folder python-extensions in /home/yourusername/.nautilus 

Run the following commands to install the extension:
cd ~/.nautilus/python-extensions

Restart nautilus by running the following command: 

nautilus -q

If you want to change the language preference edit the file config in /home/yourusername/.config/periscope like this: (Run Periscope at least once)

lang = en 
lang = en,fr

The first will find subtitles in English and the second will only look for subtitles in French if no English subtitle is found.

All done. Now just right click any video file and click on Find subtitles for this video. Periscope will now look for subtitles for the file and will notify you when it has finished searching. The subtitles will be downloaded in the same folder where the video is located.


Post a Comment

Preload Image 1 Preload Image 2 Preload Image 3 Preload Image 4 Preload Image 5