[Ruby] introduce delays in srt

I use Ubuntu. The most annoying part when using srt’s subtitles from opensubtitles.org is synchronization. Using gnome-subtitles editor failed even to load the srt files. There was subtitleeditor which loaded srt and allowed to edit timing but on saving the file, the format got changed and totem was not able to detect/load the subtitle.

Then just wrote a simple ruby script which can introduce delays. This can use only srt files. More over my first ruby application too.

http://github.com/sathyz/srt-editor-in-ruby/tree

override the string class and add function to convert string (time – that is read from srt file) to millisecs, perform the action (add/reduce delay) and override FixNum to convert the computed millisec to time ( string) which can be written in the srt file (in the same format as read).

that’s it done!!

Advertisements

One thought on “[Ruby] introduce delays in srt

  1. Hi,

    The actual problem is with the Ubuntu package of Gnome Subtitles, not the application itself. Install the “libmono-i18n2.0-cil” package and all should be fine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s