Can I get audio with AVISynth?

Locked
User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Can I get audio with AVISynth?

Post by kearlywi » Sat Apr 12, 2003 9:30 pm

granted, you normally wouldnt need source audio for an amv, but for what im doing i need it (Im putting together a clip show for class).

I used to use TMPGEnc until some1 told me that AVISynth is better for dvd2avi files (.d2v). I managed to call up my .d2v (video) file using the command:

MPEG2Source("C:\ripped dvds\TOKBAB12\Tokyo Babylon.d2v")

This command was successful. My question is: What is the command for importing source audio in notepad? Will the two work together naturally or do i have to enter in a 3rd command to "synthesize" them?

Or is AVISynth video only? (no sound)

User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Post by kearlywi » Sat Apr 12, 2003 9:48 pm

I tried:

WAVSource("C:\ripped dvds\TOKBAB12\Tokyo Babylon AC3 T01 2_0ch 192Kbps 48KHz.wav")

as my 2nd line but my comp didnt like it :x

I double checked all of that infomation is correct. Is it possible that I just simply cant run both audio and video at the same time using AVISynth? More likely, should i use a different command to import my dvd2avi audio?
or am i using the right command and just doing it wrong?

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Sat Apr 12, 2003 9:49 pm

You can do somthing like this :


video = mpeg2source("d2vfile.d2v")
audio = WAVSource("wavfile.wav")
AudioDub(video, audio)


When you use DVD2AVI it should create a WAV file, which is what you would use under WAVSource

User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Post by kearlywi » Sat Apr 12, 2003 9:59 pm

:shock:

rofl. Dammit its just not my day. This is what notepad currently says:

MPEG2Source("C:\ripped dvds\TOKBAB12\Tokyo Babylon.d2v")
WAVSource("C:\ripped dvds\TOKBAB12\Tokyo Babylon AC3 T01 2_0ch 192Kbps 48KHz.wav")

There is no 3rd line, the first is video and the second is audio. It turns out my actual .wav file was named "Tokyo Babylon AC3 T01 2_0ch 192Kbps 48KHz.wav.wav"

After fixing that i got audio to work but now my video doesnt work and I did nothing to change it (my video was just working 15 minutes ago!). Do I need to enter in a 3rd command line to make the two play simultaneously? Or do I just need to check my code again?

User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Post by kearlywi » Sat Apr 12, 2003 10:16 pm

Ok when I have the following code:

MPEG2Source("C:\ripped dvds\TOKBAB12\Tokyo Babylon.d2v")

Windows Media player plays the video file with no problems (no sound).
Similarly, when I use the following code:

WAVSource("C:\ripped dvds\TOKBAB12\Tokyo Babylon AC3 T01 2_0ch 192Kbps 48KHz.wav")

Windows Media player plays the AUDIO file with no problems. However, when I use the following code:

MPEG2Source("C:\ripped dvds\TOKBAB12\Tokyo Babylon.d2v")
WAVSource("C:\ripped dvds\TOKBAB12\Tokyo Babylon AC3 T01 2_0ch 192Kbps 48KHz.wav")


I only get audio or i just get video, (whichever comes 2nd). In order to synthesize these i probably have to load the video into premiere then somehow attach the audio somehow. How do I attach audio (whether it be a .wav song or the .wav source audio to a muted video clip in Adobe Premiere 6.0?

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Sat Apr 12, 2003 10:26 pm

klinky wrote:You can do somthing like this :


video = mpeg2source("d2vfile.d2v")
audio = WAVSource("wavfile.wav")
AudioDub(video, audio)


When you use DVD2AVI it should create a WAV file, which is what you would use under WAVSource

Did you see the AudioDub part ?

User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Post by kearlywi » Sat Apr 12, 2003 11:12 pm

klinky wrote:You can do somthing like this :


video = mpeg2source("d2vfile.d2v")
audio = WAVSource("wavfile.wav")
AudioDub(video, audio)


When you use DVD2AVI it should create a WAV file, which is what you would use under WAVSource
I'm a little confused. Should my final code look like this then?

MPEG2Source("C:\d2vfile.d2v")
WAVSource("C:\wavfile.wav")
AudioDub(("d2vfile.d2v"),("wavfile.wav"))

or like this?

MPEG2Source("C:\d2vfile.d2v")
WAVSource("C:\wavfile.wav")
AudioDub(("C:\d2vfile.d2v"),("C:\wavfile.wav"))

or like something else?

I found out how to synthesize the 2 in virtual dub by loading the soundless video and inserting the source audio as a "non-source" .wav file (the same way you would insert a song).

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Sun Apr 13, 2003 12:45 am

AVISynth is a scripting language. You can define variables and other things that can be passed on to functions(plugins, internal or external).


AudioDub is a function that requires a input video stream & a input audio stream.


You need to assign these streams to variables first.


So your AVISynth file should look exactly like the example I posted.


~klinky

User avatar
kearlywi
Joined: Sun Mar 23, 2003 2:50 pm
Location: University of Colorado, Colorado Springs (Recording Arts Major)
Org Profile

Post by kearlywi » Sun Apr 13, 2003 1:02 am

klinky wrote:

So your AVISynth file should look exactly like the example I posted.


~klinky
Ok here is what my code looks like now (verbatim):

MPEG2Source("C:\ripped dvds\COWBOY_BEBOP_V6\cowboybepop24.d2v")
WAVSource("C:\ripped dvds\COWBOY_BEBOP_V6\cowboybepop24 AC3 T02 2_0ch 192Kbps 48KHz.wav")
AudioDub(video, audio)

when i run it in a movie player or virtualdub i get the following error:

"I don't know what "video" means"

What am I doing wrong?

User avatar
klinky
Joined: Mon Jul 23, 2001 12:23 am
Location: Cookie College...
Contact:
Org Profile

Post by klinky » Sun Apr 13, 2003 1:12 am

klinky wrote: So your AVISynth file should look exactly like the example I posted.

Sir can you read?

Previous script klinky wrote: video = mpeg2source("d2vfile.d2v")
audio = WAVSource("wavfile.wav")
AudioDub(video, audio)

Locked

Return to “Video & Audio Help”