Roginator
24th November 2003, 01:24
I'm trying to figure out how to duplicate the functionality of VirtualDub where it comes to audio delay. Using VirtualDubMod and TMPGEnc, I seem to be able to achieve sync. But I want to do this without using VirtualDubMod to do the frameserving -- just straight from Avisynth 2.5 to TMPGEnc. Here's the script I THOUGHT would work. Do I have something out of order? (I used Besweet to convert the AC3 to a WAV with a delay of -455ms.)
LoadPlugin("C:\program files\avisynth 2.5\plugins\MPEG2DEC3.dll")
LoadPlugin("C:\program files\avisynth 2.5\plugins\decomb510.dll")
a=MPEG2Source("f:\afghan.d2v",idct=5)
b=wavsource("f:\afghan.wav")
audiodub(a,b)
assumefps(29.97,sync_audio=true)
delayaudio(-0.455)
fielddeinterlace()
trim(14476,113526)
ConvertToYUY2()
reduceby2()
cropbottom(8)
I'm using this script without the delayaudio line to get good results when frameserved from VirtualDubMod to TMPGEnc. (I used DVD2AVI2 to get the D2V and AC3 files.) Also note: this capture had several dropouts.
LoadPlugin("C:\program files\avisynth 2.5\plugins\MPEG2DEC3.dll")
LoadPlugin("C:\program files\avisynth 2.5\plugins\decomb510.dll")
a=MPEG2Source("f:\afghan.d2v",idct=5)
b=wavsource("f:\afghan.wav")
audiodub(a,b)
assumefps(29.97,sync_audio=true)
delayaudio(-0.455)
fielddeinterlace()
trim(14476,113526)
ConvertToYUY2()
reduceby2()
cropbottom(8)
I'm using this script without the delayaudio line to get good results when frameserved from VirtualDubMod to TMPGEnc. (I used DVD2AVI2 to get the D2V and AC3 files.) Also note: this capture had several dropouts.