Log in

View Full Version : Filter to extract audio from an AVI?


gedburnell
19th September 2002, 13:10
Subject: Is there a filter to extract audio from an AVI file?

I use DV type-1 AVI files and as such if I want to use any software
which uses VFW I need to load the AVI via Avisynth.

My question is, is there a Filter (or any plans to write one?) which
can load audio along with video without having to extract the audio
into a WAV first ?

Perhaps I'm just dreaming but having to extract a Wav from an AVI first is a real pain. How do other people incorporate audio?

#I envisage it would work something like this if an audio extractor was available!

Video=DirectShowSource("Scene0001.avi",fps=25)
Audio=ExtractAudio("Scene0001.avi",fps=25)
Output=AudioDub(Video,Audio)
Return Output


Ged

frogster
23rd June 2004, 22:22
I'm looking for the same type of filter. Is there one available?

E-Male
23rd June 2004, 22:33
do neither directshowsource nor avisource load the audio?

frogster
24th June 2004, 03:36
The idea is to remove the video and only have audio. sort of the like save wav feature in vdub.

JuanC
24th June 2004, 03:50
You could convert the clip to type-2 DV (see the links thread (http://forum.doom9.org/showthread.php?s=&threadid=33519) at the DV forum and look for the ulead converter download link) and then use virtualdub to demux...

clickit
24th June 2004, 05:40
hi,

you can always use DirectShowSource filter to extract the audio stream from an AVI file

so your script became :

Video=DirectShowSource("Scene0001.avi",fps=25,audio=false)
Audio=DirectShowSource("Scene0001.avi",fps=25,video=false)
AudioDub(Video,Audio)

I think that you you can omit the

Output=...
Return Output

DarkNite
24th June 2004, 07:14
Why waste so many keystrokes?

DirectShowSource("Scene0001.avi",fps=25)

That gives you video and audio.

DirectShowSource("Scene0001.avi",video=false)

That gives you audio only.