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: 3.7/5 (51 votes)
Bookmark and Share
[del.icio.us] [Digg] [Facebook] [Furl] [Google] [MySpace] [Spurl] [Squidoo] [StumbleUpon] [Technorati] [Yahoo!] [Email]
18 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?

Post Your Comment: (English Only Please)


(Required)


(Optional, will not be shown)


(Including http:// - Optional)



Type the sum of 5 + 3 (Required)

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