Mark Kossin
January 4th, 2012, 11:09 PM
I have decided to to encode my home videos to avc and mux them into mkv files to play on our pc's instead of making DVD's and Blu rays. I have had great results with the Sony AVC renderer. I would like to include chapters for easy scene finding, is the any way to convert the markers to a mkv xml chapter file?
Edward Troxel
January 5th, 2012, 07:33 AM
Depends on what the MKV XML file looks like. You might be able to write a script that would export the markers to the XML file.
Mark Kossin
January 5th, 2012, 04:48 PM
The format is very simple it can be a simple txt as follows.
CHAPTER01=00:00:00.000
CHAPTER01NAME=Chapter 01
CHAPTER02=00:05:00.000
CHAPTER02NAME=Chapter 02
CHAPTER03=00:10:00.000
CHAPTER03NAME=Chapter 03
CHAPTER04=00:15:00.000
CHAPTER04NAME=Chapter 04
CHAPTER05=00:20:00.000
CHAPTER05NAME=Chapter 05
Where can I learn about vegas scripts?
Edward Troxel
January 6th, 2012, 10:09 AM
Here's the basics for doing this (this is from a .js script - slight changes are necessary for a .cs script):
import System;
import System.IO;
import System.Windows.Forms;
import Sony.Vegas;
try {
var markers = Vegas.Project.Markers;
for (var i=0; i < Vegas.Project.Markers.Count; i++)
{
//Open the output file here and then output the necessary info
//Output info for markers[i]
//Position timecode would be: markers[i].Position
//If you want to use the label as the chapter name, it is: markers[i].Label
}
} catch (e) {
MessageBox.Show(e);
}
Seth Bloombaum
January 6th, 2012, 12:41 PM
...Where can I learn about vegas scripts?
Sony Creative Software - Vegas video - ACID & Sound Forge audio editing (http://sonycreativesoftware.com) - it has an sdk for scripting (http://www.sonycreativesoftware.com/download/devkits)
Also, a forum devoted to scripting. (http://www.sonycreativesoftware.com/forums/ShowTopics.asp?ForumID=21)
Edward Troxel is rather accomplished with scripting, there's a forum at his site, link in his signature above.
Open up your favorite scripts in a text editor...