Any chance to have Timecode implement IComparable?

aboukirev wrote on 1/27/2003, 9:04 PM
I'm working on EDL export script, and after I collected all edits (by getting start timecode of all events on all tracks) into Array, I need to sort it. I could create a class that implements IComparer, but it seems like Timecode naturally should have IComparable interface. Could be useful in other scripts.

Or where should I send such requests?

BTW found a bunch of wipe codes for CMX 3600 in Adobe Premiere EDL export configuration. Is that considered a public knowledge (i.e. may I use that information in my script)?

Alexei

Comments

FadeToBlack wrote on 1/27/2003, 9:20 PM
aboukirev wrote on 1/27/2003, 9:45 PM
I'm sticking to CMX 3600 right now. Basically it means that there will be statements like 'REEL ... IS CLIP .....avi' and such. Both source and destination timecodes will be there too. There will be support for multiple layers (compositing) witk 'K' command/action. I'll do what I can to properly identify keying type (like 'KEY TYPE IS LUMINANCE') and other statements like 'FCM: DROP FRAME'. Basically, whatever information I find on Internet and in books.

I appreciate any pointers to basic and advanced information on EDL (URLs, book titles, etc.)

Alexei
SonyPJM wrote on 1/28/2003, 9:38 AM
Done. This is a good place to send requests like that.
aboukirev wrote on 1/28/2003, 6:47 PM
Ok, my next challenge is for specific cursor position to walk tracks from bottom to top and find events that are playing at this position. Actually the track order is not important since track is pointed referenced from event, and track has DisplayIndex.
Again, I could do it by walking all events collection and checking if Cursor fits into range for each event (Start:Start+Length). But I think Vegas already does this walk when rendering frame on timeline. So why not use it.
Am I asking too much?

Thanks.

Alexei
SonyPJM wrote on 1/28/2003, 7:48 PM

For EDL export I think you will want to focus on significant
timecodes... the beginnings and endings of events and their fade
lengths.

You may not have been suggesting this but I really don't think you
should step through frame-by-frame. The only time Vegas will walk
through frame-by-frame, so to speak, is during renders and playback.
aboukirev wrote on 1/28/2003, 9:53 PM
I'm not stepping frame by frame. First, I enumerate all media in the project. Then I iterate through tracks and events collecting start/end timecodes of events. Then I sort collected timecodes. Now, I have to step through all these timecodes and build EDL. The bottom track generates cuts/wipes/dissolves or, if there are no events in a certain range, a black background clip. Then advancing to higher tracks, I'll add composited/keyed events.
I understand that all edits in EDL should be ordered by edit timecode.
I tried to approach it from relatively simple script view. It appears, I have to program some utility classes, lists, etc.

So, nevermind my request. I'll figure it out.

I'm sure I did not consider many things yet, like how do I treat generated media, audio-only or video-only events. I'm going to use active takes only. EDL is so far from perfect (no wonder, it's a 30 year old standard).

Alexei
SonyEPM wrote on 1/30/2003, 12:30 AM
"EDL is so far from perfect (no wonder, it's a 30 year old standard)."

There's an upside: It isn't changing underneath you.