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:-
- Locate the script directory (usually C:\Program Files\Sony\Vegas Pro 11.0\Script Menu)
- Make a copy of “Batch Render.cs” and call it “Batch Render Stretch.cs”
- 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.
- Create a new line below them and add “args.StretchToFill = true;” (without the quotes (see below)
- 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
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:




