subtitles

Fixing Subtitles in VLC

Submitted by tomo on May 3, 2012 - 12:21am

I don't want to forget this.

If you're ever watching a movie in VLC and you have downloaded a subtitle file which can be an .srt (the file extension for SubRip subtitle files) or .ass (whoever came up with that file extension) and the timing is off, you can fix it! One way is to modify the actual subtitle file which is plaintext. However, to fix timing offsets this way would require lots of changes since each subtitle line is an absolute offset from the beginning of the movie, rather than as an offset from the last line. This means you can't just fix the first line and have the changes cascaded.

There are some sites which purport to fix time offsets in subtitle files. They seem to all be down. But this is only really necessary if you want to reuse the file or share it again.

If you just want to watch the movie and have the subtitles be in sync for the one time you watch the move, with VLC player, it's easy although it might not be documented well. By default, there should be hotkeys assigned to change the time difference between the video and subtitles. You can change the delay both ways by making it positive or negative. By default the hotkeys should be control-h and control-j which change the offset by 50 ms each time and you should see the total offset appear briefly.

If those hotkeys don't work and you also can't seem to modify the hotkeys (this affected me) then you can edit the VLC config file directly. On OSX, it's installed at ~/Library/Preferences/org.videolan.vlc/vlcrc.

Open up the file and look for:

# Subtitle delay up (key)
key-subdelay-up=j
# Subtitle delay up (key)
#global-key-subdelay-up=Unset
# Subtitle delay down (key)
key-subdelay-down=h
# Subtitle delay down (key)
#global-key-subdelay-down=Unset

Set accordingly, save, and you're done.

Syndicate content
© 2010-2014 Saigonist.