ENCODE_IN_TO_OUT in AME ExtendScript API app.getExporter().exportItem
Hello,
Premiere ExtendScript API has an API to use AME to render a sequence from a project - app.encoder.encodeFile(filePath, outputPath, presetPath, workArea, removeUponCompletion).
As its fourth parameter, it takes a "workArea" which can be ENCODE_IN_TO_OUT, meaning the AME should render the part that is between the in and out points set on the sequence in the Premiere project.
This in and out point of the sequence is also automatically honoured when dropping the prproj file to a watch folder that AME is configured to watch.
Now I am looking for a similar option in the AME ExtendScript API - app.getExporter().exportItem(source, destination, preset).
But I could not find it. As a result, the sequence in my prproj file is being rendered in full instead of only the part between in and out points.
I noticed a different method (exportSequence) which accepts leadingFramesToTrim/trailingFramesToTrim but it does not look like there is any easy way to get those frame numbers from the prproj from my AME script that I use to render a sequence. Please note that I only have access to the prproj file, which makes it difficult to know programmatically about the in and out points set on the sequence inside of the prproj.
So, is there any way in the AME API to make it honour the in and out points set on the sequence?
If not, it would be really convenient if that can be added in the next release.
Thanks,
Andaleeb
