Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums VEGAS Pro Batch Render regions & External Files

  • Batch Render regions & External Files

    Posted by Alfredo Rodriguez on February 24, 2014 at 12:47 am

    I have Sony Vegas Pro 11.0 and regularly export audio regions. Didn’t know scripts existed and that I could smooth out my workflow! I just discovered some scripts for batch rendering the regions, but I haven’t figured out if it’s possible to name the regions during render using an external file.

    Concrete example: I prepare some audio in Vegas with some audio effects and divide my audio track into many regions, let’s say 30 regions.

    I want to batch render each audio region as both mp3 & wav files with each region named something non-sequential. I don’t want the files named “audio_1, audio_2, etc”, but rather names found in a notepad document “phrase_1, introduction, middle part, ex_a_1, my_effect_file_1a, etc.”

    I also don’t want to sit there and name each region manually as I create them, since the names already exist in a notepad document. Would be nice to just hit “batch render” and each region is named according to external file and outputs two versions, .mp3 & .wav

    Graham Bernard replied 9 years, 2 months ago 7 Members · 13 Replies
  • 13 Replies
  • Aleksey Tarasov

    February 24, 2014 at 4:47 am

    Transcoder script can do everything you want, except for naming regions from a text file. And I don’t know of any other script that can do it. You have to name each region on the timeline or you can convert your text file to a subtitle file (eg. SRT, SUB or CSV). In this case Vegasaur can import your regions and render the files for you.

  • Graham Bernard

    February 24, 2014 at 7:24 am

    _______________________________________________________________

    [Alfredo Rodriguez]
    I also don’t want to sit there and name each region manually as I create them, since the names already exist in a notepad document.”

    _______________________________________________________________

    Using Copy >Paste(Ctrl+V) we have this already in Vegas EDIT Details View.

    Here’s your Notepad list:-

    Here’s BEFORE Pasting into Vegas Edit Detail View:-

    And here’s AFTER Pasting into Edit Details View. You can see ALL the Vegas Region Names have been neatly replaced with your own Region names:-

    I use this method to get my clients’ edits back to me. Very straightforward.

    And using VASST’s Render Assistant for $9.95 it is thorough, professional, quick and at $9.95 cheap as chips! VASST make it simple to build units of those SCRIPTS you want, and not pay for others you don’t. This way you only need to invest in the script you want.

    So:

    Step 1 – Get your Notepad Titles into the Regions – this is already included in the Vegas GUI!

    Step 2
    – Use Render Assistant

    Total time? 10 minutes, tops! $9.95 . . . what’s you time worth?

    Grazie

    Video Content Creator and Potter
    PC 7 64-bit 16gb * Intel® Core™i7-2600k Quad Core 3.40GHz * 2GB NVIDIA GEFORCE GTX 560 Ti
    Cameras: Canon XF300 + PowerShot SX50HS Bridge

  • Aleksey Tarasov

    February 24, 2014 at 7:27 am

    Graham, good tip about Edit Details!

  • Graham Bernard

    February 24, 2014 at 7:36 am

    You’re very welcome, Aleksey.

    When are you “Scripting-Gurus” gonna get the links to Notepad/EXCEL/Word sorted? The Option to paste into Details has ALWAYS been there in Vegas.

    Grazie

    Video Content Creator and Potter
    PC 7 64-bit 16gb * Intel® Core™i7-2600k Quad Core 3.40GHz * 2GB NVIDIA GEFORCE GTX 560 Ti
    Cameras: Canon XF300 + PowerShot SX50HS Bridge

  • Graham Bernard

    February 24, 2014 at 7:41 am

    Oh yeah, here’s a Folder VIEW of the MP4s I just rendered out using your names, as regions running thorough VASST Render Assistant using TWO types of Render Templates!!:-

    Video Content Creator and Potter
    PC 7 64-bit 16gb * Intel® Core™i7-2600k Quad Core 3.40GHz * 2GB NVIDIA GEFORCE GTX 560 Ti
    Cameras: Canon XF300 + PowerShot SX50HS Bridge

  • Alfredo Rodriguez

    August 4, 2015 at 6:47 pm

    First time hearing about the Edit Details windows in Vegas Pro. Thanks, Graham!!! I love the copy/paste feature. Very fast and very easy. I have Vegasaur…and just now discovered how to use Transcoder to export regions. I combined both of you guys’ tips to get the result I needed.

    I used Vegas’View>Window>Edit Details to paste the long list of names from Notepad into each Region in about half a second. Then Vegasaur’s Transcoder to export each region using the region names as separate files. EXACTLY what I needed 🙂

  • Robert Adama

    August 9, 2015 at 6:07 pm

    Hello everybody using VASST Render Assistant¨
    This would be ideal for me- nevertheless, if I doulble click on VASST’s Render Assistant for $9.95 the webside is not available (anymore)…..
    Trying to get straigthforward to the webside didn’t work either.
    Could you please inform me whether it’s still available and where!
    It would be of great help.
    I am using VEGAS Pro 12 770
    If you Need more info, please let me know
    Rob Adama

    Robert Adama, Switserland
    Windows7 64bit ASUS P7P55D Intel i7 2.8 GHz, 64BB DDR3-1333
    Graphic Sapphire HD 6870 128 bit
    Vegas Pro 12. Additionally
    Win XP 32bit with AVID Liquid 7.2

  • Aaron Star

    August 11, 2015 at 9:29 am

    I posted this on the Sony forum awhile ago:

    Here is a modified version of the default Sony Batch script. This script uses the Region Name as the output file name. Copy the script below to a new text file, change the extension to .cs, and move to your programs/sony/vegas13/script folder. Use what ever name you want to describe it.

    I use this script to convert camera .mts and .mov to XDCAM or other editing intermediate files. I like to keep the camera original files around incase there is a need to re-render from individual files. You can also use this to create proxies of your footage in any format you choose. Here is how I use the script:

    1 – insert all the files you want to batch on the the timeline

    2 – execute the default Sony script that inserts regions around the timeline events.

    3 – using the “edit details” windows in vegas, copy and paste the “active take name” column into the Region “name” column.

    4 – execute the script below, the GUI will popup, set for Regions, select output template, and use the default base name. the script will ignore the default base name, and use the region name for the output file name. The output template you select will determine the .xyz extension. You can select multiple formats that have different extensions.

    Basically you just cut and paste the following into a .txt file, rename the extension .cs, and place the file into your script folder. Start vegas and you will see the new script under Tools> Scripting. This will turn Vegas into a large batch render tool.

    Here is a link to a zip file with the 2 scripts, drop them into your vegas script folder.

    https://www.astardp.com/techtips/Vegas-Region-Batch.zip

    Code Block:

    /**
    * Sample script that performs batch renders with GUI for selecting
    * render templates.
    *
    * This script has been modified to batch render the region names to the new file, and not the default render template.
    *
    * Revision Date: 8-27-14.
    **/
    using System;
    using System.IO;
    using System.Text;
    using System.Drawing;
    using System.Collections;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Windows.Forms;

    using Sony.Vegas;

    public class EntryPoint {

    // set this to true if you want to allow files to be overwritten
    bool OverwriteExistingFiles = false;

    String defaultBasePath = "Untitled_";
    const int QUICKTIME_MAX_FILE_NAME_LENGTH = 55;

    Sony.Vegas.Vegas myVegas = null;

    enum RenderMode
    {
    Project = 0,
    Selection,
    Regions,
    }

    ArrayList SelectedTemplates = new ArrayList();

    public void FromVegas(Vegas vegas)
    {
    myVegas = vegas;

    String projectPath = myVegas.Project.FilePath;
    if (String.IsNullOrEmpty(projectPath))
    {
    String dir = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments);
    defaultBasePath = Path.Combine(dir, defaultBasePath);
    }
    else
    {
    String dir = Path.GetDirectoryName(projectPath);
    String fileName = Path.GetFileNameWithoutExtension(projectPath);
    defaultBasePath = Path.Combine(dir, fileName + "_");
    }

    DialogResult result = ShowBatchRenderDialog();
    myVegas.UpdateUI();
    if (DialogResult.OK == result)
    {
    // inform the user of some special failure cases
    String outputFilePath = FileNameBox.Text;
    RenderMode renderMode = RenderMode.Project;
    if (RenderRegionsButton.Checked)
    {
    renderMode = RenderMode.Regions;
    }
    else if (RenderSelectionButton.Checked)
    {
    renderMode = RenderMode.Selection;
    }
    DoBatchRender(SelectedTemplates, outputFilePath, renderMode);
    }
    }

    void DoBatchRender(ArrayList selectedTemplates, String basePath, RenderMode renderMode)
    {
    String outputDirectory = Path.GetDirectoryName(basePath);
    String baseFileName = Path.GetFileName(basePath);

    // make sure templates are selected
    if ((null == selectedTemplates) || (0 == selectedTemplates.Count))
    throw new ApplicationException("No render templates selected.");

    // make sure the output directory exists
    if (!Directory.Exists(outputDirectory))
    throw new ApplicationException("The output directory does not exist.");

    List

  • Robert Adama

    August 31, 2015 at 12:31 pm

    Thanks for replying and supporting me!
    Since I was in the middle of a Project, I didn’t dare to Import the additional Software. i h’v now importetd it and it works.
    And, moreover THANKS for helping me and sorry, that I do reply so late!!!
    I am often see your Support to others and I am positively surprized about the very quick Responses and also about the totally diffente subjects. Anyhow COW is a SUPER Forum, where People communicate in a very respectfull way- and moreover: very precise and helpful
    Thanks again and maybe an other time I could help as well!
    Robert

    Robert Adama, Switserland
    Windows7 64bit ASUS P7P55D Intel i7 2.8 GHz, 64BB DDR3-1333
    Graphic Sapphire HD 6870 128 bit
    Vegas Pro 12. Additionally
    Win XP 32bit with AVID Liquid 7.2

  • David Eon

    September 2, 2015 at 12:57 pm

    Yes. Highly recommend this app and I love the ala carte format that VASST uses for their software. Here is the link:

    https://vasst.com/store/productivity-tools/render-assistant.aspx

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy