Command-line utility to shift subtitles.
My solution to RubyLearning.com's challenge # 1 http://rubylearning.com/blog/2009/09/24/rpcfn-shift-subtitle-1/
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install subrip
In the command-line,
shift_subtitle -o add -t 2,500 input/batman_begins.srt output/batman_begins.srt
-o => Operation switch. Accepts either 'add' or 'sub' (without the quotes).
-t => Time to shift. It's of the form SS,MMM. Example:
-t 02,500 meaning
2 seconds and 500 milliseconds.
The last two parameters are the input subtitle file and the output subtitle file respectively.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request