Render Queue

data-variant=info
data-slots=text
UXP for Adobe Media Encoder is in public beta. This reference is being written, and the supported API surface may change before general availability.

Since: 27.0

The Media Encoder Render Queue API is the used for all operations involving managing the app and render queue.

The RenderQueue object can be acceessed from the main app object:

const app = require("mediaencoder");
const renderQueue = app.RenderQueue;

Constants

These Render Queue Constants are used as parameters in various RenderQueue API methods for Media Encoder.

All Constants can be accessed via the RenderQueue object:

const app = require("mediaencoder");
const renderQueue = app.RenderQueue;
const PROGRESS_CATEGORY_ID = renderQueue.PROGRESS_CATEGORY_ID; // "AMEProgressCategoryRender"
const RENDER_QUEUE_RUNNING = renderQueue.RENDER_QUEUE_RUNNING; // 2

PROGRESS_CATEGORY_ID

Retrieves the unique identifier for the progress category for global progress of the AME renderer. This ID allows access to the global progress of the AME Renderer. To obtain the category, use getOrCreateProgressCategory() on the ProgressCategoryContainer object. The ProgressItem object should be used to manage individual progress items. Each job item is registered using its unique reference ID.

Type: string

Since: 27.0

RENDER_QUEUE_INVALID_STATE

Render queue invalid state.

Type: int

Since: 27.0

RENDER_QUEUE_PAUSED

Render queue paused state.

Type: int

Since: 27.0

RENDER_QUEUE_RUNNING

Render queue running state.

Type: int

Since: 27.0

RENDER_QUEUE_STOPPED

Render queue stopped state.

Type: int

Since: 27.0

RENDER_QUEUE_STOPPING

Render queue stopping state.

Type: int

Since: 27.0

RESULT_ERROR

Validation result when your render job returns an error.

Type: int

Since: 27.0

RESULT_SUCCESS

Validation result when your render job returns successfully.

Type: int

Since: 27.0

RENDER_QUEUE_STATUS_CHANGED

Event ID for when the render queue status changes.

The listener receives a RenderQueueEvent object with the following property:

Name
Type
Description
status
int
The new status of the render queue, one of the RENDER_QUEUE_* constants, such as RENDER_QUEUE_RUNNING

Type: string

Since: 27.0

AUDIO_PREPROGRESS_VALUE_CHANGED

Event ID for when the audio preprogress value changes.

The listener receives a RenderQueueAudioPreProgressValueChangedEvent object with the following properties:

Name
Type
Description
jobId
string
The ID of the job
inProgressText
string
The progress text to display
value
number
The progress, from 0.0 to 1.0

Type: string

Since: 27.0

NEXT_JOB_ENCODING_EVENT

Event ID fired when the next job in the render queue is about to start encoding. Subscribe to it on the render queue instance.

The listener receives a RenderNextJobEvent object with the following property:

Name
Type
Description
jobId
string
The ID of the job, use it with getJob

Type: string

Since: 27.0

const app = require("mediaencoder");
const instance = app.RenderQueue.getInstance();
const event = app.RenderQueue.NEXT_JOB_ENCODING_EVENT;
instance.subscribeToEvent(event);
instance.addEventListener(event, (nextJobEvent) => {
  const job = app.RenderQueue.getJob(nextJobEvent.jobId);
  console.log("Encoding started:", job.getOutputFilePath());
});

MEDIA_ITEM_CREATED_EVENT

Event ID fired when Media Encoder has created the source media of a job, as part of preparing the job for encoding. Subscribe to it on the render queue instance.

The listener receives a RenderMediaInfoCreatedEvent object with the following property:

Name
Type
Description
jobId
string
The ID of the job, use it with getJob

Type: string

Since: 27.0

ENCODE_COMPLETE_EVENT

Event ID fired when a job has finished encoding. Subscribe to it on the render queue instance.

The listener receives a RenderQueueEncodeCompleteEvent object with the following properties:

Name
Type
Description
jobId
string
The ID of the job, use it with getJob
isOkToMoveFile
boolean
true if the source file of the job can now be moved or deleted

Type: string

Since: 27.0

