TutorialsRoom.com, Where knowledge lands
RSS Feed

Subscribe: RSS or e-mail

Home » Multimedia » Video Basics »

How to Adjust Audio/Video Sync In An AVI File Using VirtualDub

bitmap_vector (1K)
Sometimes Audio/Video sync problems happen due to errors in capturing the video file. Here is how to fix it.
  1. Open your video file in VirtualDub by dragging and dropping the file on the program.
  2. Click on Audio -> Interleaving or press (Ctrl + I) on your keyboard.
  3. Now in Audio skew correction text box type a value in millisecond (1000 ms = 1 second) following the instructions: Use positive values if audio is playing too early or negative values if the opposite is true.
    vdubremovecom03 (42K)
  4. Click Ok and don't forget to Click Video -> Direct stream copy and Audio -> Direct stream copy because we do not want re-encoding here.
  5. Click File -> Save as AVI or press F7 on your keyboard and save the file.
Rating: 4.0/5 (126 votes)
39 Comments
Post A Comment
Dude Said,
Thu, 22 January 2009 14:57pm (GMT)

Thanks for the info! Very helpful!

redemption Said,
Thu, 22 January 2009 21:44pm (GMT)

cant get that info to work my audio is still miles ahead of video

jd Said,
Fri, 23 January 2009 18:14pm (GMT)

What is the differenct between doing this and re-encoding? Would re-encoding be a more proper way of doing it? If so how would I go about re-encoding? Thanks jd

TutorialsRoom Said,
Fri, 23 January 2009 20:36pm (GMT)

Re-encoding means less quality and more time. Here you don't need re-encoding because you do not need to write either the audio nor the video stream, it's more like re-aligning the two streams.

jd Said,
Fri, 23 January 2009 23:20pm (GMT)

thanks for the quick reply and excellent tutorial.

jd Said,
Wed, 04 February 2009 02:51am (GMT)

This has been extremely helpful, I've got a couple though that are out of sync but they get progressively worse. Any pointers on how to straighten that out?

Wed, 04 February 2009 07:32am (GMT)

Trial and error, sometimes it's not very easy to adjust the sync in one shot.

Polybore Said,
Mon, 09 February 2009 01:04am (GMT)

You have missed out the step before this where you find out what the delay is. http://polybore.blogspot.com/2008/05/avi-file-sound-out-of-sync-with-video.html Includes video tutorial.

NZguy Said,
Fri, 06 March 2009 01:51am (GMT)

Thanks for the help. I also used the link Polybore gave, but had a more complicated audio drift (worse as time goes on). Solution: 1. use virtualdub to save the audio and video separately. 2. use 'super' to convert the audio from mp3 to wav. 3. use "Wavefile Length Adjust" to stretch the audio to the same length as the video (virtualdub tells you both durations and you give them as a ratio to WLA.) 4. use 'super' to convert the wav back to mp3. 5. use "AVI-Mux" to put the video back together!

dave Said,
Wed, 08 July 2009 06:43am (GMT)

Thanks for this and especially for Polybore's tutorial for determining the exact value for the delay. Saved me tons of grief!

Andygawg Said,
Tue, 14 July 2009 17:07pm (GMT)

Thanks, worked perfectly first time. I found out the video delay (1sec 109ms) with the free "MediaInfo" program, then used your tutorial. Perfect sync first time! Thanks again.

jdub Said,
Tue, 21 July 2009 04:31am (GMT)

hello, Im trying to sync audio to a video, but the audio i am using is about 5 minutes longer than the video, so what do i do?

Staplez Said,
Thu, 01 October 2009 11:37am (GMT)

Hey mine was of by (15100 MS) hope that helps it was an error with my spliting program though and i lost the first bit of sound vertual dub has all the glory

James Said,
Fri, 01 January 2010 09:47am (GMT)

Thanks for the great tutorial. Very useful. I followed the steps and it worked perfectly.

pgp566 Said,
Sat, 09 January 2010 18:00pm (GMT)

Very good tutorial! I am digitising a batch of Hi8 Camcorder tapes and have bad out of synch A/V. I like the power of VirtuaDub but I don't understand why I never get out of synch A/V using Ulead VideoStudio but invariably get it with VirtualDub. Can someone please help with a question? The tutorial suggests that both Video and Audio must be set to Direct stream mode. But that disables processing, and with these videos I definitely need to use the de-interlace filter, which of course needs processing mode. Do I run one pass using Direct stream to re-synch the audio, and then another pass in Proessing mode to use the de-interlace filter? Or is there a better way to do it? Many thanks.

pavan Said,
Sun, 17 January 2010 15:38pm (GMT)

really helpful.........

marjorie Said,
Thu, 28 January 2010 01:22am (GMT)

ohh my gosh, thank you soo much for posting this i have tried this and it works.I had a video that i had to put off because the audio and the video were out of sync. Now i have learned something new.

leonm54 Said,
Fri, 19 February 2010 19:03pm (GMT)

