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

Export frames or subclip between two markers

Community Beginner ,
Jan 29, 2019 Jan 29, 2019

Hi!

I'm currently developing an extension using extendscript and i want to export frames or subclip between two markers.

I read the premiere scripting guide and didn't found any method that allows me to navigate the frames of a clip.

Is there any way that to get the next frame of a marker? Or the clip(s) between two markers?

TOPICS
SDK
1.7K
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 , Jan 29, 2019 Jan 29, 2019

You don't need to navigate frames of a clip, to transcode or sub clip a time range from source media.

transcode() and createSubclip() both take in and out point params, which you can get from your markers' start and end times.

Translate
Adobe Employee ,
Jan 29, 2019 Jan 29, 2019

You don't need to navigate frames of a clip, to transcode or sub clip a time range from source media.

transcode() and createSubclip() both take in and out point params, which you can get from your markers' start and end times.

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
Community Beginner ,
Feb 01, 2019 Feb 01, 2019

Thanks bbb_999 for the answer!

What's the specific projectItem where i should call the createSubclip() method?

I'm trying to call it on the first children of the rootItem but it says "undefined is not an object".

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 ,
Feb 01, 2019 Feb 01, 2019
What's the specific projectItem where i should call the createSubclip() method?

Re-reading above, I think you're talking about a range within a sequence, not footage. If that's the case, you'd want to create a sub-sequence, not a sub-clip. Here's how:


https://github.com/Adobe-CEP/Samples/blob/f7d41a21258d1b8a577183cd59216e7ca9abb74f/PProPanel/jsx/PPR...


To determine the range to export; find the start and end times of the appropriate sequence markers. Here's some sequence marker accessing code:

https://github.com/Adobe-CEP/Samples/blob/f7d41a21258d1b8a577183cd59216e7ca9abb74f/PProPanel/jsx/PPR...


So, if you set the sequence's in and out points to match the start/end time(s) of appropriate markers, you can call encodeSequence() telling it to respect the sequence in/outs.

https://github.com/Adobe-CEP/Samples/blob/f7d41a21258d1b8a577183cd59216e7ca9abb74f/PProPanel/jsx/PPR...

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
Community Beginner ,
Feb 07, 2019 Feb 07, 2019

I want to create a subclip from only one video track and one audio track.

Once i have this clip in a projectItem var how do i output it to mp4?

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 ,
Feb 07, 2019 Feb 07, 2019

I want to create a subclip from only one video track and one audio track.

By 'subclip', do you mean a new piece of self-contained media, or do you mean a PPro sub-clip (a reference to pre-existing media)?

Once i have this clip in a projectItem var how do i output it to mp4?

PProPanel shows how to transcode a projectItem.

https://github.com/Adobe-CEP/Samples/blob/f7d41a21258d1b8a577183cd59216e7ca9abb74f/PProPanel/jsx/PPR...

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
Community Beginner ,
Feb 07, 2019 Feb 07, 2019

By subclip i mean a new piece of self-contained media created from clips in the timeline.

When i call the encodeProjectItem method how do i specify the file type i want? in this case specific, mp4.

Thanks

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 ,
Feb 07, 2019 Feb 07, 2019
LATEST

To create a subclip from a sequence, but with only one audio and video track enabled, your panel would

  • Disable ('mute') the tracks you don't want
  • Set the sequence's in and out points to identify the range you want
  • Call encodeSequence(), specifying app.encoder.ENCODE_IN_TO_OUT as the range specifier
  • Use importFiles() to bring the resultant media into the project

When i call the encodeProjectItem method how do i specify the file type i want?

By providing the path to an output preset (.epr file) associated with the correct file type.

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