BATCHRENDER, beginner question

rst wrote on 8/26/2004, 6:38 AM
I am using Vegas 4.0e and I am trying to do the following (with “no” user intervention):

From the command line: start avid with a script file as parameter. Within the script specify the name of the file to convert, where the movie file is (standard file name, never changes) and what setting use and where to putt it when it is done.

I have been trying to do this based on the script BATCHRENDER.JS (witch I downloaded from this site),

But I am sorry to say that I am struggling “a bit” :-(

My biggest problem seems to be specifying the file name and “telling” the script to render the entire file.

Can some one please help me ???

Comments

jetdv wrote on 8/26/2004, 7:08 AM
First of all, I don't think Avid runs scripts :-)

Yes, a script can be written that can be started on Vegas startup, load a clip to the timeline, render that clip, and then shut down. I wrote a script for Sony Music that does exactly that function.

What do you mean by My biggest problem seems to be specifying the file name and “telling” the script to render the entire file.? For the render, just specify 0 as the start time and the project length as the length.

This line should give you the entire file.

Vegas.Render(fileName, rndrTemplate, new Timecode(0), Vegas.Project.Length);


If you want to make it more flexible, you could set up the file name to load, the file name to render to, and the format in a text file. Then your script could read that file to determine the parameters. There is no way to just add the parameters to the command line.
rst wrote on 8/27/2004, 2:58 AM
Thank you very much jetdv for taking the time to try and help me, but I am sorry to say I am totally out there :-)

Could the script just contain this???:

/********************************
import System;
import System.Text;
import System.IO;
import System.Windows.Forms;
import SonicFoundry.Vegas;


Vegas.Render("c://windows//clock.avi", "MainConcept MPEG-2", new Timecode(0), Vegas.Project.Length);
********************************/

I knew I am doing something wrong, but I am sorry to say I have no idea what :-(

And can I specify any the "out" file in the same line.
jetdv wrote on 8/27/2004, 6:32 AM
No it cannot. The imports are fine (assuming you are using Vegas 4). Between the imports and the render statement you must:

1) Create audio and video tracks as needed.
2) Add the video and audio to those tracks (I'm assuming clock.avi???)
3) Find the "renderer" for "MainConcept MPEG-2"
4) Change the render statement to include the OUTPUT file name and use the "renderer" found in step 3.