Git Product home page Git Product logo

autosubtitles's Introduction

AutoSubtitles

Automatically download subtitles for a given video file, from multiple subtitle sources

Build Status Code Coverage Scrutinizer Code Quality

Requirements

In order to run this project, the following tools are required

Installation

Installing this project can be done with the following steps:

  1. git clone https://github.com/PtrTn/AutoSubtitles.git
  2. cd AutoSubtitles
  3. composer install

Optional (skipping this step will prevent downloading subtitles from Opensubtitles): 4. cp app/config.yml.dist app/config.yml 5. Enter username and password 6. For development purposes the default user agent can be used, in other cases a new user agent should be requested

Usage

After installing, subtitles can be downloaded using the following command:

bin/console app:subtitles:download {video file}

Running this command will download subtitles for the given video file. Subtitles are matched based on video hash, rather than filename which proves to be more accurate. Subtitles are downloaded from SubDb.com and Opensubtitles.org. Downloaded subtitle files are renamed to match the given input video file and will have a suffix indicating its source and language.

Example

Running the following command:

bin/console app:subtitles:download var/Legion.S01E01.720p.HDTV.x264-FLEET[eztv].mkv

Will place the following two files in the same directory

  • Legion.S01E01.720p.HDTV.x264-FLEET[eztv].OpenSubtitles-EN.srt
  • Legion.S01E01.720p.HDTV.x264-FLEET[eztv].SubDb-EN.srt

Opening the video file in VLC player will automatically load the subtitle files as below

alt text

Wishlist

  • Configurable languages
  • Allow downloading of subtitles for multiple files at once
  • Checking for rate limits
  • Caching
  • Domain specific exceptions for nicer reporting
  • Async downloading
  • Client side application

Known bugs

  • When no subtitles are found, empty subtitle file is created

autosubtitles's People

Contributors

ptrtn avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

dheonz

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.