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

ExtendScript how to export selected audio

New Here ,
May 24, 2024 May 24, 2024

Copy link to clipboard

Copied

Hey, hoping someone can help

 

I'm creating a premiere pro extension. I want to export the selected audio in the sequence.

 

For example, I have audio1.wav. I drag it into the sequence, then cut it into 2 audio clips. I want the extension to export only one of those clips when selected (not the entire audio1.wav).

 

Is there a way to get start and end points of the selected clip then export only that?

 

Thank you

 

P.S:

app.project.activeSequence.exportAsMediaDirect exports the entire sequence.

Ideally, i don't want it to use AME.

 

TOPICS
How to , SDK

Views

457

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 2 Correct answers

Adobe Employee , May 24, 2024 May 24, 2024

>Is there a way to get start and end points of the selected clip then export only that?

Yes; however, what will you do if more than one audio trackItem is selected? 

Briefly: Get the sequence selection, set the sequence in/out points to the beginning/end of the trackItem, then render.


Votes

Translate

Translate
Adobe Employee , Jul 10, 2024 Jul 10, 2024

To export only audio, use an export preset (.epr file) that references an audio-only format.

PProPanel shows how to render in PPro instead of AME.

Votes

Translate

Translate
Adobe Employee ,
May 24, 2024 May 24, 2024

Copy link to clipboard

Copied

>Is there a way to get start and end points of the selected clip then export only that?

Yes; however, what will you do if more than one audio trackItem is selected? 

Briefly: Get the sequence selection, set the sequence in/out points to the beginning/end of the trackItem, then render.


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
New Here ,
May 24, 2024 May 24, 2024

Copy link to clipboard

Copied

Thanks for the response, I managed to set the in and out points

 

>...then render.

I'm using the activeSeq.exportAsMediaDirect(outputPath, presetPath, ENCODE_IN_TO_OUT), but I am getting "Error: Unknown Error".

 

var outputPath = "D:/Audio/audio.WAV";
var presetPath = "C:/Users/.../WAV 48 kHz 16-bit.epr"
var res = activeSequence.exportAsMediaDirect(outputPath, presetPath, 1);
alert(res); // Error: Unknown Error


I tried using Pymiere to do this in python, same error.

 

I do not have AME installed. Could that be why? I can export from premiere pro normally without AME. So I figured there's a function/method to do that in extendscript. Any tips?

 

Thank you

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
New Here ,
May 24, 2024 May 24, 2024

Copy link to clipboard

Copied

NVM I was able to resolve the issue by refering to the sample code on github

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
New Here ,
Jul 10, 2024 Jul 10, 2024

Copy link to clipboard

Copied

Hey iwas wondering if you solved the issue? i am having an issue.
i want to export entire sequence's audio only to temporary folder using extend exript without AME. is that possible?

 

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
Adobe Employee ,
Jul 10, 2024 Jul 10, 2024

Copy link to clipboard

Copied

LATEST

To export only audio, use an export preset (.epr file) that references an audio-only format.

PProPanel shows how to render in PPro instead of AME.

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