OK, I have a video capture where the audio goes out of sync in the middle after an encoding error. Can this be fixed? I don't want to save it until I am sure that the A/V is in sync after that point. again, can that be done?

JoeB Said,
Sun, 04 April 2010 18:02pm (GMT)

@leonm54, If your audio is in sync for part of the movie, then goes out of sync for the remainder (and the out of sync is constant), then use VirtualDub to first divide the video into two parts, saving the first part as one file and the out of sync part as another. The open the out of sync part in VDub and adjust the sync and save it again. Then open the first part, use the Append option, and add the now-synced second part to join them up again. You'll want to make sure that Direct Stream Copy is selected for both Audio and Video.

Alex Said,
Sun, 02 May 2010 21:16pm (GMT)

What about when the audio is going faster or slower then the video? Someone offered a PREPOSTEROUS solution of removing the audio from the video. changing the speed that way, then putting it back in. (Oh yah that will only make trial and error take 300 years). Virtual dub can change the freq of the audio right?

Neil Said,
Fri, 30 July 2010 08:11am (GMT)

finally,, somebody who knows what he's talkin about... thanks man!!

angelo Said,
Fri, 20 August 2010 12:46pm (GMT)

Thank you very much. it works really good.

brumble Said,
Sat, 27 November 2010 17:18pm (GMT)

Great, it worked for me. I'm converting some programs recorded from terrestrial digital (DVB-T, MPEG-2) into DivX video and MP3 audio. Correct value I've computed is -550ms.

li Said,
Sat, 01 January 2011 10:31am (GMT)

No good: I have an AVI movie in which audio is approx 7 sec ahead of the video and when I tried the VirtualDub I got an error that it COULD NOT FIND A DECOMPRESSOR FOR FORMAT XVID. But this is just an ordinary AVI file.

TutorialsRoom Said,
Mon, 03 January 2011 10:29am (GMT)

@li: Nothing is called ordinary AVI file, Avi is a container format for a codec which is XVID in your case

Ivan Said,
Mon, 07 February 2011 03:19am (GMT)

How do you find out the EXACT ms delay? I did read you could use a program called GSPOT. But having done that, could anyone tell me where in the program it tells you the exact delay between the audio and video?

TutorialsRoom Said,
Sun, 13 February 2011 11:19am (GMT)

@Ivan: I do not think there is a program can tell you that, just use your stop watch and trial and error to get as good results as possible.

Aejaz Mirza Said,
Fri, 11 March 2011 06:40am (GMT)

Thanks a lot. It worked.

houty Said,
Wed, 20 April 2011 06:00am (GMT)

very helpful, man!

Marc O Polo Said,
Fri, 29 April 2011 11:25am (GMT)

This didnt work for me! first of all: The delay rate suggested by VirtualDub and by MediaInfo is wrong. Its almost three times the rate. If I type it in it the way you show here it works only for the first few second. Then the audio is out of sync again. Whats going on?

sr82 Said,
Fri, 29 April 2011 12:53pm (GMT)

Ok, my problem is that half way through the movie the audio goes out by 800ms,first half is fine but 2nd half out of sync to the end of the movie, how do i split and adjust the audio where needed using vdub? thanx in advance for any help.

Vxxxen Said,
Fri, 29 April 2011 17:36pm (GMT)

THANK YOU VERY MUCH KIND SIR!! Very helpful indeed.

TutorialsRoom Said,
Tue, 03 May 2011 08:52am (GMT)

Sometimes the delay is not fixed for the whole length of the movie, in this case I usually split the movie using Direct Stream Copy for audio and video, apply the audio/video sync and then join it again.

Richard Said,
Sun, 28 August 2011 16:15pm (GMT)

Im having problems playing the audio back on Ps3 it sync s fine but cant hear anything

TutorialsRoom Said,
Mon, 29 August 2011 05:54am (GMT)

@Richard,Pleas make sure you have done step (4) "Video -> Direct stream copy and Audio -> Direct stream copy" this should make sure you don't change the encoding so if the original file plays fine, the modified one should too.

JBrd Said,
Thu, 10 November 2011 16:28pm (GMT)

Thanks for info,Works great.

Bex Said,
Mon, 16 January 2012 03:40am (GMT)

Thank you so much, this worked with my MKV file. I spent nearly 5 hours encoding it using Divx, to later find out it was out of sync. I was really hoping I wouldn't have to re-encode, and this fixed the problem. I had to spit the clips tho, then rejoin them using another software. But faster than re-encoding. Thanks!

c.ovis Said,
Sat, 21 January 2012 17:59pm (GMT)

Excellent tutorial, you're the man!!!!!

alex Said,
Mon, 30 January 2012 01:27am (GMT)

thanks man, really thanks :D

Post Your Comment: (English Only Please)


(Required)


(Optional, will not be shown)


(Including http:// - Optional)



Type the sum of 5 + 3 (Required)

Copyright © 2007-2012 Hazem Osman. All rights reserved. Terms & Conditions