Skip to main content
Inspiring
March 12, 2021
質問

How to get the Timecodes of footage used by a sequence, similar to an EDL's values?

  • March 12, 2021
  • 返信数 2.
  • 1812 ビュー

I am developing a plugin that shall generate a text file for the purpose of documenting the _used_ footage. It's for a media design company that needs to know which and how much "foreign" footage it used.

 

For this purpose, the plugin needs to learn the actually used range of frames, or their TCs, of the footage that's references in a sequence.

 

How do I get to that information?

 

I know how to learn of the original footage tracks, but I have a hard time determining the TCs, especially if the footage is embedded into the sequence at a non-trivial time scale. For instances, if it's using  speed-ramp, I cannot simply take the TCs from the track, as they do not directly translate into the range that they're taken from the footage (1s of play time in slo-mo) may mean that it's 10s in the footage - and that's the timing I need in order to know how much needs to be credited to the original footage.

 

When I export a sequence to EDL, then these TCs are right there, though! This means that there's code in Premiere that can calculate these values. The question is simply how I get to them from a plugin.

 

このトピックへの返信は締め切られました。

返信数 2

Bruce Bullis
Community Manager
Community Manager
March 12, 2021

You mention writing a 'plug-in', which are created in C++;  I think you're writing an extension, in ExtendScript/JavaScript.

 

You can get the source media in/out points from the trackItem object, but as you point out, there are complexities. 

Confirming: Even for time remapped track items, the values exported in an EDL are correct?

tempelorg作成者
Inspiring
March 12, 2021

Bruce,

Yes, I mean an extension.

 


Confirming: Even for time remapped track items, the values exported in an EDL are correct?

 

Yes, that was my impression so far. Do you think I got this wrong, or are you not familiar with the content of EDL files?

Bruce Bullis
Community Manager
Community Manager
March 15, 2021

The title is indeed off as I feared, because I'm not looking for speed parms but for the TCs of the inserted clips.

 

Would you please update it, using a title such as (I may not use the correct terms, though, so please fix accordingly):

 

Provide API to query the source time codes of a track's original clip.

 

And then add:

 

What is needed are the same TC values that are also provided in an EDL file: A track line in an EDL file contains four TCs: First two are the start and end times of the original clip, and the latter two specify where they're inserted in the final sequence. The latter two values can be queried with existing APIs, but the first two cannot, and those are what we need.

 

In other words, this is a request to have read access to the original clip's start and end TCs used by each track.

 

The purpose: We need to learn which parts of the footage clips are actually used in the sequence, e.g. in order to document the footage credits (and their lengths).

 

Thank you.

 


That's possible today. 

Test setup: 

 

  • Project with one media item, many seconds long
  • Set in point at 00;00;10;00 and out point at 00;00;11;00. 
  • Insert edit that one second, into a new sequence (thereby creating a trackItem)
var clip = app.project.activeSequence.videoTracks[0].clips[0];

if (clip){
    var start = clip.start;
    var end = clip.end;
    var inPoint = clip.inPoint;
    var outPoint = clip.outPoint;
}

 

In [above], start and end are the sequence time range occupied by the trackItem, and inPoint/OutPoint refer to the time range, in the original projectItem. 

Joost van der Hoeven
Community Expert
Community Expert
March 12, 2021

@Bruce Bullis can you assist @tempelorg?