question: rendering multiple files

pfeiferp wrote on 8/11/2004, 1:57 PM
I captured using automatic scene detection....giving me 142 avi files. Is there some easy way to render all of them as MPEGs?

I think I want to keep them as separate files so that others can view them (in any order) using winows media player. (They are plays from a football game.)

I have vegas 4 and dvd architect

Comments

johnmeyer wrote on 8/11/2004, 4:43 PM
You can use scripts. Use this one:

Add Regions to Events

to add regions to each event (just put your 142 AVI files on the timeline, and each one will become an individual event.

Once you have run this script, then run this one:

Batch GUI Script

This lets you render your project to multiple different file types (you are only interested in MPEG, so select the appropriate MPEG-2 template, and if you are rendering the audio separately, the appropriate AC-3 template). Before you render, click on the "Render Regions" button. This will render each region to a separate MPEG fille (and also to separate AC-3 files, if you checked that template as well).

Since you have Vegas 4.0, you will need to open the "Add Regions to Events" script in notepad and change the line that reads

"import SonicFoundry.Vegas;"

to

"import SoniyVegas;"

(Sorry about that -- blame Sony for forcing everyone to make this stupid changes ... grumble, grumble ).
pfeiferp wrote on 8/12/2004, 9:03 AM
Thanks a lot for your help.

I have never attmepted scripts before, but I expect it'll be easy once I do it.

I was "hoping" for something simpler, like some option to capture directly to MPEG or some FILE, SAVE AS MPEG thing....but I guess I can see why what I want to do is unusual enough not to be simply accomplished.
jetdv wrote on 8/12/2004, 9:23 AM
like some option to capture directly to MPEG or some FILE, SAVE AS MPEG thing

How about File - RENDER As and then picking MPEG as the type?
bStro wrote on 8/12/2004, 9:43 AM
How about File - RENDER As and then picking MPEG as the type?

...142 times? ;-)

Rob
jetdv wrote on 8/12/2004, 9:54 AM
Obviously, the scripts are the way to go. However, in response to "like file - save as MPEG" - File - Render As *IS* the equivalent. I would agree that from his source to his stated definition, a script should be used and the ones mentioned will get the job done.
pfeiferp wrote on 8/13/2004, 8:00 AM
I got the .net stuff downloaded from microsoft and installed (I think)

I'm using the script you sent me. The first part is as follows

import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;
var evnt : TrackEvent;
var myRegion : Region;
var RegionNumber;


Notice that it already has "import sony.vegas" I assume that is correct.


When I try it I get: error on line 12 variable "Trackevent" has not been declared"


This is kind of exciting. As expected, it was real easy to tools, scripting, run script.

But something's not quite right causing this error.

Ideas?

Thanks ahead of time for the help.


On the earlier replies....yes, what I really wish for is something more akin to 1) select all 142 files, 2) copy, 3) paste special as MPEGs.
johnmeyer wrote on 8/13/2004, 8:39 AM
I just downloaded the script from the source I linked you to, and it ran successfully on Vegas 5.0b. Thus, I am pretty sure the script is OK.

The usual reason for getting errors like the one you describe is not having .NET installed; having the wrong version installed; or having some problem with the installation. The usual advice is to uninstall (use the Add/Remove Programs in the Control Panel), and then re-install. You might also check to see if you have the correct .NET version.

Perhaps someone can provide a link directly to the download for the correct version.
jetdv wrote on 8/13/2004, 9:56 AM
It's because YOU are running Vegas 4 instead of 5.

Try this: Change

import Sony.Vegas;

to read:

import SonicFoundry.Vegas;
pfeiferp wrote on 8/13/2004, 1:22 PM
Thanks. Yes I figured that out all by miself. I needed SonicFoundry.Vegas. I made that change and it woked GREAT.

Just as I thought, Scripts are great. Wonder why it took me so long to try one?

The second script also worked, but with one small problem. It rendered all 142 as MPEGs and then STARTED OVER! Once I figured out what it was doing, I just stoped it and there were all my files. The newest ones were low numbered ones, which means it redid a bunch of them. Who knows how many times I went through the entire batch.

If johnmeyer reads this, he may know how to fix it. But I'm happy enough just to watch and stop it once it makes the fist pass.

Thanks agian to both Johnmeyer and jetdv.

johnmeyer wrote on 8/13/2004, 6:15 PM
I didn't write the BatchGUI script, I just updated it and made a few changes. It is possible that the script has a boundary condition with large numbers of regions. I'm not sure what to suggest. If I think of something, I'll let you know.