VirtualDubMod Audio Help

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Wind Dragon
Joined: Sun Feb 20, 2005 7:23 pm
Org Profile

VirtualDubMod Audio Help

Post by Wind Dragon » Sat Apr 07, 2007 12:10 pm

How do I get VirtualDub to include audio when converting to .avi? I used avisynth to decode my audio to wav, and it works as a separate file. I know hardly anything about using script in virtualdub, but I tried adding a wavsource("file path") line and it still doesn't work. Can anyone help?

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: VirtualDubMod Audio Help

Post by Scintilla » Sat Apr 07, 2007 1:23 pm

Wind Dragon wrote:How do I get VirtualDub to include audio when converting to .avi? I used avisynth to decode my audio to wav, and it works as a separate file. I know hardly anything about using script in virtualdub, but I tried adding a wavsource("file path") line and it still doesn't work. Can anyone help?
You don't have to add the audio using AVISynth; you can also add it separately under the Audio menu (or Streams menu --> Streams list, if you're using VirtualDubMod 1.5.x.x+).

But normally what I do is something like this:

Code: Select all

AVISource("C:\mypath\myvideo_noaudio.avi")
# Lots of postprocessing filters go here
AudioDub(last, WAVSource("C:\mypath\myaudio.wav")
The AudioDub function combines the video from the first argument with the audio from the second. Using the keyword last as the first argument tells AVISynth to take the video from whatever was the result of the previous line of the script -- in this case, my filtered video.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Sat Apr 07, 2007 1:23 pm

... and of course, that AudioDub line should have an extra closing parenthesis on the end of it.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

Locked

Return to “AviSynth Help”