Copy link to clipboard
Copied
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?
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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".
Copy link to clipboard
Copied
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:
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
To create a subclip from a sequence, but with only one audio and video track enabled, your panel would
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.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now