Skip to main content
Participant
September 22, 2020
Answered

Job is not sent to AME queue from extendscript file

  • September 22, 2020
  • 1 reply
  • 343 views

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.

This topic has been closed for replies.
Correct answer ruben.carreno

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)

 

1 reply

ruben.carrenoAuthorCorrect answer
Participant
September 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)