Comments

Chienworks wrote on 12/19/2007, 7:03 PM
Try dropping the timecode effect onto the clips in the project media window instead of on the timeline or tracks. Supposedly that works for DV. It might work for HDV too.
rs170a wrote on 12/19/2007, 7:27 PM
Doing that will only give you timecode, not date & time which is what the OP wants.
Unfortunately, I don't think there's a way to extract that information yet :-(

Mike
mekelly wrote on 12/20/2007, 7:22 AM
OK, thanks!
Udi wrote on 12/20/2007, 11:50 PM
Actually, in V8, a script can be created to add the time.
There is a field in the Media object that is called RecordedDateTime and it provide the information.

Udi
rtbond wrote on 12/21/2007, 3:48 AM
>Actually, in V8, a script can be created to add the time.
>There is a field in the Media object that is called
>RecordedDateTime and it provide the information

I too an interested in extracting this date information, but I have never written a Vegas script in my life. Any pointers on how to create a simple script to access and display this media object would be greatly appreciated.

--Rob

Rob Bond

My System Info:

  • Vegas Pro 22 Build 194
  • OS: Windows 11.0 Home (64-bit), Version: 10.0.26100 Build 26100
  • Processor: i9-10940X CPU @ 3.30GHz (14 core)
  • Physical memory: 64GB (Corsair Vengeance LPX 64GB (2 x 32GB) DDR4 DRAM 3200MHz C16 memory kit)
  • Motherboard Model: MSI x299 Creator (MS-7B96)
  • GPU: EVGA GeForce RTX 2070 SUPER XC ULTRA (Studio Driver Version =  536.40)
  • Storage: Dual Samsung 970 EVO 1TB SSD (boot and Render); WDC WD4004FZWX, 7200 RPM (media)
  • Primary Display: Dell UltraSharp 27, U2723QE, 4K monitor with 98% DCI-P3 and DisplayHDR 400 with Dell Display Manager
  • Secondary Display: LG 32UK550-B, entry-level 4k/HDR-10 level monitor, @95% DCI-P3 coverage
Udi wrote on 12/21/2007, 11:46 AM
I was hoping that someone will pick up the task.
Here is a sample script that print the tape name, tc and recording time.
What is needed is to add a text field on an upper track with the text value, maybe changing the text every 1sec.

Udi

import System.Windows.Forms;
import Sony.Vegas;

try {
var trackEnum = new Enumerator(Vegas.Project.Tracks);
while(!trackEnum.atEnd()) {
var track : Track = Track(trackEnum.item());
var eventEnum = new Enumerator(track.Events);
while(!eventEnum.atEnd()) {
var ev : TrackEvent = TrackEvent(eventEnum.item());
if(ev.Selected) {
var take = ev.ActiveTake;
var media = take.Media;
MessageBox.Show( " file : " + take.MediaPath +
"\n Tape : " + media.TapeName +
"\n Tape in :" + media.TimecodeIn +
"\n Tape out:" + media.TimecodeOut +
"\n Recorded at: " + media.RecordedDateTime
);
}
eventEnum.moveNext();
}
trackEnum.moveNext();
}
} catch (e) {
MessageBox.Show(e);
}
jetdv wrote on 12/21/2007, 1:17 PM
What is needed is to add a text field on an upper track with the text value, maybe changing the text every 1sec.

Changing text in Text generated media is not scriptable. The script can add the gnerated media as needed but can't change the text.
Udi wrote on 12/22/2007, 3:31 AM
I was waiting for your response.

It is about time that someone will right a "scriptable" text plugin.

Udi
farss wrote on 12/22/2007, 4:19 AM
"It is about time that someone will right a "scriptable" text plugin."

Amen!
And another thing. Some way to add burnt in tape numbers and clip numbers would be oh so usefull. Doing this by hand when you've got lots of clips is no fun at all. So damn little I added the tape number and didn't think it through carefully. The client's camera was dodgy and he liked to review every clip. So TC restarts at every clip, what a mess. His paper EDL was less than useless.

And yes, I know, I should have fixed this upfront and restriped the TC to a new tape. We live and learn and we get sloppy and we forget and we have to learn all over again.

Bob.
rtbond wrote on 12/22/2007, 5:19 AM
Well, I would be happy with a way to read (i.e., in dialog box) the DateCode at the current cursor position on the timeline.

The sample script provided by Udi appears to be missing some declarations (recall I am a scripting dummy). I receive the following error when I run the sample script (which I called "Read_Data_Code.js"):

Read_Date_Code.js(4) : Variable 'Track' has not been declared
Read_Date_Code.js(7) : Variable 'TrackEvent' has not been declared
Read_Date_Code.js(11) : Variable 'MessageBox' has not been declared

What do I need to add to the above sample script to address these declaration errors?

Thanks!

--Rob

Rob Bond

My System Info:

  • Vegas Pro 22 Build 194
  • OS: Windows 11.0 Home (64-bit), Version: 10.0.26100 Build 26100
  • Processor: i9-10940X CPU @ 3.30GHz (14 core)
  • Physical memory: 64GB (Corsair Vengeance LPX 64GB (2 x 32GB) DDR4 DRAM 3200MHz C16 memory kit)
  • Motherboard Model: MSI x299 Creator (MS-7B96)
  • GPU: EVGA GeForce RTX 2070 SUPER XC ULTRA (Studio Driver Version =  536.40)
  • Storage: Dual Samsung 970 EVO 1TB SSD (boot and Render); WDC WD4004FZWX, 7200 RPM (media)
  • Primary Display: Dell UltraSharp 27, U2723QE, 4K monitor with 98% DCI-P3 and DisplayHDR 400 with Dell Display Manager
  • Secondary Display: LG 32UK550-B, entry-level 4k/HDR-10 level monitor, @95% DCI-P3 coverage
jetdv wrote on 12/22/2007, 6:15 AM
Rob, sounds like you missed the two "import" lines at the top. Put those in and it should fix those errors.
rtbond wrote on 12/22/2007, 2:06 PM
Yes, that was it. It saw the word "try" and my eyes thought that as the start of the script.

So that is the good news, the script runs. The bad news it it seem to generate useless date information for HDV content on the timeline. The script indicates a date of "Recorded at: Mon Jan 1 00:00:00"

The script does display the correct record date for DV media on the timeline.

I get the same "Recorded at: Mon Jan 1 00:00:00" when I run the script on AVI content of a capture VHS tape, which I am guessing does not have time/date code information, which makes me wonder whether HDV captures include time/date code information?

--Rob

Rob Bond

My System Info:

  • Vegas Pro 22 Build 194
  • OS: Windows 11.0 Home (64-bit), Version: 10.0.26100 Build 26100
  • Processor: i9-10940X CPU @ 3.30GHz (14 core)
  • Physical memory: 64GB (Corsair Vengeance LPX 64GB (2 x 32GB) DDR4 DRAM 3200MHz C16 memory kit)
  • Motherboard Model: MSI x299 Creator (MS-7B96)
  • GPU: EVGA GeForce RTX 2070 SUPER XC ULTRA (Studio Driver Version =  536.40)
  • Storage: Dual Samsung 970 EVO 1TB SSD (boot and Render); WDC WD4004FZWX, 7200 RPM (media)
  • Primary Display: Dell UltraSharp 27, U2723QE, 4K monitor with 98% DCI-P3 and DisplayHDR 400 with Dell Display Manager
  • Secondary Display: LG 32UK550-B, entry-level 4k/HDR-10 level monitor, @95% DCI-P3 coverage