Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
One example of solution for the Rubylearning Challenge #1
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
spec
tasks
.gitignore
README
RUBY_LEARNING
Rakefile
shift_subtitle.gemspec

README

Helps shift time in a subtitle (SRT) file, so you can shift left
or right by seconds and milliseconds

Install:

  sudo gem install akitaonrails-shift_subtitle

Usage:

	shift_subtitle --help
  shift_subtitle --operation add --time 02,110 input_file output_file

Obs:

  The time format as to be "99,888" where "99" stands for the amount
  of seconds and "888" the amount of milliseconds, so 2 seconds and
  1 millisecond becomes "02,001".

	This version only deals with subtitle files in the SRT format.

Example:

  bin/shift_subtitle -o add -t 02,000 fixtures/input.srt output.srt

Credits:

  Fabio Akita <fabioakita@gmail.com> http://www.akitaonrails.com
  Satoshi Asakawa, inspired the best solution
Something went wrong with that request. Please try again.