Sunday, November 19, 2006

How To: Adjust subtrack delay in VLC media player

VLC (VideoLAN Client) media player is the best media player available. Although the default skin (GUI) is not so great, sparing that no other media player is even close to the number of features that VLC provides. Especially when it comes to dealing with corrupt files and any kind of discrepancies with VLC they could be sorted out in a jiffy.

Ever had a media file whose audio and video are desynchronized and didn't know what to do, well one option would be to open the media file in VLC and set 'Audio desynchronization compensation' in ' Settings -> preferences.. -> Audio '. Do check the 'Advanced Options' to list this feature. Play around with various numbers in this field to set optimal synchronization for that file.

Of the many other invaluable features of VLC, adjusting subtitles track delay is a great one. Since many of '.srt'(subtitles) files rely primarily upon the time it is not so uncommon that many a times either the video is lagging the subtitles are vice versa.

One way to rectify is to modify the entire '.srt' file time fields to be synchronized with the video. For example if you find a 10 second delay between the subtitles and the video, add every 'time' field in the '.srt' file 10 seconds. This is not a practical option as a 90 minute video usually has around 2000 entries relating to the timing of a particular subtitle.

The best way to solve this problem is to use VLC. I had to do a little research on this feature because there is no apparent field in the 'settings -> preferences..' box to set the value of the amount of delay.

In VLC, subtitle track delay is adjusted when the video is in progress. The only way i found so far is to use 'HOTKEYS' (which can be configured in ' Settings -> preferences.. -> Interface -> Hotkey Settings [do remeber to check 'Advanced options']).

While the video is in progress use the key combination 'ctrl + j' to decrease the delay of subtitles and use 'ctrl + h' to increase the delay. For every keystroke a 50 millisecond delay is added (or subtracted accordingly).

These are the default key combinations in VLC 0.8.4 (windows version). you can always configure these keys to suit your needs using the HOTKEY configuration menu provided above.

If you are not using VLC already grab one from here

VLC rox !
________________________
Life is Beautiful !

41 comments:

Anonymous said...

Was struggling with this delay thing for a long time. Thanks for the tip.

Anonymous said...

VLC seems to work when all else fails. This was the one feature I couldn't figure out. A great post and a big help! Thanks!

Anonymous said...

Yep. That´s it. Great!

Unknown said...

amazing what a 5 second difference can make :) muchas gracias

Anonymous said...

Thank you very very much for this tip!!!

Anonymous said...

Thank you 100x! This helped us very much!

Anonymous said...

thanks!!! finaly i found were to add delays :D

Anonymous said...

anybody know how to do this with VLC for Mac OSX??
thanks

Anonymous said...

On the mac .. the letter j and h perform the same function, no need for CTRL key. To change it go preferences, interface, hotkey settings and check the advanced box to see the hotkeys

Anonymous said...

Thank's for the Good one. Nice explaination.keep it up..

Anonymous said...

Superstar!!! I downloaded a whole heap of other softwares thinking my VLC player can't delay the sub's - and now you saved me a whole fuss! Time to uninstall all that other crap again! Thanx for the great information!

Anonymous said...

Hi! Great post, very useful.
Just wanted to add that in linux the CTRL+j and CTRL+h works exactly as in Windows. Another reason to switch, right? ;-)
Thanks a lot!

Anonymous said...

Thank you so much! I used to have to search through SO many subtitle files before i got one that actually matched haha. Really appreciate this :)

Anonymous said...

thanks a lot .. I faced problem this like any thing.. serioulsy a great job

Anonymous said...

thank you so much. you just saved me a lot of time and trouble. i knew vlc had to have this option. it has everything!

Anonymous said...

Brilliant solution. Not even the Vlan Wiki has this information

Anonymous said...

awesome thanks for the tip!!! now my subs are in sync. yey :)

Anonymous said...

i can sync the subs now but i have to sinc every 5 sec to keep them good :-s

Anonymous said...

open a subtitles file, use the Advanced Open dialog box (Menu File, Open file). Select your file by clicking on the Browse button. Then, check the Subtitle options checkbox and click on the Settings button.


Select a subtitles file under Windows or Linux

You can then select the subtitles file by clicking the Browse button. You can also set a few options like character encoding, alignment and size. The delay option allows you to delay the subtitles against the video if they are not in sync. If they are not at the same speed, you might also want to adjust the subtitles framerate.


www.videolan.org/doc/play-howto/en/ch03.html

NewWrldYankee said...

For some reason, no matter how many times i forward the time delay using ctrl-h, it never seems to match up. Do I have to do it then, pause and play, or should automatically adjust?

Anonymous said...

Thx dude..i have stuck for this delay for 8 hours...finally i know the way..thx to u

Ridge said...

thanks a ton mate! great help.
VLC is the BESTest ;)!!!

The default key combo in .9 and onwards is just h and g. No ctrl is required

Anonymous said...

THANKS A LOT MAN....NOW I CAN VIEW SUBS WITHOUT ANY DELAY....IT IS GREAT TO SEE VLC BUNDLING ALL THINGS INTO ONE PACKAGE

Anonymous said...

many thanks commander!

Jishad said...

Thats really great info. Thanks

Anonymous said...

First link I hit too :)!
thx

Sinnuu... said...

thank you so much for the tip....it was really helpful....

Reem said...

You wrote this 2 and a half years ago and somehow it's still really helpful. Thanks a bunch. This works perfectly.
Cheers!

nataraj said...

A great trip really..i tried hard to get the subtitles match with the video, in many different ways but this is the easiest in my view..thanks for this tip :)

Poornima said...

Finally I can watch this film I've been meaning to for so long!

Great help :D

Divya said...

Thanks a lot.I really love this.It is so so helpful.Lots of thanks. Hugs and Kisses.

இரவி சங்கர் said...

Great Solution Mate!

Thank you very much! Struggling for a long time.

Thanks once again.

Anonymous said...

Outstanding work!
Thank you for sharing the information. I had problems with this for a while, but now it all makes sense. VLC comes through once again. Cheers

h s said...

well done Navin! impressive stuff

Anonymous said...

finally i got the solution. iknew that only in BSP player
thanks a lot.
What about different framerate?
continuous adjusting or another option???

Anonymous said...

This has just made my life. I was on the verge of punching my mac trying to find subtitles for Oldboy

Anonymous said...

thanks it's really help full

Anonymous said...

thanks ...explained in a simple manner i read just the first 3 lines..just setiings are now there in tools menu

Anonymous said...

I just updated to vls 1.1.11, in the older version 0.8.4 if you click "advance open" in the the file menu, the resulting dialogue box had a option for selecting subtitle file.
clicking this option further opened a dialogue box which had subtitlew delay and other related settings.
I am at the moment trying to find these setting in the current version

Anonymous said...

Tools>Track synchronization
Quick: Press
Alt t t

VLC 2.0.2 Twoflower (Windows XP)

Imo, the quickest way to correct the time on subtitles, little things are more annoying than unsynchronized subtitles!

Kavitha Rani said...

List of VLC player Shortcut Keys http://allinworld99.blogspot.com/2014/08/vlc-player-shortcuts.html