Adding Capture Metadata to Rendered AVI files

rcampbel wrote on 5/8/2004, 2:14 PM
I have a script that I use to break a long clip captured by Vegas Capture into many smaller clips of just the video that I want to keep online. Basically, I set regions on the timeline, then render each region to a new AVI file. Via the Media object I can get the tape name, the timecode in, timecode out, and length of the original long clip.

For each new clip file that is rendered, I need to set the tape name, the actual timecode in/out of that section from the original clip, and the length of into the new AVI file's INFO chunk. By doing this, when I use the new clip files in a project, I will be able to recapture them via Vegas Capture if the files are lost.

I don't see any Vegas scripting APIs to do this, and my research so far indicates that I need to either implement DirectShow in C# (no managed API), or write an OpenDML 1.2 RIFF file parser and read/write the AVI file directly. Neither of these options are very attractive.

Is there any way to do this with the current Vegas APIs? If not, it would be great if it could be added.

If you have any other ideas on how I could accomplish this or pointers to sources of code that I could use/modify, I would appreciate it.

Thanks,

Randall Campbell

Comments

No comments yet - be the first to write a comment...