Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Premiere pro failed to export H256 by using exportAsMediaDirect function

New Here ,
Aug 15, 2025 Aug 15, 2025

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
 
TOPICS
SDK
158
Translate
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

correct answers 1 Correct answer

Adobe Employee , Aug 18, 2025 Aug 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

Translate
Adobe Employee ,
Aug 15, 2025 Aug 15, 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 & Engagement Strategist – Pro Video and Audio
Translate
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 ,
Aug 18, 2025 Aug 18, 2025

thanks to let me know that

Translate
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
Adobe Employee ,
Aug 18, 2025 Aug 18, 2025
LATEST

@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

Translate
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