An interactive shell to retime SRT files.
For now you can only install this by cloning the repo, and then run the following commands:
bundle install
rake install
Start the shell with the command:
srt-shell
You could also optionally pass in an SRT file's path as an argument:
srt-shell file.srt
In the shell, the commands available will be shown with the 'help' command:
help
Load an SRT file.
Exit the shell
This would scan the SRT file for time gaps larger than the given time in ms. This is useful to search for indexes to be used with the time-shifting commands.
Rewind the given time in ms for lines from index onwards.
Forward the given time in ms for lines from index onwards.
Remove line with the given index
Save (overwrite) the SRT file. You can place an executable file in $HOME/.srt_shell_hook to be executed when 'save' is used.
Search for the given word in the SRT file and print out the entries that contain the word.
I've only tested this on Linux because it's the only machine I have.
- Fork it ( https://github.com/skliew/srt-shell/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request