Tuesday, November 8, 2011

Another AviSynth success story: DelayAudio

So I have this rule about capturing video for only a few seconds before I really want to capture something. I found out the hard way that if the hard drive's still warming up, the audio will be out of sync in the raw video (too early).

I didn't follow my own rule for some reason and this happened again, but AviSynth saved the day. First, I looked for a point in the video where I would be able to listen to audio cues -- in this case, moving the cursor in  a menu. Using my new best friend in VirtualDub (Audio Display), I determined that the audio was early and wrote down the time (0:03:05.051). The point in the video where this would've been shown was at 0:03:08:254, so it was a time difference of 3.203 seconds.

All I had to put in my script was this line (before using Trim) and I could edit normally:

DelayAudio(3.203)