Copy link to clipboard
Copied
i am using Premiere Pro v25.3.0, i tried to encode an project to H256 format with following code, but the return of exportAsMediaDirect always is Error: -1 and there was not encoding happened, please help!!!! Can it be a bug from Adobe?
followings are i have tried or found:
var out_put_path = "C:\\Temp\\adobe_premiere\\out_put.mp4";
//var preset_path = "C:\\Temp\\adobe_premiere\\export_1080p_H264.epr";
var preset_path = "C:\\Temp\\adobe_premiere\\export_1080p_H265.epr";
seq = app.project.activeSequence;
if (!seq)
{
alert("No active sequence found. Please open a sequence in the project.");
}
var result = seq.exportAsMediaDirect(out_put_path, preset_path, 0)
$.writeln("Exported result: " + result); // output: Exported result: Error: -1
@Harishpal301676443nmz this error is caused by a change to Premiere Pro that was added in v25.3. It is no longer possible to programatically export HEVC. This was an intentional change. The change does not affect any other codec options.
Regards,
Fergus
Copy link to clipboard
Copied
Hey there, Harishpal,
I read your note. I see that you tagged the post with the SDK label. That way, the proper staff or community member will be able to find and address your issue. Thanks for your patience on the reply.
Cheers,
Kevin
Copy link to clipboard
Copied
thanks to let me know that
Copy link to clipboard
Copied
@Harishpal301676443nmz this error is caused by a change to Premiere Pro that was added in v25.3. It is no longer possible to programatically export HEVC. This was an intentional change. The change does not affect any other codec options.
Regards,
Fergus
Find more inspiration, events, and resources on the new Adobe Community
Explore Now