Highlighted

Job is not sent to AME queue from extendscript file

New Here ,
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.

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)

 

TOPICS
Error or problem

Views

55

Likes

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

Job is not sent to AME queue from extendscript file

New Here ,
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.

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)

 

TOPICS
Error or problem

Views

56

Likes

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
Sep 22, 2020 0
New Here ,
Sep 23, 2020

Copy link to clipboard

Copied

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)

 

Likes

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
Reply
Loading...
Sep 23, 2020 0