Quantcast VirtualDub: Script to Extract WAV from .AVS File - digitalFAQ.com Forums [Archives]
  #1  
12-02-2004, 04:03 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
12-02-2004, 04:24 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
12-02-2004, 04:42 PM
rendalunit rendalunit is offline
Free Member
 
Join Date: Apr 2002
Location: san jose, Ca
Posts: 1,148
Thanks: 0
Thanked 0 Times in 0 Posts
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
so it looks like this:
Code:
virtualdub /s"config.vcf" /x

edit: I just saw your edit- that worked thnx Prodater64
Reply With Quote
  #4  
12-02-2004, 06:42 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
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.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualDub: Impossible to extract the sound from a film lemo Video Encoding and Conversion 1 10-18-2004 04:33 PM
VirtualDub: Editing an mpg file with virtualdub? shgr Video Encoding and Conversion 1 09-14-2004 12:17 AM
VirtualDub: Help with simple virtualdub Mod script? Mental Video Encoding and Conversion 14 09-06-2004 04:38 PM
VirtualDub: Cannot extract audio from *.avi with virtualdub PhSLICER Video Encoding and Conversion 4 09-15-2003 12:48 AM
DVD2SVCD: How does DVD2SVD extract ac3 file? Yoda Video Encoding and Conversion 9 01-24-2003 10:31 PM

Thread Tools



 
All times are GMT -5. The time now is 03:01 PM  —  vBulletin © Jelsoft Enterprises Ltd