const app = require("mediaencoder");
const instance = app.RenderQueue.getInstance();
const event = app.RenderQueue.ENCODE_COMPLETE_EVENT;
instance.subscribeToEvent(event);
instance.addEventListener(event, (encodeCompleteEvent) => {
  const job = app.RenderQueue.getJob(encodeCompleteEvent.jobId);
  console.log("Finished:", job.getOutputFilePath());
});

Methods

enqueueFile

Enqueues a media source with a given RenderOptions object but does NOT start the queue to render. Renders a media source using a specified preset.

This method currently supports transcoding for various file types, including media files, Adobe Premiere project files, and Adobe After Effects project files.

For Premiere & After Effects projects, the first sequence or comp will be added to the queue. In order to specify a different sequence or comp for rendering, use enqueueProjectItem.

Since: 27.0

Parameters

Name
Type
Description
filePath
string
File path to the media source
presetFilePath
string
File path to the preset file
outputPath
string
File path to the output file
renderOptions
RenderOptions (optional)
Render settings to apply to the job before the queue starts

Returns

Name
Type
Description
jobGroupId
string
The job group ID for the current job
jobId
string
The job ID for the current job
message
string
Result message of enqueue action
outputPath
string
File path to the output file
result
number
0 = success, 1 = error

The Promise is rejected with { result, message } if a file or folder doesn't exist or the job can't be added to the queue.

const app = require("mediaencoder");
const result = await app.RenderQueue.enqueueFile(
  "path/to/source.mov",
  "path/to/preset.epr",
  "path/to/out.mp4",
);
result; // { jobGroupId: string, jobId: string, message: string, outputPath: string, result: number }

enqueueImagesAsSequence

Adds a group of images an image sequence to the render queue. The images will be sorted in alphabetical order by default.

Since: 27.0

Parameters

Name
Type
Description
containingFolderPath
string
The folder containing image files for the sequence
imageFilePath
string
The file to use as the first image file, the extension of this image path will be used in this function to filter the files in the directory
presetFilePath
string
File path to the preset file
outputFilePath
string (optional)
If outputPath is empty, then the output file name will be generated based on the containingFolderPath name

Returns

Name
Type
Description
success
boolean
Returns true if the job was added successfully
const app = require("mediaencoder");
const success = await app.RenderQueue.enqueueImagesAsSequence(
  "path/to/imagesequenceFolder",
  "path/to/imagesequenceFolder/IMAGE_0001.jpg",
  "path/to/preset.epr",
  "path/to/output/file.mp4",
);
success; // true

enqueueProjectItem

Adds a specific sequence from a Premiere Pro project, or a specific composition from an After Effects project, to the render queue, but does not start the queue. Call start to begin rendering, or use renderProjectItem to add and start in one step.

Use getProjectItems to look up the IDs of the sequences or compositions in a project.

Since: 27.0

Parameters

Name
Type
Description
projectPath
string
File path to the Premiere Pro or After Effects project
projectItemId
string
ID of the sequence or composition, as returned by getProjectItems
presetFilePath
string
File path to the preset (.epr) file
outputPath
string
File path to the output file
renderOptions
RenderOptions (optional)
Render settings to apply to the job before the queue starts

Returns

A Promise that resolves with the same result object as enqueueFile: { jobGroupId, jobId, message, outputPath, result }.

The Promise is rejected with { result, message } if projectItemId is empty, projectPath is not a project file, a file or folder doesn't exist, or the job can't be added to the queue.

const app = require("mediaencoder");
const projectPath = "path/to/project.prproj";
const items = await app.RenderQueue.getProjectItems(projectPath);
const result = await app.RenderQueue.enqueueProjectItem(
  projectPath,
  items[0].id,
  "path/to/preset.epr",
  "path/to/out.mp4",
);
result; // { jobGroupId: string, jobId: string, message: string, outputPath: string, result: number }

renderFile

Enqueues and immediately renders a media source with the queue to render using a specified source file, preset, and output directory.

This method currently supports transcoding for various file types, including media files, Adobe Premiere project files, and Adobe After Effects project files.

For Premiere & After Effects projects, the first sequence or comp will be added to the queue. In order to specify a different sequence or comp for rendering, use renderProjectItem.

Since: 27.0

Parameters

Name
Type
Description
filePath
string
File path to the media source
presetFilePath
string
File path to the preset file
outputPath
string
File path to the output file
renderOptions
RenderOptions (optional)
Render settings to apply to the job before the queue starts

