Vegas markers to mkv chapters? at DVinfo.net
DV Info Net

Go Back   DV Info Net > Windows / PC Post Production Solutions > What Happens in Vegas...
Register FAQ Today's Posts Buyer's Guides

What Happens in Vegas...
...stays in Vegas! This PC-based editing app is a safe bet with these tips.

Reply
 
Thread Tools Search this Thread
Old 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?
Mark Kossin is offline   Reply With Quote
Old 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 is offline   Reply With Quote
Old 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?
Mark Kossin is offline   Reply With Quote
Old 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 is offline   Reply With Quote
Old 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?

Quote:
Originally Posted by Mark Kossin View Post
...Where can I learn about vegas scripts?
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.
Seth Bloombaum is offline   Reply
Reply

DV Info Net refers all where-to-buy and where-to-rent questions exclusively to these trusted full line dealers and rental houses...

B&H Photo Video
(866) 521-7381
New York, NY USA

Scan Computers Int. Ltd.
+44 0871-472-4747
Bolton, Lancashire UK


DV Info Net also encourages you to support local businesses and buy from an authorized dealer in your neighborhood.
  You are here: DV Info Net > Windows / PC Post Production Solutions > What Happens in Vegas...


 



All times are GMT -6. The time now is 04:01 PM.


DV Info Net -- Real Names, Real People, Real Info!
1998-2024 The Digital Video Information Network