Log in

View Full Version : AviSynth Audio


darrenbluck
3rd August 2012, 15:05
Hi All,

I have, I hope a simple question! I'm very new to AviSynth.

I have created a small video with 7 clips, the original is a AVS but I have a number of Avi files also, so I have 1 avs and 7 avi files, I have recorded some voice commentary but cannot get it running in Avisynth, I have tried the code below but what will I put in the ?????? as I have a number of avs and avi files.

SoundTrack=WAVSource("..\Sound\Commentary.wav")
VideoAndSound=AudioDub(?????, SoundTrack)
VideoAndSound

I have tried Clip1.avs which is what the main video file is called but got an error say Avisynth does know what Clip1 is.

Any help would be much appreciated.

poisondeathray
3rd August 2012, 15:15
Use Import() for .avs files. I'm assuming Clip1.avs works to load the 7 avi files properly ?

Vid=Import("Clip1.avs")
SoundTrack=WAVSource("..\Sound\Commentary.wav")
VideoAndSound=AudioDub(Vid, SoundTrack)
VideoAndSound

darrenbluck
3rd August 2012, 16:18
Hi,

This has worked because the video runs with no error but I cannot hear sounds, Strange!

darrenbluck
3rd August 2012, 16:21
If I run the WAV file on it's own I can hear the sound perfectly

kypec
3rd August 2012, 16:26
Your final statement in AVS script must return the clip, try to change your script like this:
Vid=Import("Clip1.avs")
SoundTrack=WAVSource("..\Sound\Commentary.wav")
AudioDub(Vid, SoundTrack)

Look here (http://avisynth.org/mediawiki/AudioDub) to understand better how it works.