Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all 53010 articles
Browse latest View live

export sequence as media file

$
0
0

HI,

I want to export sequence as media file i have tried something but that did not generate any output file and even not giving any error message

 

   // app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_IN_TO_OUT);

   //app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_ENTIRE);

//app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_WORKAREA);


Having trouble deleting transitions with the api

$
0
0

Hi friendly Adobe peeps,

 

I'm having trouble deleting transitions with the Premiere api. I've been using QE, thusly (simplified from a loop):

 

app.enableQE();

qe.project.getActiveSequence().getVideoTrackAt(0).getTransitionAt(0).remove()

 

... & it works but there is a memory leak, so I can't run the script twice. I chatted to bbb_999 offline & he suggested I don't use QE, so I've got this now:

 

app.project.sequences[0].videoTracks[0].transitions[0].unbind(true)

 

... which returns Undefined and the transition isn't deleted. I suspect I'm not passing the correct parameter to the unbind method. Any help would be appreciated!

 

As a side question: how do I find the arguments list for methods, since there is no documentation? I'm getting pretty exhausted browsing the DOM in ExtendScript Toolkit and then guessing what method arguments might be.

 

Cheers,

Raphael

Recording all actions taken in Adobe Premiere

$
0
0

Is there a way to record the actions that the user takes as they are doing it and write the output to another file?

 

Screenshot_040816_125522_AM.jpg

Access a Clip-Item from Premiere-Importer-Plugin

$
0
0

Hi,

 

I would like to access already imported clip-items in a bin from an importer-plugin. Unfortunately I didn't find any way to retrieve a list of clipitems in a project. Is there a way to access this information (maybe a specific Suite-callback or one of the im* functions)?

 

I would like to avoid importing an item, in case it was already imported before by another importer-plugin.

 

Is there anyone who already did something like this before or knows a way to do it?

 

Cheers,

 

Martin

Effect plugins not working on Nvidia GTX 1080

$
0
0

Hi,

 

Sorry if this is not the right place to ask the question.

I have just noticed that the effect plugins I developed (with AE SDK) are not working on a Windows 10 CUDA Gtx 1080 GPU. When i apply the plugin on the sequence, it first appears a dark curtain (see enclosed picture before and after plugin application) and the effect doesn't work at all. I know that this graphic card is not on the list of supported ones (Premiere Pro System Requirements for Mac OS and Windows ) but i'd like to know if this problem is really linked to the graphic card or something I may have missed. Up to know those plugins have worked fine on most AMD and Nvidia graphic cards.

Thx!

 

Screen Shot 2016-08-03 at 09.18.37.png

Screen Shot 2016-08-03 at 09.19.01.png

Premiere 11.1 Crashing Extendscript using app.project.importSequences

$
0
0

Hi all,

 

Im currently trying to make an Premiere Panel, which should allow the fast import of sequences.

So i was trying around with the import functions of the Adobe Pro Panel, which looked perfect.

 

Here is a excerpt of my testcodei used in Extendscript Toolkit CC.

 

var file = File.openDialog () ;
var pathToPrProj = file.fsName;

var seqIDsToBeImported = new Array;
seqIDsToBeImported[0] = 1;

app.project.importSequences(pathToPrProj, seqIDsToBeImported);

 

This was based on the sample provided in the PremierePro Panel (Premiere.jsx:96-103).

When executing the code through the Toolkit i get following Error Message.

 

DebugError.PNG

After this message Premiere suddenly shows an input Error afterwards and comes up with the typical "Premiere encountered an Error and has to be closed...".

 

To be honest, i have no idea what could cause this error and im also not able to watch the whole line in the Error window.

 

Does anyone know a workaround or simply sees where my mistakes is?

 

Thanks in advance, everyone!

 

Leon

 

p.s. Error is reproducible

Premiere Pro event list?

$
0
0

In the PProPanel sample (github.com/Adobe-CEP/Samples/blob/master/PProPanel/ext.js) there are sample event hooks for "com.adobe.csxs.events.PProPanelRenderEvent" and "com.adobe.csxs.events.WorkspaceChanged" events but these aren't listed in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/cs-extension-builder/ pdfs/CC_Extension_SDK.pdf  or anywhere else that I've seen.

 

