Skip to main content
Premiopolis
Inspiring
February 21, 2018
Answered

How to export an EDL from a timeline using ExtendScript

  • February 21, 2018
  • 1 reply
  • 3790 views

Is this possible?

This topic has been closed for replies.
Correct answer Bruce Bullis

The PPro API offers no direct EDL output.

It had been more highly requested a few cycles ago, but (I'm told) those requesters decided to export FCP XML instead.

For what specific flavor(s) of EDL, are you hoping? To what workflow(s) would you like to feed EDLs, from PPro?

1 reply

Premiopolis
Inspiring
February 23, 2018

So far I've found

app.project.activeSequence.exportAsFinalCutProXML(fullPathToOutputFile, 1);

app.project.activeSequence.exportFramePNG(time, fullPathToOutputFile);

app.project.activeSequence.exportAsProject(fullPathToOutputFile);

app.project.activeSequence.exportAsMediaDirect(fullPathToOutputFile, outPreset.fsName,appencoder.ENCODE_WORKAREA);

But still looking for something along the lines of

   app.project.activeSequence.exportAsEDL(fullPathToFile,EdlSpecs);

Bruce Bullis? Would you and team have any insights?

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
February 23, 2018

The PPro API offers no direct EDL output.

It had been more highly requested a few cycles ago, but (I'm told) those requesters decided to export FCP XML instead.

For what specific flavor(s) of EDL, are you hoping? To what workflow(s) would you like to feed EDLs, from PPro?

Premiopolis
Inspiring
February 23, 2018

The goal is to produce an accurate report of all items in a timeline -- all Source Names, Source TC Starts & Ends, Timeline TC Starts & Ends -- including (and this is key) those sources that have been sped up or slowed down in the timeline.

We got most of the way there by iterating all clips in the timeline using an approach hinted at here...

Samples/Premiere.jsx at master · Adobe-CEP/Samples · GitHub

under the randomizeSequenceSelection method, so the algorithm works using logic along the lines of.... (abbreviated for clarity, not accurate syntactically)

app.project.activeSequence.videoTracks[0 thru numTracks].clips[0 thru numClips]["name","inPoint","outPoint","start","end"]

app.project.activeSequence.audioTracks[0 thru numTracks].clips[0 thru numClips]["name","inPoint","outPoint","start","end"]

That process, however, misreported Source TCs for timeline items that had been sped up or slowed down.

Notes/questions on that issue here...

Timeline Clip Properties inPoint and outPoint give inaccurate results when clip speed / duration not 100%

PPro EDL exports, by contrast report Source TCs accurately even for sped/slowed items BUT they can't be exported programatically.

I haven't fully tested exportAsFinalCutProXML, if only because parsing XMLs gets involved and laborious

The ultimate goal here is to be able to do timeline-based reporting, including footage use etc.

Frankly I'd prefer iterating the timeline over exporting/parsing an EDL, but I'll take either.