PDA

View Full Version : Is DelayAudio function working on avs 2.5x?


Valky
11th April 2003, 23:48
Hello!

Well This is the first time I am trying to do this through Avisynth cause I can't encode now with Autodub.
I have captured a movie from TV and trying to encode it to RealMedia.
I also know that the right delay value is -250ms.
So what's wrong with my script now, cause the DelayAudio function doesn't do anything no matter what values I do?

#SOURCE:
video=AviSource("E:\capture\capture2.avi", false)
audio = wavsource("E:\capture\capture.wav")
video=audiodub(video,audio)

video=ConvertToYV12(video)
audio=delayaudio(audio,-0.25)

video=trim(video,4000,5000)
#video=Levels(video,0, 1.2, 255, 0, 255)
#video=TemporalSoften(video,3,4,4,mode=2,scenechange=10)

video=AutoCrop(video,0,wMultOf=4, hMultOf=4)

#video=crop(video,4,2,380,568)
video=bicubicresize(video,384,288,0,0.6)
Video=deen(video,"a3d",3,6,1,6)
Video=unfilter(Video,-5,-5)

return(video)


Is this suppose to work? or have I misunderstood something..over 2 hours capture could be apain in the ass if I have to adjust and save wav again in VD and it takes lot of time too.

WarpEnterprises
12th April 2003, 00:01
video=AviSource("E:\capture\capture2.avi", false)
audio = wavsource("E:\capture\capture.wav")
video=audiodub(video,audio) #here video has got audio+video

video=ConvertToYV12(video)
audio=delayaudio(audio,-0.25) #here you delay the original audio clip which isn't used later anymore


instead try:

video=delayaudio(video,-0.25)


Btw AFAIK you can't delay a clip with only audio because a clip is referenced against the frame counter which has no meaning in an audio-only clip.