Markers don't save - Batch Render

Curly wrote on 8/14/2006, 4:14 AM
I have the same problem using either Vegas 5 or 6d, when I use batch render for use with DVD Architect 3, the chapter markers I placed in the Vegas project do not show up when I bring the mpg file into DVDA. It looks to me that the proper box is checked to save the markers during render but somehow they get lost along the way. If I do "Render As" instead of using Batch Render the markers save. Either way I render I'm outputting to the same file formats:

"Main Concept MPEG-2 , DVD Architect NTSC Video Stream"
"Dolby Digital AC-3 , Default Template"

Maybe there's something basic I'm missing, but I can't figure out what it is.

Curly H

Comments

farss wrote on 8/14/2006, 6:18 AM
Well one could invest in the Veggie Toolkit. Sorry it costs money but well worth the asking price. The Save Markers certainly works as does it's many time saving features if you've got a lot of encoding to do.

Bu there's also a script around that'll suck the markers from the .veg and create the file that DVDA needs. And it's free.

Bob.
johnmeyer wrote on 8/14/2006, 8:28 AM
The template that you use in batch render has to have the render template option: "Save Project Markers in Media File" checked. Simplest thing to do is create your own template, and then use that in the batch render.
jetdv wrote on 8/14/2006, 9:01 AM
Beyond what John said, I believe the most current version of Vegas requires a scripting change in order to "turn on the marker save". It's a fairly easy change, though.
Curly wrote on 8/14/2006, 11:51 AM
>> The template that you use in batch render has to have the render template option: "Save Project Markers in Media File" checked. Simplest thing to do is create your own template, and then use that in the batch render.

I tried that, didn't work.

Curly H
Curly wrote on 8/14/2006, 11:53 AM
>> Beyond what John said, I believe the most current version of Vegas requires a scripting change in order to "turn on the marker save". It's a fairly easy change, though.

Any suggestions where I can find out how to accomplish the scripting change? Thanks for the reply.

Curley H
jetdv wrote on 8/14/2006, 12:10 PM
Instead of something like:

RenderStatus status = Vegas.Render(fileName, rndrTemplate, start, length);


You need to create a "RenderArgs" variable and use it instead:

RenderArgs args = new RenderArgs();
args.OutputFile = fileName;
args.RenderTemplate = rndrTemplate;
args.Start = start;
args.Length = length;
args.IncludeMarkers = true; <--- This is what turns on the save markers!

RenderStatus status = Vegas.Render(args);

Curly wrote on 8/18/2006, 4:01 PM
>> instead of something like:

>> RenderStatus status = Vegas.Render(fileName, rndrTemplate, start, length);

>> You need to create a "RenderArgs" variable and use it instead:

Thanks for the info, but I know zero about scripting. Where would I put this stuff? Is there someplace I could just cut & paste it and be good to go? (BTW, doesn't anyone else have this problem? It's there for me in both Vegas 5 & 6)

Curly H

jetdv wrote on 8/19/2006, 6:50 AM
Yes, replace the single line with the larger set of lines I listed above.
Curly wrote on 8/19/2006, 7:44 AM
>> Yes, replace the single line with the larger set of lines I listed above.

jetdv,

Sorry for being dense, but like I said I know *nothing* about Vegas scripts. What file do I edit to substitute the lines you gave me? Am I correct to assume I can just use a text editor to do this? Thanks for your patience.

Curly H
bStro wrote on 8/19/2006, 8:55 AM
C:\Program Files\Sony\Vegas 6.0\Script Menu\Batch Render.cs

Can be edited with Notepad.

Rob
bStro wrote on 8/19/2006, 8:57 AM
I don't think the "Save Project Markers" option can be saved to a template. It's controlled by the Render As dialog itself.

Rob
jetdv wrote on 8/19/2006, 12:27 PM
As bstro said, open "C:\Program Files\Sony\Vegas 6.0\Script Menu\Batch Render.cs" in Notepad. Now look for this line:

RenderStatus status = myVegas.Render(filePath, renderItem.Template, start, length);

You will replace that one line with the following lines:

RenderArgs args = new RenderArgs();

Curly wrote on 8/24/2006, 8:26 PM
Substituting those lines in the Batch Render script did the trick. Thanks for the help. The markers are now there when I bring the batch-rendered file into DVD Architect. Sony's batch render script now generates a different PITA involving the .sfl file (which as I understand it contains the marker data). Sony's script appends to the file name the name of the render template, i.e. the name of the rendered file is not "project_name.mpg" it is:
"project_nameMainConcept MPEG-2_DVD Architect NTSC video stream.mpg."

Likewise for the AC3 file from the batch render. The rendered file is not "project_name.ac3" but "project_nameDolby Digital AC-3_Default Template.ac3"

The .sfl files have the same names as the mpg & ac3 files respectively, with the sfl extension appended.

The problem is that the markers vanish again after I edit the file names. I rename the files identically (except for the file exension) so that in DVD Architect the ac3 audio file stays associated with the mpg file. e.g. after renaming I have 4 files:
1) project_name.mpg
2) project_name.mpg.sfl
3) project_name.ac3
4) project_name.ac3.sfl

So after I rename the files, the ac3 audio is now associated with the mpg file when brought into DVD Architect, but once again there are no markers.

Is it the case that once a media file has an .sfl file associated with it you can't change the file name without losing your markers?

Curly
jetdv wrote on 8/25/2006, 7:40 AM
Look for this in the batch render script:

String filename = Path.Combine(outputDirectory,
FixFileName(baseFileName) +
FixFileName(renderItem.Renderer.FileTypeName) +
"_" +
FixFileName(renderItem.Template.Name));


This is combining the base file name (baseFileName) with the renderer type and template. You can change this to eliminate the extra data - but I would save this as a different version of the script (i.e. BatchRender2.cs)

String filename = Path.Combine(outputDirectory, FixFileName(baseFileName));
Zulqar-Cheema wrote on 8/27/2006, 11:28 AM
I had this problem as well, but some how I have a Script that exports the markers for me and that works