Are there Premiere Pro events for post-export functions, eg. Final Cut Pro XML or EDL export?

 

Where can I find a list of supported event types fired by Premiere Pro? Alternatively is it possible to have a "wildcard" event handler which is called for all application event types?

 

 

Premiere & multi-threading

$
0
0

Q: (copied here from an email exchange I had with Zac)

 

I’m trying to use an old plug-in that’s an AEX from 2003. It works on Prem Pro but I want to use it in CS3 (coz I have HD footage and Prem Pro can’t do HD). Anyhow it doesn’t work in CS3.

 

I was stepping through it in the debugger and it looks like it gets called by multiple threads concurrently and it then Stack Overflows and causes an Access Violation.

 

So, I guess my question is – is CS3 multi-threaded accessing the plugin and did Prem Pro not do that?

 

My assumption is that the AEX isn’t thread safe or is single core thread safe and can’t handle threads running in parallel on multi-core pcs. (I’ll test setting the affinity of Premiere to one core to see if that fixes parallel-thread execution potential bugs).

 

If so, what would happen if I make a skeleton AEX that opens this AEX from somewhere out of the Premiere tree, forwards all the calls but only lets one thread in at once?

 

A: (from Zac via email)

 

Here’s a good description of what changed in CS3, from the AE SDK Guide:

 

“Starting with Premiere Pro CS3, Premiere uses multithreaded rendering for AE effects. For AE effects, there is a critical section which is used for all commands, except those relating to arbitrary data. The critical section prevents two threads from calling the same instance of the effect at the same time. However, Premiere creates multiple instances of the effect, which can be called concurrently from separate threads. Effects should not depend on static, non-constant variables.

 

New in Premiere Pro CS4.1, we have added a new flag to the AE API, PF_OutFlag2_PPRO_DO_NOT_CLONE_SEQUENCE_DATA_FOR_RENDER, to allow a plug-in to opt out of Premiere Pro's multithreaded rendering of AE effects. When the flag is set, we don't clone the sequence data across all the threads and we only call into the plug-in on one thread at a time. Premiere Pro will still render using multiple threads, but the effect will only render on one thread at a time, and the same sequence data will be used. This flag is useful for plug-ins that provide their own internal multithreading, or plug-ins that render frames based on previous frames, such as image stabilizers.”

 

So for CS3, since we don’t support that new flag in 4.1, your suggested workaround using a shim plug-in just might work.  But it’s hard to say for certain, since we don’t really know what is happening…

 

Zac

 

So, I guess the answer is that this old plugin is using statics or globals and is thus not multi-thread capable.

Solution: Get CS4!! 

 

One for the too-hard basket right now.....


Plugin idea: robust syncing via timecode in timeline

$
0
0

I produce multi-camera unscripted/doc/reality programming, and consistently find myself needing a reliable way to sync several layers of stop/start cameras with free run TC to a timecoded audio source. 

I have spent a good amount of time working with PPro's "synchronize" function in the timeline, and found it to be completely awesome in theory, but pretty limited in practice. It can only do one clip at a time, and ultimately it's not much of a timesaver beyond just copying and pasting start timecodes of clips and editing them into the timeline that way. I even tried making a 6-hour timecoded slug track and mass syncing to that -- no dice.  It seems like the functionality is there, it just needs to be expanded. I don't suppose anyone knows whether Adobe plan on this in the future? Right now it's a serious roadblock preventing me from moving all my broadcast productions to PPro instead of Avid MC.

 

The functionality I need would be akin to the auto sequence function in Avid MC.  It would go something like this:

 

 

- Assign each camera a video track

- Drop all clips from that cam into that track

- Drop dual system audio WAVs onto their own tracks

- Use plugin to align all clips (while keeping them on the track they're on) to the corresponding "master track" timecode on the timeline (starting TC of the timeline would have to be set in advance, or perhaps could be set as part of the plugin's workings)

 

 

