PDA

View Full Version : Extracting audio stream with scripting


InuyashaSama
26th October 2006, 21:29
Is it possible to create a vcf script just to extract the audio stream as an uncompressed WAV file?

Matthew
28th October 2006, 02:09
VirtualDub.Open("C:/video.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0);
VirtualDub.SaveWAV("C:/audio.wav");

With VirtualDubMod that will dump the first audio audio without any processing and with a wav header...it's appropriate only if the audio is already uncompressed.

InuyashaSama
28th October 2006, 07:22
Well it's a start... I guess that could be used to extract from whatever format and then convert the file to PCM WAV with BeSweet, which is a command line tool after all.