Log in

View Full Version : AviSynth Practice


AJ2
12th March 2003, 17:28
I'm a beginner at AviSynth, or even scripting in general. I was reading through the FAQs and Manuals and I'd just like to know if I'm doing this right. I also know that there's a GUI for it called AVSGenie, but it's more fun being able to figure out how to script it myself. :)

DirectShowSource("D:\Video.avi").BicubicResize([1/3,1/3]512,384)
WavSource("D:\Audio.wav")
AudioDub(video, audio)
DelayAudio(-12)

Assuming that both sources are where they should be, would this work out fine when opening it with VirtualDub?

akabob
12th March 2003, 19:07
Hi :)

You must declare video/audio

video=DirectShowSource("D:\Video.avi")
video=BicubicResize(video,512,384,1/3,1/3)
audio=WavSource("D:\Audio.wav")
clip=AudioDub(video, audio)
clip=DelayAudio(clip,-12)
return(clip)

or:

AudioDub(AVISource("D:\Video.avi").BicubicResize(512,384,1/3,1/3),WavSource("D:\Audio.wav")).DelayAudio(-12)

Try AvisynthEditor for syntax highlight and function sense.
http://forum.doom9.org/showthread.php?s=&threadid=48161

++

AJ2
12th March 2003, 20:06
Cool. Thanks for the help and the syntax program! :)