Re-synch subtitles using MPlayer

It is not that unusual that subtitles downloaded from the Internet are not properly synched to the video signal. In those cases, one can use MPlayer to delay (or advance) the subtitles by a certain amount of seconds and, once the correct delay timing has been found, dump a new subtitle file with the timing properly adjusted.

For example, if one has to delay the subtitles by 10 minutes in order to have them synched to the video signal, the following MPlayer command can be used to dump a dumpsub.srt file with subtitles delayed by 10 minutes:

mplayer video.m2ts -subdelay -600 -dumpsrtsub

MPlayer will dump the subtitles to a file called dumpsub.srt. Each subtitle entry will have its time delayed by 10 minutes. Using the newly-generated subtitle file means there is no need to play the video using the -subdelay command-line flag anymore.

A positive value to the -subdelay command-line flag can also be specified. Subtitles will be brought forward (advanced) instead of being delayed.

Advertisements

2 thoughts on “Re-synch subtitles using MPlayer

  1. Another 1 bites the dust , or at minimum another web log post stings the dust. Your weblog rocks my article network hold up the terrifying causes.

  2. Mmm…it depends. Roasting the strawberry flavor is always disgusting >.< but nah, regular marshmallows taste fine over propane unless you're REALLY picky. it DOES taste weird when you roast cheetos over a fire, though.

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