Skip navigation

Getting subtitles in sync

As an early new years resolution I’ll start with sharing more of the snippets I code up to make my life easier. Here’s one : the SRT subtitle scaler. It’s a little ruby script to sync subtitles with a movie. I don’t know how often one needs this, but I got some English subtitles on-line for a Chinese movie and I just couldn’t get them to properly line up with the movie.

Mplayer has an option to set a delay (possibly negative), but that didn’t help in my case. You can also set the subtitle fps (frames per second), but that only works when the subtitle format uses frame numbers, while SRT files use timestamps.

If you have this problem this script can help. There are usage instructions in the comments.

Enjoy!

2 Comments

  1. Jon
    Posted December 25, 2007 at 21:57 | Permalink

    Yo yo yo wassup wassup my brudda! Just wanted to wish you a real Christmas and an even realer New Year. How’s things back in the land of greasy rice and tofu? Missin’ you guys over here, but still having a good time. Hope all is good with you.

    - Jon

  2. Kris
    Posted September 20, 2008 at 14:39 | Permalink

    Hoi Arne,
    ik had deze post nooit gezien ( nu ik directeur-af ben heb ik wat meer tijd om dingen te doen die ik al lang wou doen, zoals bvb. wat rondduinen op het web..). Ik gebruik tot enorm grote tevredenheid, gratis Subtitle Workshop. Heel flexibel en toch heel erg gebruiksvriendelijk. Check it out!

One Trackback/Pingback

  1. […] […]

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*