Returns

Name
Type
Description
jobGroupId
string
The job group ID for the current job
jobId
string
The job ID for the current job
message
string
Result message of enqueue action
outputPath
string
File path to the output file
result
number
0 = success, 1 = error

The Promise is rejected with { result, message } if a file or folder doesn't exist or the job can't be added to the queue.

const app = require("mediaencoder");
const result = await app.RenderQueue.renderFile(
  "path/to/source.mov",
  "path/to/preset.epr",
  "path/to/out.mp4",
);
result; // { jobGroupId: string, jobId: string, message: string, outputPath: string, result: number }

renderProjectItem

Adds a specific sequence from a Premiere Pro project, or a specific composition from an After Effects project, to the render queue, and starts the queue. To add the item without starting the queue, use enqueueProjectItem.

Use getProjectItems to look up the IDs of the sequences or compositions in a project.

Since: 27.0

Parameters

Name
Type
Description
projectPath
string
File path to the Premiere Pro or After Effects project
projectItemId
string
ID of the sequence or composition, as returned by getProjectItems
presetFilePath
string
File path to the preset (.epr) file
outputPath
string
File path to the output file
renderOptions
RenderOptions (optional)
Render settings to apply to the job before the queue starts

Returns

A Promise that resolves with the same result object as enqueueFile: { jobGroupId, jobId, message, outputPath, result }.

The Promise is rejected with { result, message } if projectItemId is empty, projectPath is not a project file, a file or folder doesn't exist, or the job can't be added to the queue.

const app = require("mediaencoder");
const projectPath = "path/to/project.prproj";
const items = await app.RenderQueue.getProjectItems(projectPath);
const sequence = items.find((item) => item.name === "Final Cut");
const result = await app.RenderQueue.renderProjectItem(
  projectPath,
  sequence.id,
  "path/to/preset.epr",
  "path/to/out.mp4",
);
result; // { jobGroupId: string, jobId: string, message: string, outputPath: string, result: number }

stitchFiles

Stitches a list of media files together into a single output and adds it to the render queue as one job. Call start to begin rendering.

Since: 27.0

Parameters

Name
Type
Description
filePaths
string[]
Array of media source file paths
presetPath
string
File path to the preset file
outputPath
string
File path to the output file

Returns

Name
Type
Description
jobGroupId
string
The job group ID for the current job
jobId
string
The job ID for the current job
message
string
Result message of enqueue action
outputPath
string
File path to the output file
result
number
0 = success, 1 = error

The Promise is rejected with { result, message } if a file or folder doesn't exist or the files can't be stitched.

const app = require("mediaencoder");
const result = await app.RenderQueue.stitchFiles(
  ["path/to/source_a.mov", "path/to/source_b.mov"],
  "path/to/preset.epr",
  "path/to/out.mp4",
);
result; // { jobGroupId: string, jobId: string, message: string, outputPath: string, result: number }

getInstance

Gets an instance of the RenderQueue object.

Since: 27.0

Parameters

none

Returns

RenderQueueInstance

const app = require("mediaencoder");
const instance = app.RenderQueue.getInstance();
instance; // { addEventListener, dispatchEvent, getStatus, removeEventListener, subscribeToEvent }

getJob

Returns a RenderJob object for the given job ID, or null if no matching job is found in the queue.

Since: 27.0

Parameters

Name
Type
Description
jobId
string
The job ID returned from renderFile or enqueueFile

Returns

RenderJob, or null if no matching job is found.

const app = require("mediaencoder");
const result = await app.RenderQueue.enqueueFile(
  "path/to/source.mov",
  "path/to/preset.epr",
  "path/to/out.mp4",
);
const job = app.RenderQueue.getJob(result.jobId);

getJobGroup

Returns a RenderJobGroup object for the given job group ID, or null if no matching group is found in the queue. A group represents a single source and can contain multiple outputs (RenderJob objects).

Since: 27.0

Parameters

Name
Type
Description
jobGroupId
string
The group ID returned from renderFile/enqueueFile (jobGroupId) or RenderJobGroup.getID

Returns

RenderJobGroup, or null if no matching group is found.

Throws a parameter error if jobGroupId is not a well-formed GUID, or if there is no active render queue to resolve it against.

