Automatically break up render into separate files

kirkdickinson wrote on 1/24/2009, 2:15 PM
I have a project that I would like to export each section to a different file. It is a 2 hour project with 40-50 section markers.

Is there a way to render each section with the section marker name as the file name?

I know that I can do it by marking each section and rendering it separately.

Is there a script or command to do this automatically?

Thanks,

Kirk

Comments

jrazz wrote on 1/24/2009, 9:42 PM
Download the free trial of ultimateS pro. It has a batch render feature that should do just this.

j razz
jrazz wrote on 1/24/2009, 9:45 PM
Why is it that when you do a link= and then add a quotations around the link you get an extra http:// and a space before the actual link? If you take the quotes away (which I believe quotes are acceptable protocol for links) then you get the link exactly how it should be.

This is the reason for the edit in the previous post.

j razz
farss wrote on 1/24/2009, 10:16 PM
I don't think you can do this based on markers, you need to define regions. Then the Multirenderer in Peackrock's Veggie Toolkit can render each region with a file name based on the region name and to multiple codecs / templates e.g. mpeg-2 and ac3.

Bob.

Rosebud wrote on 1/24/2009, 11:35 PM
The free « Batch Render » script provided with Vegas should do what you are looking for (based on Region).
ingvarai wrote on 1/26/2009, 2:50 AM
> Download the free trial of ultimateS pro.

IF anyone can get the swapping function to work (on the Render tab), I would be interested to know how you did it.
No matter what I do, how I do it, kick my PC box, slap the screen, swear and curse, call upon higher powers - I always get "0 media files swapped"

ingvarai
LReavis wrote on 1/26/2009, 10:32 AM
Veggie Toolkit indeed will render between all markers - I often do that (it will automatically find the markers and render between each pair, automatically assigning a filename to each rendered file)
kirkdickinson wrote on 1/26/2009, 10:56 AM
I tried the free batch render. It doens't work with only markers. I spent a while adding named regions for it to work.

Two problems:
#1 It doesn't name the rendered file with the region name, so I have to track them all down and figure out what region they are and rename the file.

#2 After about 10 regions, it errored out with and error saying that the file name was incorrect.

I'll keep playing with it and have downloaded UltimateS to try that.

Thanks,

Kirk
jetdv wrote on 1/26/2009, 12:35 PM
Try this
kirkdickinson wrote on 1/27/2009, 2:44 PM
The script keeps crashing on me. It gets to region 10 and tells me that the file name is not valid. Then I get this message:
An error occured during execution of the script C:\Program Files\Vegas Pro 8.0\Script Menu\Batch Render.cs.
Exception thrown by method called.

The complete details are:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ApplicationException: Render failed:

file name: K:\Video\SireVideoProject\Sire_Video_012609_regions_QuickTime 7_512 Kbps Video[10].mov
Renderer: QuickTime 7
Template: 512 Kbps Video
Start Time: 00:28:48:11
Length: 00:02:16:26
at EntryPoint.DoRender(String filePath, RenderItem renderItem, Timecode start, Timecode length)
at EntryPoint.DoBatchRender(ArrayList selectedTemplates, String basePath, RenderMode renderMode)
at EntryPoint.FromVegas(Vegas vegas)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Sony.Vegas.ScriptHost.ScriptManager.Run(Assembly asm, String className, String methodName)
at Sony.Vegas.ScriptHost.CodeDomScriptManager.Run()
at Sony.Vegas.ScriptHost.RunScript(Boolean fCompileOnly)
jetdv wrote on 1/28/2009, 6:22 AM
What's the name/label of that region?
JohnnyRoy wrote on 1/28/2009, 10:07 AM
> farss said: I don't think you can do this based on markers, you need to define regions.

Yes you can with Ultimate S Pro using the Render tab. It is smart enough to render what’s between the markers and use the marker names as filenames.

> ingvarai said: IF anyone can get the swapping function to work (on the Render tab), I would be interested to know how you did it.

I apologize if our User’s Guide doesn’t explain it well enough but if you send an email to ultimatesupport at vasst we will be happy to explain how it works step-by-step. (or just email me from here)

It looks for files with the source extension and substitutes files with the target extension that are in the same folder as the source. The key is that the source and target files are in the same folder and only differ by file extension. (you can use multiple folders as long as each source and target can be found in the same folder)

> kirkdickinson said: I'll keep playing with it and have downloaded UltimateS to try that.

Hi Kirk, This is *exactly* what the Ultimate S Pro Render tab does. Select Render Tab then check Current Project as the source. Press the Markers button. Choose your Output Folder and your Render Format and press Apply. That’s It!

It will use the marker names as file names just as you want. You can even render to multiple formats all in one easy step. If you have any difficulty don’t hesitate to send an email to our support email address in the about box (click the VASST logo). We give full support even for trial mode users. You can also contact me via these forums if you have any questions.

~jr