Skip to main content
cspears2002
Participant
August 28, 2014
Answered

Exporting from Adobe Premiere using extendscript

  • August 28, 2014
  • 4 replies
  • 2866 views

Hi!

I'm trying to figure out how the exportTimeline() function works.  So far, I have managed to import files and add them to a sequence.  Now I want to export the sequence as a Quicktime movie.  Eventually, I want to be able to set start and end points for an export (i.e. export a work area, export a clip from the timeline, etc.).

I did try to use the function by passing in a path to a file name:

exportTimeline("somepath.mov")

I didn't get an error message, which is good.  I got a 'result:7' (not sure what that means).  I did not see any new files exported to the path though.

Thanks!

Correct answer Bruce Bullis

PProPanel

4 replies

kenn68121511
Participant
August 31, 2024

Why can't you guys just answer the question instead of always pointing to your samples?

Bruce Bullis
Community Manager
Community Manager
September 21, 2014

I've discussed the issue with Chris; we have better ways of exporting footage than exportTimeline(), which DO respect the work area.

Participant
November 30, 2014

Why not share what you have in the forum? that way everyone with a similar question will be helped.

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
December 1, 2014
cspears2002
Participant
September 8, 2014

Ok I'm figuring this out.

Seems like the trick is to use Adobe Media Encoder to render out the final clips as quicktimes (or whatever format you want).

I have exported the project as a XML file.  Then I scraped the XML with Python and lxml to get the start and end points I want and wrote that data out as another XML file, which hopefully I can read back into Premiere with ExtendScript.  I will set the in and out points and render with Media Encoder.

Hopefully this will work! 

Bruce Bullis
Community Manager
Community Manager
September 7, 2014

Per the sample reference I already sent you, don't use exportTimeline().