Skip to content

Encoder object

app.encoder

The encoder object represents Adobe Media Encoder, and is used for local rendering, outside of Premiere Pro.

app.encoder is broken on Premiere Pro 14.3.1 - 15 on Mac only. Fixed in 22 and up. See here.


None.


app.encoder.encodeFile(filePath, outputPath, presetPath, workArea, removeUponCompletion, inPoint, outPoint)

Makes Adobe Media Encoder render (optionally, a specified range from) the specified file, with the specified settings.

ParameterTypeDescription
filePathStringA path to a file to render.
outputPathStringA path to an output file.
presetPathStringA path to a preset (.epr) file.
workAreaIntegerInteger denoting work area to be used:
- 0 - ENCODE_ENTIRE
- 1 - ENCODE_IN_TO_OUT
- 2 - ENCODE_WORK_AREA
removeUponCompletionIntegerIf 1, job will be removed once complete.
inPointTime objectA Time object, for the in point of new file.
outPointTime objectA Time object, for the out point of new file.

Returns a job ID as a String, for the render job added to the AME queue, or 0 if unsuccessful.


app.encoder.encodeProjectItem(projectItem, outputPath, presetPath, workArea, removeUponCompletion)

Makes Adobe Media Encoder render (optionally, a specified range from) the specified ProjectItem object, with the specified settings.

ParameterTypeDescription
projectItemProjectItem objectA project item to render.
outputPathStringA path to an output file.
presetPathStringA path to a preset (.epr) file.
workAreaIntegerInteger denoting work area to be used:
- 0 - ENCODE_ENTIRE
- 1 - ENCODE_IN_TO_OUT
- 2 - ENCODE_WORK_AREA
removeUponCompletionIntegerIf 1, job will be removed once complete.

Returns a job ID as a String, for the render job added to the AME queue, or 0 if unsuccessful.


app.encoder.encodeSequence(sequence, outputPath, presetPath, workArea, removeUponCompletion)

Makes Adobe Media Encoder render the specified Sequence object, with the specified settings.

ParameterTypeDescription
sequenceSequence objectA sequence to render.
outputPathStringA path to an output file.
presetPathStringA path to a preset (.epr) file.
workAreaIntegerInteger denoting work area to be used:
- 0 - ENCODE_ENTIRE
- 1 - ENCODE_IN_TO_OUT
- 2 - ENCODE_WORK_AREA
removeUponCompletionIntegerIf 1, job will be removed once complete.

Returns a job ID as a String, for the render job added to the AME queue, or 0 if unsuccessful.


app.encoder.launchEncoder()

Launches Adobe Media Encoder.

None.

Returns 0 if successful.


app.encoder.setEmbeddedXMPEnabled(enabled)

Determines whether embedded XMP metadata, will be output.

ParameterTypeDescription
enabledIntegerPass 1 to enable sidecar output, 0 to disable.

Returns 0 if successful.


app.encoder.setSidecarXMPEnabled(enabled)

Determines whether a sidecar file containing XMP metadata, will be output.

ParameterTypeDescription
enabledIntegerPass 1 to enable sidecar output, 0 to disable.

Returns 0 if successful.


app.encoder.startBatch()

Makes Adobe Media Encoder start rendering its render queue.

None.

Returns 0 if successful.