View Full Version : Adding '.Wav' Audio file to Video in AvsPMod??
BlockABoots
25th November 2015, 22:20
I have a .wav file i want to add to a video file, the script i have is....
audio=WAVSource("C:\Pro Capture HDMI\SDK\Bin\x64\Release\XID_MultiAudioCapture.wav")
video1=AVISource("E:\Video Captures\amarec(20151125-2111)#001.avi")
video2=DelayAudio(video1,-1.200)
return video2
but when i got to encode it in RipBot, its saying there is no audio, what am i doing wrong please?
Reel.Deel
25th November 2015, 22:26
use AudioDub(video, audio) (http://avisynth.nl/index.php/AudioDub).
Floatingshed
26th November 2015, 15:40
audio=WAVSource("C:\Pro Capture HDMI\SDK\Bin\x64\Release\XID_MultiAudioCapture.wav")
video1=AVISource("E:\Video Captures\amarec(20151125-2111)#001.avi")
Audiodub(video1,audio)
DelayAudio(-1.200)
Surely?
BlockABoots
26th November 2015, 19:04
thanks that worked
BlockABoots
29th November 2015, 22:51
How do i go about trimming video and audio files together, i know how to when you just have 1 capture file that had both audio and video, for example...
video=AVISource(e:\Video Captures\capturevideo1.avi
video1=trim(video,200,5000)
return video1
but how do you do the same as above when you have a source for video and then another for audio, ie....
video=AVISource(e:\Video Captures\capturevideo1.avi
audio=WAVSource(e:\Audio Captures\captureaudio1.wav
so it trims the audio and video in the same places so they match up?
sneaker_ger
29th November 2015, 22:56
combined=AudioDub(video, audio)
combined=trim(combined, 200, 5000)
BlockABoots
29th November 2015, 23:07
Thanks, that worked!!
Floatingshed
29th November 2015, 23:09
video=AVISource(e:\Video Captures\capturevideo1.avi
audio=WAVSource(e:\Audio Captures\captureaudio1.wav
Audiodub(video,audio)
Trim(3816,19279)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.