keepcalculator

06 Numbers and Powers

VLC Sync Subtitles: How to Fix Audio & Sub Delay

Card No. 06·38127 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

VLC media player lets you sync subtitles to your video by adjusting the subtitle track’s delay, and you can do it in seconds using keyboard shortcuts or the menu. Press H to make subtitles appear earlier or J to delay them, and the change applies immediately. For finer control, open Tools → Track Synchronization and enter a precise offset in milliseconds.

Why Subtitles Drift Out of Sync

Subtitle files (like .srt or .ass) contain timestamps that tell the player when to show each line. If those timestamps don’t match the video’s audio or scene changes, you see text too early or too late. Common causes include:

  • The video file was re-encoded and frames were added or removed.
  • The subtitle file was made for a different cut of the movie (e.g., extended edition vs. theatrical).
  • The audio track has a delay (common with external audio or live broadcasts).
  • The container file (like .mkv) has an embedded subtitle track with its own offset.

VLC’s sync tools let you correct all of these without re-encoding the video or editing the subtitle file.

Keyboard Shortcuts for Instant Sync

The fastest way to fix a small drift is with the keyboard:

  • H – speeds up subtitles (makes them appear earlier).
  • J – slows down subtitles (makes them appear later).
  • G – speeds up audio (if audio is lagging).
  • F – slows down audio.

Each press of H or J shifts the subtitle track by 50 milliseconds by default. Hold the key down to repeat the shift. If the subtitles are ahead of the audio, press H a few times; if they’re behind, press J. This method is ideal for real-time adjustments while watching.

Using the Track Synchronization Menu

For precise, one-time adjustments, use the menu:

  1. Open the video in VLC.
  2. Go to Tools → Track Synchronization (or press Ctrl+J on Windows/Linux, Cmd+J on macOS).
  3. In the “Subtitles/Video” section, find the field labeled Subtitle track synchronization.
  4. Enter a value in milliseconds. Positive values delay the subtitles (they appear later); negative values speed them up (they appear earlier).
  5. Click Close – the change applies immediately.

If the audio is also out of sync, adjust the “Audio track synchronization” field in the same window. The values are in milliseconds, so 1000 ms = 1 second.

How to Calculate the Right Offset

To find the correct offset, you need to know how far off the subtitles are. Here’s a simple method:

  1. Pause the video at a moment when a character speaks clearly.
  2. Note the time displayed on the video player (e.g., 12:34).
  3. Read the subtitle line that should appear at that moment. Check its timestamp in the subtitle file (open it in a text editor).
  4. Subtract the subtitle timestamp from the video time. If the subtitle timestamp is earlier than the video time, the subtitle is early; you need a positive offset (delay). If it’s later, you need a negative offset (speed up).

For example, video time is 12:34 (754 seconds), subtitle timestamp is 12:33 (753 seconds). Difference = 1 second = 1000 ms. Since the subtitle is early, enter +1000 ms in the sync field.

Permanent Fixes vs. Temporary Sync

The methods above only affect the current playback session. If you close VLC and reopen the file, the sync is lost. To make the correction permanent, you have two options:

  • Edit the subtitle file – use a free tool like Subtitle Edit or Aegisub to shift all timestamps by a fixed amount, then save the file. This is the best choice if you watch the same video multiple times.
  • Remux the video – use a tool like MKVToolNix to mux the corrected subtitle file into the video container. This doesn’t re-encode the video, so quality is preserved.

For a one-time watch, the temporary sync is fine. For a permanent library, editing the subtitle file is more reliable.

Common Problems and Solutions

Sometimes the sync doesn’t work as expected. Here are typical issues and fixes:

  • Subtitles are still out of sync after pressing H/J – the drift may be variable (not constant). This happens when the video frame rate differs from the subtitle frame rate. You may need to adjust the subtitle file’s frame rate in a subtitle editor.
  • Audio sync is off, not subtitles – use the audio sync fields in the same menu. If audio is ahead, enter a negative value; if behind, positive.
  • Changes don’t stick after reopening – as noted, temporary sync is session-only. Use a subtitle editor for permanent changes.
  • Subtitles are fine in one player but not VLC – other players may apply their own default delays. Check if the subtitle file has a “Delay” field in its header (some formats do).
  • Keyboard shortcuts don’t work – ensure the video window is focused, not the playlist or menu. On macOS, you may need to use the menu instead.

Frequently Asked Questions

How do I sync subtitles in VLC with keyboard?

Press H to make subtitles appear earlier (speed up) and J to make them appear later (delay). Each press shifts by 50 ms. Hold to repeat.

What is the difference between subtitle delay and audio delay?

Subtitle delay shifts the subtitle timestamps relative to the video. Audio delay shifts the audio track relative to the video. If the audio is out of sync, the subtitles will appear out of sync even if their timestamps are correct, because the audio is what you compare against.

Can I save the subtitle sync adjustment in VLC?

No, VLC does not save per-file sync adjustments. You need to edit the subtitle file or remux the video with the corrected timestamps.

Why are subtitles out of sync only in the middle of the movie?

This usually indicates a frame rate mismatch. The subtitle file was created for a video with a different frames per second (fps). You can fix it in a subtitle editor by changing the frame rate of the subtitle track.

Does VLC support subtitle files with multiple audio tracks?

Yes, VLC can sync each audio track independently. Use the Track Synchronization menu and select the audio track you want to adjust.

How do I permanently fix subtitle sync without re-encoding?

Use a subtitle editor (like Subtitle Edit) to shift all timestamps by the required offset, then save the file. Alternatively, remux the video with MKVToolNix, which packs the corrected subtitle file into the container without re-encoding video or audio.

Related

Formula used

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →