digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   VirtualDub: Script to extract WAV from .avs file (http://www.digitalfaq.com/archives/encode/12977-virtualdub-script-extract.html)

rendalunit 12-02-2004 04:03 PM

script to extract WAV from .avs file
 
I got this script to extract the .wav files from my avisynth script here:

Code:

VirtualDub.Open("movie.avs","",0);
VirtualDub.audio.SetSource(1);
VirtualDub.audio.SetMode(1);
VirtualDub.audio.SetInterleave(1,500,1,0,0);
VirtualDub.audio.SetClipMode(1,1);
VirtualDub.audio.SetConversion(0,0,0,0,0);
VirtualDub.audio.SetVolume();
VirtualDub.audio.SetCompression();
VirtualDub.audio.EnableFilterGraph(0);
VirtualDub.audio.filters.Clear();
VirtualDub.SaveWAV("movie.wav");
VirtualDub.Close();

which is executed by
Code:

virtualdub /s"config.vcf"
The problem is that I would like virtualdub to close after the job is complete so that my batch script will continue. I didn't see how to do this in the help file. Does anyone know how this can be done?

thnx,
ren

Prodater64 12-02-2004 04:24 PM

It seems that your script is not complete:
It usually begins with:
//$job

and ends with:
// $endjob

Also you can read help file and
http://virtualdub.org/docs/vdscript.txt

I think you are lossing a parameter in your command line but now i am not in home to confirm that.

Edited: I remembered, try:
virtualdub /s"config.vcf" /x

http://www.kvcd.net/forum/viewtopic.php?p=100894#100894

rendalunit 12-02-2004 04:42 PM

Quote:

Originally Posted by Prodater64
It seems that your script is not complete

I cut all that other junk out :)

I figured out what it needed to make the program close though:

The commandline needs an extra switch -
/x :lol: :lol:
so it looks like this:
Code:

virtualdub /s"config.vcf" /x

edit: I just saw your edit- that worked :D thnx Prodater64 ;)

incredible 12-02-2004 06:42 PM

Try the commandline mode from "makeavis.exe" as it seems to be much more comfortable:

http://ffdshow.sourceforge.net/tikiw...?page=makeAVIS

Its possible to save an uncompressed PCM Wav out of an avs file.


All times are GMT -5. The time now is 06:25 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.