Media Encoder automation system with using ExtendScript
Hi
I develop Media Encoder automation system with using ExtendScript.
I have a question:
When I run my source code, AME 2017 was succeed but AME 2017.1 was failed.
I checked exception.
Exception message is :
"enc.encode is not a function."
following my source code
var id = // preset id;
var encHost = app.getEncoderHost();
var enc = encHost.createEncoderForFormat(args.format);
var preset = enc.loadPreset(args.pid);
if(preset){
var src = // source path
var dst = // dst path
enc.encode(src, dst);
}
enc.onEncodeFinished = function(success){
}
encHost.runBatch();
return {message:"Info from AME: Transcode has started."}.toSource();
}else{
throw "Preset was not found.";
}
Do you have any solutions?
