Category Archives: Entertainment

How to batch render and stretch in Sony Vegas 11 Pro

batch render 300x195 How to batch render and stretch in Sony Vegas 11 Pro

Selecting batch render in Sony Vegas Pro

If you have prepared regions in a video which you wish to output as individual files Sony Vegas Pro has a simple script called “Batch Render” that will do the dirty work for you. However it won’t stretch to fill video for you and if this is a requirement then you need to change the script.

Research reveals Vegas Pro versions before 9 would handle stretching to avoid letterboxing too. However the default installation no longer does. This is how you do it:-

  1. Locate the script directory (usually C:\Program Files\Sony\Vegas Pro 11.0\Script Menu)
  2. Make a copy of “Batch Render.cs” and call it “Batch Render Stretch.cs”
  3. Open the new file in a text editor and find the two lines that begin “args.OutputFile =”. You will find them around line 97 and 106.
  4. Create a new line below them and add “args.StretchToFill = true;” (without the quotes (see below)
  5. Save your changes, refresh the script listing in Vegas and use the new script to render files as before but use this new script instead
  6. After your changes the code should look something like this:-

    if (RenderMode.Regions == renderMode) {
    	int regionIndex = 0;
    	foreach (Sony.Vegas.Region region in myVegas.Project.Regions) {
    		String regionFilename = String.Format("{0}[{1}]{2}",
    				filename,
    				regionIndex.ToString(),
    				renderItem.Extension);
    		RenderArgs args = new RenderArgs();
    		args.OutputFile = regionFilename;
    		args.StretchToFill = true;  // <------------ Add this line
    		args.RenderTemplate = renderItem.Template;
    		args.Start = region.Position;
    		args.Length = region.Length;
    		renders.Add(args);
    		regionIndex++;
    	}
    } else {
    	filename += renderItem.Extension;
    	RenderArgs args = new RenderArgs();
    	args.OutputFile = filename;
    	args.StretchToFill = true;  // <------------ Add this line
    	args.RenderTemplate = renderItem.Template;
    	args.UseSelection = (renderMode == RenderMode.Selection);
    	renders.Add(args);
    }

    If programming’s not your thing you can download a copy of the script ready-made by clicking here.

    If you’re interested in programming Vegas this is a good starter video:

Dark Side of the Lens

DARK SIDE OF THE LENS from Astray Films


Watch this video. Credit is not given to the author or the main part and that’s characteristic of the artist who made the film. He is in it for himself, not money, not fame.

It looks like the west coast of Ireland, perhaps the Cliffs of Moher. He clearly makes the most of a stunning coast where ever it maybe. I lived in Ireland for three years, three of the happiest years of my life.
06 27 2005 11 08 29 AM Cliffs of Mohir 001 300x225 Dark Side of the Lens

Update!
I may have found his blog. Take a look.

Grrrrr…
I wanted to share this video to FB but the video site offers only a single pointless thumbnail and a stream of text telling everyone how wonderful their service is. Well stuff them.