ExtendScript encoder.encodeSequence

New Here ,
Jun 11, 2021 Jun 11, 2021

Copy link to clipboard

Copied

Hello

 

Complely new to ExtendScript here. I'm trying to launch Media Encoder and render my sequence (after watching (https://www.youtube.com/watch?v=iI_gPrgB8U8&t=35s).

 

I get an error "Illegal Parameter type".

 

This is what I'm doing :

var outputFile = "/Users/Me/Desktop/EncoderTest/test.mp4";
var encoderPreset = "/Users/Me/Documents/Adobe/Adobe%20Media%20Encoder/15.0/Presets/MyPreset.epr";
app.encoder.launchEncoder();
var jobID = app.encoder.encodeSequence(sequence, outputFile, encoderPreset, 1, 1);
Learn how to render sequences, project items, and files with a script in Adobe Premiere!---------------------Script Code: https://github.com/NTProductions/pr...
TOPICS
Export

Views

133

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
community guidelines
New Here ,
Jun 11, 2021 Jun 11, 2021

Copy link to clipboard

Copied

LATEST

Okay - I have no idea why but fiddling around with VS Code solved the problem.

Now I don't get an error message but nothing gets added to the Media Encoder queue (it launches just fine)

code :

var project = app.project;
var sequence = project.activeSequence;
var outputFile = "/Users/Me/Desktop/EncoderTest/test.mp4";
var encoderPreset = "/Users/Me/Documents/Adobe/Adobe%20Media%20Encoder/15.0/Presets/PeersPreset.epr";

app.encoder.launchEncoder();

app.encoder.encodeSequence(sequence, outputFile, encoderPreset, 0, true);

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
community guidelines