Skip to content

akitaonrails/Shift-Subtitle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

One example of solution for the Rubylearning Challenge #1

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages