Record time to a file

mhunter wrote on 2/23/2005, 2:19 PM
I am looking for a way to write the time to a file while a video is running.

What I am hoping to do is while watching a video be able to hit a key, say "H", and have the time code writen out to an text file. I will be collecting multiple data points during any one video. I have done a fair amout of automation using VB with other programs but I am not seeing how to make this work with Vegas. Has anyone tried to do this with scipts or is anyone aware of a script that does this.

Thanks

Comments

johnmeyer wrote on 2/23/2005, 3:21 PM
A simple way to do this is simply to press the "M" key while the video is playing. This will put a marker at the exact location in the video when you pressed the key. You can do this while the video is playing. Once you are finished, you can simply go to the Edit Details view, select all the entries in the "Position" column, right-click, select Copy, and then paste the results into Notepad, or into Excel.

If you need to convert these to timecode, simply enter the starting timecode, and then do a calculation in the spreadsheet.
rcampbel wrote on 2/23/2005, 4:01 PM
A script can't do this since the Vegas playback engine is stopped when a script is running.

Randall
johnmeyer wrote on 2/23/2005, 4:22 PM
A script can't do this since the Vegas playback engine is stopped when a script is running.

That is true, but if he uses "M" to create the markers, he could still write a script to automate the process of taking the markers and converting to timecode. In particular, if he wants to extract the actual timecode from some event on some timeline under the marker, he could do that by enumerating through the media properties for the event, and then extracting the timecode.