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

Getting Error: Unknown Error when using exportAsMediaDirect()

Community Beginner ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

I'm trying to execute exportAsMediaDirect() in a simple script and am getting the error "Error: Unknown Error" as a result, no matter which preset I use. If I try to export with the same presets directly in Premiere it works fine, so it doesn't seem to be a problem with the project itself (I even tried using a dummy project with a single video imported from the samples and got the same result).

 

I've tried using the same script found in the PPanel sample here and it also doesn't work. Am I doing something wrong? Running on Windows, Premiere Pro version is 25.1.0.

 

This is the script I've used:

 

    var activeSequence = app.project.activeSequence;

    if (activeSequence) {
        var outputPath = "C:/Users/Fernando/Desktop/dummy-project/Output.mov";
        var presetPath = "C:/Program Files (x86)/Common Files/Adobe/CEP/extensions/PProPanel/payloads/example.epr";
        
        const result = activeSequence.exportAsMediaDirect(outputPath, presetPath, app.encoder.ENCODE_ENTIRE);
        alert(result);
    } else {
        alert("No active sequence found.");
    }

 

TOPICS
Export

Views

62

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

correct answers 1 Correct answer

Adobe Employee , Jan 10, 2025 Jan 10, 2025

Have you tried with double backslashes, instead of forward slashes, in those paths?

[probably need escape'd spaces in the path(s), as well]



Votes

Translate

Translate
Adobe Employee ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

Have you tried with double backslashes, instead of forward slashes, in those paths?

[probably need escape'd spaces in the path(s), as well]



Votes

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
Community Beginner ,
Jan 10, 2025 Jan 10, 2025

Copy link to clipboard

Copied

LATEST

That was the issue, thanks!

Votes

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