DV Info Net

DV Info Net (https://www.dvinfo.net/forum/)
-   What Happens in Vegas... (https://www.dvinfo.net/forum/what-happens-vegas/)
-   -   Vegas markers to mkv chapters? (https://www.dvinfo.net/forum/what-happens-vegas/504106-vegas-markers-mkv-chapters.html)

Mark Kossin January 4th, 2012 11:09 PM

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?

Edward Troxel January 5th, 2012 07:33 AM

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.

Mark Kossin January 5th, 2012 04:48 PM

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?

Edward Troxel January 6th, 2012 10:09 AM

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);
}


Seth Bloombaum January 6th, 2012 12:41 PM

Re: Vegas markers to mkv chapters?
 
Quote:

Originally Posted by Mark Kossin (Post 1707650)
...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...


All times are GMT -6. The time now is 09:00 AM.

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