Git Product home page Git Product logo

subtitle_it's Introduction

      __                                            __
    /    )          /          ,        /           /
----\--------------/__--_/_------_/_---/----__-----/---_/_-
     \     /   /  /   ) /    /   /    /   /___)   /    /
_(____/___(___(__(___/_(_ __/___(_ __/___(___ _ _/_ __(_ __

Gem Version Build Status Dependency Status

Ruby tool to download, create, convert and fix subtitles.

Features

  • Automatic Download on the terminal
  • To and from: SRT, SUB, XML(TT), YML, MPL2, RSB and ASS.
  • Fixes delays. (SrtResync)
  • Compatibility with "sube" (http://github.com/vic/sube)

Synopsis

Download subtitle:

subtitle_it Cool-Video.avi

This will search all languages for the video. You can filter:

subtitle_it -l Eng Cool-Video.avi

You can use -c option. It convert subtitles to given format:

subtitle_it -l Eng -c srt Cool-Video.avi

Bash tool

Convert a srt to sub:

subtitle_it in.srt out.sub

or

subtitle_it -c sub in.srt

Add a delay of 1 minute:

subtitle_it -d 60 in.srt

Create a template

subtitle_it unexistent.file

Install

gem install subtitle_it

The "Ruby Subtitle" Format - RSB

It`s just a easy way, proof of concept to edit subtitles. Here is what it looks like:

00:32 => 00:33 == Nice police work! | Thank you!
00:35 => 3 == Nice job!

MM:SS => MM:SS or N == TEXT | NEWLINE

Create a template to check it out.

Automatic Download

  • OpenSubtitles.org - WORK SubtitleIt Agent
  • addic7ed.com - gem install addic7ed
  • legendas.tv - EVIL NOAPI

*NOAPI = Mechanize playground...

Dev

To run tests:

rake spec or autotest

Documentation => doc Subtitle examples => spec/fixtures

Others

Series: https://github.com/michaelbaudino/addic7ed-ruby

Editors

Try those nice editors too, if SubtitleIt does not fit your need:

Jubler: http://www.jubler.org/

Aegisub: http://www.malakith.net/aegiwiki/Main_Page

THANKS

  • Johanlunds - Opensubtitle.org code (to be used as a gem soon).
  • Marcin (tiraeth) Chwedziak - Sub format first implementation.

TODO

Please visit:

subtitle_it's People

Contributors

fazibear avatar grapagnani avatar nofxx avatar warlley avatar

Watchers

 avatar

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.