Many people would point me to Pluraleyes for this, but it's not always an option because I frequently have at least 1 camera far enough removed from the action so that it can't pick up useable scene audio.  We are jam synced to free run TC via LockIt Boxes on each camera.  I also can't use multiclipping in PPro, because it treats each stop/start as a new angle, and that quickly becomes untenable on a 12-hour x 4 cameras shoot day.

 

If you're a developer and you've read this far, maybe you have an idea of how this could be solved.  Let's talk -- I'd be willing to make a financial investment in making this a reality!

 

Thanks

Chris

How to continue transition rendering with custom dialog open

$
0
0

Hi,

 

I'm working on a plugin for some custom transitions (currently for CS6/CC on Windows).

I'm using a custom dialog (hasCustomDialog in PiPL) during esSetup to set the transition parameters. While the dialog is open the execution of Premiere is halted until the dialog gets closed.

The problem is, while I'm fiddling with the parameters I can't see changes in the program monitor and I don't get any feedback from Premiere.

I tried to make the dialog non-blocking but then Premiere didn't rerender the frames when I changed something in the dialog.

 

Does anybody know if it is possible to keep the dialog open and still have Premiere actively updating the rendered view?

 

 

Regards,

Philipp Stelzer

how can i rename item of rootitem in premiere project and move this item to a bin by actionscript

$
0
0

I use this code in my button:

var prj:Project = Premiere.app.project;
var arr:Array = new Array();
arr[0] = "c:\abc.mp4"
prj.importFiles(arr);

 

Premiere project add an item named "abc.mp4" but i want display this item with name like "somethingiwant.mp4".

and then i create bin by:

 

prj.rootItem.createBin("tempbin");

 

i want move the clip into this bin.


I can not do these, help me please !!

Demo panel loading undocked with no surrounding window

$
0
0

Hi,

 

I have followed the instructions on this page to setup the demo panel for Adobe PP.

 

https://github.com/Adobe-CEP/Samples/tree/master/PProPanel


It did load and I opened it from the Window > Extensions menu. But it appears undocked and without any window bars surrounding it (the one that has the 'x' at the top right corner). So I can't drag it anywhere or close it.


Any ides why that would happen?


I am using Adobe PP CC v.9.0.2 on Windows 7 (64).



Thanks in advance!

Update all clips to latest version

$
0
0

I need a script that can look at all of my clips and see if there is a newer version, if there is, update the clip to the newer version.  What would be the best way for me to go about this?  All of the clips will most likely be quicktimes and will have a version number in the file name (..._v002.mov, ..._v003.mov, etc..)

 

Thanks!

Is it possible to install in Premiere Pro CC 2017 the panel plug-in using ExpManCmd.exe ?

$
0
0

It runs the ExpManCmd.exe to install the panel plug-in can not be installed returns the status value of -403.

There was no problem in Premiere Pro CC 2015.4, but is a situation that can not resolve the problem Premiere Pro CC 2017.

*OS is Windows7.

 

I am developing the panel plug-in of Premiere Pro of my for customers.

Customer's environment can not use a internet.

For this reason it is necessary to install by ExpManCmd.exe.

 

Thank you.

Getting Display Name Of Clip In Sequence?

$
0
0

Does anyone know if there is a way to access the name of a clip in a specific sequence? I'm looking for the name that is displayed, not necessarily the projectItem name.

 

In Premiere you can right click on a clip in a sequence and rename the instance of that clip, but not have that actually rename the source item's name in the project.

I'm looking for a way to view the renamed clip's name (and potentially modify it)

 

I know I can get the source name of a clip with something like this:

app.project.activeSequence.videoTracks[0].clips[0].projectItem.name;

 

But that won't give me the renamed name.

 

Has anyone come across this before? Any help is appreciated!

Thanks!


Project automatization

$
0
0

Hi,

