Is there a script that will place chapter markers each event on a timeline?I have some training tutorials for my students and would like to break each section down in chapters for use in H.264 and would like to prevent having to render out each segment individually. Thanks.
I'm not going to address the script question, but if you insert markers at the cursor on the timeline [press M], you can render the video in one action with the markers being treated as chapter markers in DVDA. Just make sure that in the render as dialog you have "Save project markers in media file" checked.
try {
var zeroMark : Timecode = new Timecode(0);
var myMarker : Marker;
//Find the selected event
var track = FindSelectedTrack();
if (null == track)
throw "no selected track";
var eventEnum = new Enumerator(track.Events);
while (!eventEnum.atEnd()) {
var evnt : TrackEvent = TrackEvent(eventEnum.item());
if (evnt.Start >= zeroMark) {
//Put a marker at the start point
if ( !MarkerExist(evnt.Start.ToMilliseconds()) ) {
myMarker = new Marker(evnt.Start);
Vegas.Project.Markers.Add(myMarker);
}
}
eventEnum.moveNext();
}
} catch (e) {
MessageBox.Show(e);
}
function FindSelectedTrack() : Track {
var trackEnum = new Enumerator(Vegas.Project.Tracks);
while (!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());
if (track.Selected) {
return track;
}
trackEnum.moveNext();
}
return null;
}
// Function to check if there is a marker at timecode passed to this function
// Timecode (dStart) must be in milliseconds
function MarkerExist (dStart) : boolean {
var fmarkerEnum = new Enumerator(Vegas.Project.Markers);
while (!fmarkerEnum.atEnd()) {
var fMyMarker = fmarkerEnum.item();
var fMarkerStart = fMyMarker.Position.ToMilliseconds();
if ( dStart == fMarkerStart ) {
return 1;
}
Hi Patrick, I believe you already have Ultimate S2 which does this from the Markers tab. Just use Place Markets at Events under Create Markers. You can even supply a base name for the chapters and US2 will add sequential numbers for you.
Awesome guys. Just what I was looking for. I wonder if these chapters will work for H.264 AVC encoded files and better yet, if there are any players that will recognize chapter markers in these encoded files. Either way, much thanks.