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

Job is not sent to AME queue from extendscript file

New Here ,
Sep 22, 2020 Sep 22, 2020

Copy link to clipboard

Copied

Hi,

I have created a CEP extension for Premier Pro, and i'm trying to use app.encoder object to create a new proxy from the project item (app.encoder.encodeProjectItem...). This method is returning the job id and Adobe Media Encoder is opened, but the job is not sent to the queue... 

The code is:

 

 

const presetPath = 'path_to_preset/preset.epr';
const outputPath = '/output.mp4';
const projectItem = app.project.rootItem.children[0];
const workArea = 1;
const removeUponCompletion = 1;
const jobID = app.encoder.encodeProjectItem(projectItem, outputPath, presetPath, workArea, removeUponCompletion);
app.encoder.startBatch();
return jobID && outputPath; 

 

 

 

Note: Weird thing here is that it works if i start the debug mode in vscode (ExtendScript Debugger extension).

 

is there something missing to get it working properly?

 

Thanks in advance,

Rubén.

TOPICS
Error or problem

Views

227

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

New Here , Sep 23, 2020 Sep 23, 2020

The problem was related to the calculated path. The base path was calculated using

File($.fileName).fsName;

which was returning an empty string if the debugger was not enabled. Now the path is calculated using this code and it works like a charm:

csInterface.getSystemPath(window.SystemPath.EXTENSION)

 

Votes

Translate

Translate
New Here ,
Sep 23, 2020 Sep 23, 2020

Copy link to clipboard

Copied

LATEST

The problem was related to the calculated path. The base path was calculated using

File($.fileName).fsName;

which was returning an empty string if the debugger was not enabled. Now the path is calculated using this code and it works like a charm:

csInterface.getSystemPath(window.SystemPath.EXTENSION)

 

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