I've been wondering is there any way to automate applying presets in premiere pro ?
There's a lot of presets where you have to cut your clips few times and apply different effects to make it work.
I would like to have something like actions in Photoshop. Something that would make me able to save a process and then repeat it a lot of time.
Is there any way to write plugin for that ? Or script ? Or is already something like this ? 

 

 

 

I know how to write some basic plugins using C++ and also Scripts using extendscript.

 

 

Best regards.

How to tell if a File is Being Rendered/Written to

$
0
0

I've been trying to prevent my panel from importing files that are currently being rendered to avoid Premiere Pro throwing an "Cannot Import" error.

 

I've tried:

  • Comparing the modified date of the file (File.modified) to the current date, and half the time this works, but the other half the modified date won't update enough to be a reliable indicator.
  • Getting the file size with File.length and then getting the size again after a 1 second .setTimeOut, but that also yielded inconsistent results.
  • I attempted BridgeTalk() to get the names of rendering files in After Effects or AME, but I can't return values from AE until the render is finished, which defeats the purpose.
  • I've also tried filtering files by attributes of readOnly, open, write access, rename access, path change access, and others, but nothing seems to consistently differentiate a file that is currently rendering from one that is complete.

Does anyone have a method to use that can distinguish a file that is currently being rendered/written to from a completed file? All thoughts are appreciated.

 

Thanks,

 

Justin

Render Sequence In to Out

$
0
0

I am trying to use the following in a script.

I cant find anything about it, is it not possible?

AWS S3: Download media file get corrupted

$
0
0

Hi All,

 

I am trying to download media file (image or video) from AWS S3 using nodejsaws-sdk module. The file is downloaded but I couldn't open as it looks corrupted. Also noted that file size is not same as source file. Refer below code:

 

 

var AWS = require('aws-sdk');

var options = {
accessKeyId: "XXX",
secretAccessKey: "XXX"
};
var s3 = new AWS.S3(options);

var bucketName = 'test-bucket';
var keyName = 'test.jpg';
var params = {Bucket: bucketName, Key: keyName};

var fsModule = "fs";
var fs = require(fsModule);

// This requires when running this code in panel
AWS.util.stream = require('stream');

var writeStream = fs.createWriteStream('D:/test.jpg');
var readStream = s3.getObject(params).createReadStream();

readStream.pipe(writeStream);

 

I have added aws-sdk node module in my extension folder.

 

Note:
(1) I can download and open txt file without any issue
(2) If I run this code outside panel context (run in local nodejs server) it works for all type of files including text and media!!

 

 


Premiere Pro version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

Functional usage of getLinkedItems method on a track item object

$
0
0

Hi All

 

Am trying to get actionable "linked item" info from clips in an active sequence... what I mean by that is that on finding a clip (a track item) that has linked items (via clip.getLinkedItems) I'm trying to uniquely identify the correspondingly linked elements in the active sequence.'

 

As far as I can seem to tell tho, getLinkedItems just provides a regular track item collection object, with no objective reference as to 'where'in the active sequence those linked items are located (because there's no way to discern the track group, track no and/or clip no of each trackItem object contained). Am I understanding that correctly?

 

For example, if I have a clip with video on V1 and linked audio on A1 and A2 ... and I have a duplicate of that same clip on V2 with linked audio on A3 and A4 :

clipV1.getLinkedItems will return a collection with 1x clip-typeVideo object and 2x identical clip-typeAudio objects.

clipV2.getLinkedItems will return the same as the above ... as will clipA1/clipA2/clipA3 and ClipA4.getLinkedItems

 

... in that situation there would seem to be no way for me to identify directly (or even by inference) which clip elements are actually linked to each other.

 

So I'm thinking I may be using the wrong call to do what I'm trying to do... or maybe its the right call, but I'm using it in the wrong way? Or perhaps it's just not possible to do what I'm trying to do (other than by employing a 'best guess' logic) ... in which case, how is getLinkedItems intended to be used?

 

If anyone could shed a light it would be much appreciated. I'm learning as I go, including understanding both the power and the limitations of whats available for Premiere scripting.

 

Many thanks in advance.

Andy

Viewing all 53010 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>