Skip to main content
Participant
August 15, 2025
Answered

Premiere pro failed to export H256 by using exportAsMediaDirect function

  • August 15, 2025
  • 2 replies
  • 263 views

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:

  1.  if used the Premiere pro exporter GUI (File->Export->Media...) and imported the same preset file (export_1080p_H265.epr) , encoding was successful 
  2.  Tried to create and save a new H256 preset file from Premiere Pro v25.3.0, the code still not worked
  3.  the code was working for H264 preset file
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
 
Correct answer Fergus H

@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

2 replies

Fergus H
Community Manager
Fergus HCommunity ManagerCorrect answer
Community Manager
August 18, 2025

@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

Kevin J. Monahan Jr.
Community Manager
Community Manager
August 16, 2025

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

 

Kevin Monahan - Sr. Community and Engagement Strategist – Adobe Pro Video and Audio
Participant
August 18, 2025

thanks to let me know that