Skip to content

jressey/subtitle_converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

subtitle_converter

Script that changes the timing of an srt file

Run from command line with Ruby:

ruby subtitle_converter.rb -o {add|sub} -t {seconds, milliseconds} {source_file_name} {destination_file_name}

For example, to move the subtitles ahead 1.5 seconds from old_subs.srt to new_subs.srt:

ruby subtitle_converter.rb -o add -t 1,500 old_subs.srt new_subs.srt

If you want to subtract, use -o sub -t 1,500

There is a subs_old.srt included to test with

About

Script that changes the timing of an srt file

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages