• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Premiere script exportAsMediaDirect() not working for Premiere Pro 2025

New Here ,
Nov 20, 2024 Nov 20, 2024

Copy link to clipboard

Copied

Hello,

I have a plugin script to export the current active sequence in Premiere Pro using:
    app.project.activeSequence(outPath, presetPath, workArea)

It is no longer working for Premiere Pro 2025 and I'm not sure why, when running that API it returns "Unknown error" so I can't investigate any further.

That API still works with my Premiere Pro 2024. Some other scripting APIs also suffer from this issue in Premiere Pro 2025 where they simply don't work anymore and we had to come up with workarounds.

Are there any recent changes to the scripting APIs? I tried looking for such updates in the PPro 2025 change log but couldn't find anything.

I'm thinking of a workaround using the encoder but that would require changing a lot of the current plugin flow so I'd first want to know if anyone else has the same problem and whether there are any solutions/updates from Adobe.

Any help is very much appreciated.

TOPICS
SDK

Views

154

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Dec 23, 2024 Dec 23, 2024

> app.project.activeSequence(outPath, presetPath, workArea) is no longer

> working for Premiere Pro 2025 and I'm not sure why...
> ...That API still works with my Premiere Pro 2024.

I feel safe in saying that code snippet has never exported the active sequence, in any version of PPro. 🙂

I've confirmed that PProPanel's example rendering code successfully renders, in current PPro shipping and beta releases, as does this snippet:

 

var seq = app.project.activeSequence;
if (seq){
	var result = 	seq.e
...

Votes

Translate

Translate
Community Expert ,
Dec 22, 2024 Dec 22, 2024

Copy link to clipboard

Copied

@Dev29789063rzh3 

 

I've moved your post from Coding Corner where it has not been answered for over a month to the Premiere Pro forum.

 

Jane

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 23, 2024 Dec 23, 2024

Copy link to clipboard

Copied

> app.project.activeSequence(outPath, presetPath, workArea) is no longer

> working for Premiere Pro 2025 and I'm not sure why...
> ...That API still works with my Premiere Pro 2024.

I feel safe in saying that code snippet has never exported the active sequence, in any version of PPro. 🙂

I've confirmed that PProPanel's example rendering code successfully renders, in current PPro shipping and beta releases, as does this snippet:

 

var seq = app.project.activeSequence;
if (seq){
	var result = 	seq.exportAsMediaDirect("/Users/bbb/Desktop/outName.mp4", 
											"/Users/bbb/Desktop/example.epr",
											app.encoder.ENCODE_ENTIRE);
	
}

 





Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Dec 23, 2024 Dec 23, 2024

Copy link to clipboard

Copied

LATEST

Hi,

Thank you for the reply. It was an error in what I typed.

The actual code to export the sequence is:

app.project.activeSequence.exportAsMediaDirect(sOutputPath, sPresetFilePath, iWorkAreaType)


and it has been working for several months now. It stopped working for about a week and now it's working again.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines