Log in

View Full Version : Not using AVI audio


Cyberia
18th July 2003, 04:25
If I want to load an AVI using AVISource, and the AVI has audio, but I would rather use a WAVSource, can I?

What if I wanted to keep the AVI audio AND add a WAVSource?

How would I script these?

KpeX
18th July 2003, 05:34
AVISource(string filename [,...], bool "audio", string "pixel_type")

That's from the AviSynth documentation. So if you wanted to load an AVI without sound, something like

Audiodub(Avisource("myfile.avi",audio="false"),Wavsource("myfile.wav"))

should do the trick. As far as your second question, do you mean two audio tracks? I don't know of any way of scripting that with avisynth.

Cyberia
18th July 2003, 05:53
Wow I missed both of those. Thanks.

But can AudioDub accept multiple audio streams? Doesn't look like it.

Richard Berg
18th July 2003, 05:54
WRT multiple tracks, the only way to "mux" it with Avisynth would be to use additional channels (e.g. 3-4).

sh0dan
18th July 2003, 08:07
Originally posted by Cyberia
But can AudioDub accept multiple audio streams? Doesn't look like it.


Could you post more specific what you want to do?

Cyberia
18th July 2003, 16:07
Ok, let me be perfectly clear. I don't have an immediate need for this. I'm not exactly sure if there is any advantage in doing this, but it seems like a neat idea to try. I was just playing around with AviSynth and wondered if I could do something like this:

video=avisource("myavi.avi, false)
audio1=wavsource("mywav1.wav")
audio2=wavsource("mywav2.wav")
audiodub(video, audio1, audio2)


or even more exotically:

video=avisource("myavi.avi)
audio1=wavsource("mywav1.wav")
audio2=wavsource("mywav2.wav")
audiodub(video, audio1, audio2) <--potentially 3 audio tracks.


this version has the correct syntax, but would it work?

video=avisource("myavi.avi)
audio1=wavsource("mywav1.wav")
audiodub(video, audio1) <--potentially 2 audio tracks.

Ejoc
19th July 2003, 00:19
not clear.

Do you want 2 audio tracks playing at the same time, or do you want selectable tracks?

Cyberia
19th July 2003, 01:12
either.

is either possible?

Richard Berg
19th July 2003, 01:29
Using Avisynth alone, only the former is possible, and only then if you have a player that can decode 4-channel (or 6-channel, etc.) PCM audio. You'll have to use MergeChannels (http://www.avisynth.org/index.php?page=MergeChannels).