Comments

lnetzel wrote on 7/19/2003, 7:47 AM
I just checked out the Object Tree in the Scripting Host DLL and there's nothing in there that looks like anything close to capture. I'd say it's probably not supported!

/Lars
SonyPJM wrote on 7/21/2003, 2:00 PM
VidCap and audio capture in Vegas are not currently scriptable. However, VidCap can be "scripted" via command-line arguments... if that will work for you, I can post full details.
jetdv wrote on 7/21/2003, 2:37 PM
Sounds interesting. I'd like to see it.
SonyPJM wrote on 7/21/2003, 4:26 PM
Here's a summary of some of the VidCap command-line arguments


Argument, Purpose

CAPTUREPATH, arg is path to capture to
PRINT, arg is file to print to tape
CAPTURE, arg is file to recapture
CAPTURETAPENAME, arg is tapename for recaptured file
CAPTURESTART, arg is starting timecode
CAPTURELENGTH, arg is length of DV clip



For example, the following command line captures a 2 second clip at the beginning of the tape:

vidcap40.exe -CAPTUREPATH:"D:\video" -CAPTURE:"clip2.avi" -CAPTURETAPENAME:"Tape 1" -CAPTURESTART:0 -CAPTURELENGTH:20000000

There are still some dialogs you'll need to manually dismiss.
jetdv wrote on 7/21/2003, 9:22 PM
20,000,000 is 2 seconds???? What scale is this working on?
SonyPJM wrote on 7/22/2003, 9:02 AM
In this case, it uses units of 100 nanoseconds. This is actually the underlying representation of almost all time measurements in Vegas. I'm giving thought to exposing these 100 nanosecond units in the Timecode class but for now you can convert from timecode strings using the Timecode class and it's ToMilliseconds() method:


var nanos : Int64 = Int64((new Timecode("00:00:02;00")).ToMilliseconds() * 10000);