const app = require("mediaencoder");
const result = await app.RenderQueue.enqueueFile(
  "path/to/source.mov",
  "path/to/preset.epr",
  "path/to/out.mp4",
);
const group = app.RenderQueue.getJobGroup(result.jobGroupId);

getLogOutput

Get the Log Output of a specific render job.

Since: 27.0

Parameters

Name
Type
Description
jobGroupId
string
The job group ID for the current job
jobId
string
The job ID for the current job

Returns

Name
Type
Description
logOutput
string
Returns the log output including possible warnings and errors as a JSON string.
const app = require("mediaencoder");
const logOutput = app.RenderQueue.getLogOutput(
  "e8105b34-f5f8-4254-84d9-6345120568f4", // jobGroupId
  "2ed0087e-da4e-43f2-86b1-f46b04382b10", // jobId
);
logOutput; // '{"error":"","summary":[],"time":"2026-07-29T10:20:56"}'

getMissingAssets

Returns a list of missing asests for a specific render job.

Since: 27.0

Parameters

Name
Type
Description
jobGroupId
string
The job group ID for the current job
jobId
string
The job ID for the current job
includeSource
boolean
Get missing asset from the source group if requested
includeOutput
boolean
Get missing asset from the the job if requested

Returns

Name
Type
Description
missingAssets
string[]
Array of strings of missing asset paths
const app = require("mediaencoder");
const missingAssets = app.RenderQueue.getMissingAssets(
  "0115abc0-37b9-43ea-b192-f6547e57f1d7", // jobGroupId
  "1b814929-65b6-4d83-b822-68ce5cd2f741", // jobId
  true, // includeSource
  true, // includeOutput
);
missingAssets; // [
//     "Offline media detected and will be encoded using the Offline Media graphic.",
//     "Missing Asset: uhd_3840_2160_60fps.mp4"
// ]

getProjectItems

Returns the sequences of a Premiere Pro project, or the compositions of an After Effects project, at the top level of the project. Pass an item's id to renderProjectItem or enqueueProjectItem to render that item.

Item names are not guaranteed to be unique, so use the id to identify an item.

Since: 27.0

Parameters

Name
Type
Description
projectPath
string
File path to the Premiere Pro or After Effects project

Returns

A Promise that resolves with an array of objects with the following properties:

Name
Type
Description
id
string
ID of the sequence or composition
name
string
Name of the sequence or composition
type
string
"sequence" for Premiere Pro projects, "composition" for After Effects projects

The Promise is rejected with { result, message } if the file doesn't exist, isn't a project file, or can't be loaded.

const app = require("mediaencoder");
const items = await app.RenderQueue.getProjectItems("path/to/project.prproj");
items; // [{ id: "7717fd87-1b69-4290-b5b0-4eb990d7afd8", name: "Sequence 01", type: "sequence" }]

start

Starts rendering queue. Can be used to continue after a pause.

Since: 27.0

Parameters

none

Returns

Name
Type
Description
result
boolean
Returns true if start was successful
const app = require("mediaencoder");
const success = await app.RenderQueue.start();
success; // true

stop

Stops the complete rendering queue including all rendering items.

Since: 27.0

Parameters

none

Returns

Name
Type
Description
result
boolean
Returns true if stop was successful
const app = require("mediaencoder");
const success = await app.RenderQueue.stop();
success; // true

stopCurrent

Stops the current item, but continues rendering if other items are in the queue.

Since: 27.0

Parameters

none

Returns

Name
Type
Description
result
boolean
Returns true if stopCurrent was successful
const app = require("mediaencoder");
const success = await app.RenderQueue.stopCurrent();
success; // true

pause

Pauses the complete rendering queue including all rendering items.

Since: 27.0

Parameters

none

Returns

Name
Type
Description
result
boolean
Returns true if pause was successful
const app = require("mediaencoder");
const success = await app.RenderQueue.pause();
success; // true

removeAllJobs

Removes all jobs from the queue. This method can only be called if the rendering is stopped or completed.

Since: 27.0

Parameters

none

Returns

Name
Type
Description
result
boolean
Returns true if action was successful
const app = require("mediaencoder");
const success = await app.RenderQueue.removeAllJobs();
success; // true