| 
 
 | |||||||||
|  | 
|  | Thread Tools | Search this Thread | 
|  January 4th, 2012, 11:09 PM | #1 | 
| New Boot Join Date: Dec 2011 Location: North Salt Lake, Utah 
					Posts: 5
				 | 
				
				Vegas markers to mkv chapters?
			 
			
			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?
		 | 
|   |   | 
|  January 5th, 2012, 07:33 AM | #2 | 
| Sponsor: JET DV Join Date: Dec 2001 Location: Southern Illinois 
					Posts: 7,953
				 | 
				
				Re: Vegas markers to mkv chapters?
			 
			
			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.
		 
				__________________ Edward Troxel [SCVU] JETDV Scripts/Scripting Tutorials/Excalibur/Montage Magic/Newsletters | 
|   |   | 
|  January 5th, 2012, 04:48 PM | #3 | 
| New Boot Join Date: Dec 2011 Location: North Salt Lake, Utah 
					Posts: 5
				 | 
				
				Re: Vegas markers to mkv chapters?
			 
			
			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? | 
|   |   | 
|  January 6th, 2012, 10:09 AM | #4 | 
| Sponsor: JET DV Join Date: Dec 2001 Location: Southern Illinois 
					Posts: 7,953
				 | 
				
				Re: Vegas markers to mkv chapters?
			 
			
			Here's the basics for doing this (this is from a .js script - slight changes are necessary for a .cs script): Code: 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);
}
				__________________ Edward Troxel [SCVU] JETDV Scripts/Scripting Tutorials/Excalibur/Montage Magic/Newsletters | 
|   |   | 
|  January 6th, 2012, 12:41 PM | #5 | 
| Inner Circle Join Date: Sep 2003 Location: Portland, Oregon 
					Posts: 3,420
				 | 
				
				Re: Vegas markers to mkv chapters?
			 
			
			Sony Creative Software - Vegas video - ACID & Sound Forge audio editing - it has an sdk for scripting Also, a forum devoted to scripting. 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... 
				__________________ 30 years of pro media production. Vegas user since 1.0. Webcaster since 1997. Freelancer since 2000. College instructor since 2001. | 
|   |   | 
|  | 
| 
 | ||||||
| 
 | ||||||
|  |