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

adding support for FFV1 and Matroska

$
0
0

Hi all,

 

I'm working as part of the IETF Working Group, CELLAR, which focuses on lossless audiovisual formats and is standardizing a lossless video encoding, FFV1, and an audiovisual container format, Matroska. The IETF working group charter, timeline, deliverable list and other info can be found the CELLAR working group page. Because of the level of work going into these standards and the small but steadily growing number of users, I wanted to start researching ways about increasing implementations through a mix of either volunteering and/or sponsorship.

 

From an initial look at the Adobe Import SDK, it seems that FFmpeg could bind with the Adobe SDK to allow import of both formats. I'm looking for advice or resources about developing Adobe plugins for the import/export of these video formats. I would also love to discuss this in more detail with anyone who may have familiarity with both the FFmpeg API and the Adobe SDK in order to get a sense of the level of effort involved.


Thanks much,
Dave Rice


Javascript API for premiere pro

$
0
0

Where i can find the javascript API link for Premiere pro. I want to change the Lumetri color parameters like Exposure, Contrast, HIghlights, Shadows, Whites, Blacks and Saturation etc programmatically.

 

Thanks,

 

Nehru

How to fetch frame rate of a project item?

cep_node context

$
0
0

Hi everyone,

I'm trying to get the basic PPRO Panel example work with the following addition:

Download a file and import into premiere's source monitor.

I'll be discussing the Download part of this task, as I'm failing with it.

I've see some discussions here and I've noticed that

require('http')

or

cep_node.require('http')

is being used.

As a new user of this product, I couldn't find a resource or documentation on where is that code can exists?

I've tried to include it in the .js file which is loaded first (ext.js in this example) but chrome debugger complains:

Uncaught ReferenceError: cep_node is not defined

What am I doing wrong?

 

Thanks!

 

EDIT:

Looks like the `<CEFCommandLine>` node in the manifest wasn't at its right place. 

I've just realized that maybe a validation of the manifest structure is something that would help investigate and save some time. 

If someone could direct me, I'll be happy to contribute.

Open additional window when opening multiple projects from extendScript.

$
0
0

I'm running app.openDocument(premiere_project_path) to open a project. That is working well. But if I already have project open it will close that and open the new project in it's place. Is there a way to open projects in a new window if another premiere instance is already running?

Premiere Pro Lumetri Color

$
0
0

Is there any Javascript API available to change the Premier Pro Lumetri Color programatically.

TypeScript Enabled CEP Development

$
0
0

Modern Tools and ExtendScript

Earlier this week, Bruce Bullis integrated a pull request into the CEP Samples repository that included a new Sample called TypeScript. TypeScript is a language that "transpiles" into JavaScript and JavaScript-based languages (e.g. ExtendScript). It can also be configured in certain environments (e.g. Visual Studio Code) to provide normal JavaScript (and, it turns out, ExtendScript) development with helpful type checking and IntelliSense/autocompletion support. Here's an example:

TSExample.gif

Open the PProPanel-vscode folder in Visual Studio Code (or other TypeScript-aware IDEs?), open up the Premiere.jsx file, and simply begin typing. The environment is already set up to provide rich IntelliSense support.

 

Powered By TypeScript Declaration Files and JSDoc

The environment has to get information about the types from somewhere, right? The type information is identified by the TypeScript system in the following ways:

 

  • In the Panel JavaScript Environment:
  • In the App ExtendScript Environment:
    • Uses the TypeScript-provided ES5 type information (ES3 is coming - when available, it will be switched to use that!).
    • Uses custom Type Declaration files (included within the sample here) to help make the IDE aware of what types are available, as well as documentation!
    • Sources JSDoc comments for type information.

 

Beyond this, TypeScript is capable of type inference (set var x = 5; and the IDE will infer that x is a number). For more on how TypeScript does all of this, see this document.

 

Inline ExtendScript and PremierPro API Documentation

The declaration files included in the sample are currently incomplete, but bbb_999 has indicated interest in helping to fill in the blanks. These files are an improvement over the current documentation in that they can be [more] easily read on the web (don't need to be downloaded and opened in a browser) and also power in-line documentation and suggestions (as in the above gif)!

 

Writing in TypeScript

As configured, the sample does not actually assume that you will be writing in TypeScript and transpiling to JavaScript, but that you are simply writing JavaScript/ExtendScript. If you wish to use this feature, you will have to configure your IDE to do so (Visual Studio Code, Webstorm, Sublime Text, etc.).

 

Writing in NEW JavaScript

It should also be noted that TypeScript can transpile from new JavaScript to old JavaScript. This may not seem all that interesting except that you could use the latest ES6 features to write code for both your panel JavaScriptor your app ExtendScript. These would be transpiled into platform-compatible versions: target: "es5" for panel and target: "es3" for ExtendScript!

 

As with TypeScript, this use-case would require setting up the TypeScript compiler.

 

Debugging In Visual Studio Code

This sample also contains configuration settings to allow debugging of the panel (HTML) environment directly in Visual Studio Code, rather than through a Chrome browser. See:

vscode-debugging.png

 

Questions? Comments? Ask/post away!

Mark in/out + add to Media Encoder?

$
0
0

After working on scripts for AE, I'm trying to get things going in Premiere.

 

However, the documentation here lacks severely, and finding the right functions isn't a walk in the park either. So I wanted to check if these two things are possible before I try to delve deeper:

 

  • Is it possible to set mark in and out (like when using shortcuts i + o) via extendscript?
  • Can that mark in/out selection be added to the Media Encoder queue? This would be the equivalent of pressing ctrl + m, and choosing "queue")

 

bbb_999 -- could you please shed a light on my questions?

 

Thanks in advance!


Parameter versioning doesn't work in c++ exporter

$
0
0

In my custom exporter i add parameters with every new version / release. This causes a screwed up UI interface when the plugin is in an existing project.

 

The Parameter Caching section of the Adobe Premiere Pro SDK Guide tells me to use parameter versioning. I already use SetParamsVersion() for quite a long time now and with every parameter change I increase the version number. But this does not improve the situation. Users have still problems with malfunctioning UI parameters. Need to flush parameter cache or create new projects.

 

  • I do not have fixed exporter presets
  • It is just about the upgrading plugin in an existing project

 

Can anybody please help me with that? What am I missing here?

 

Thanks,

Daniel

Plug-In not showing up in premiere pro

$
0
0

Hello, I'm from accevolution (www.accevolution.net) and we've got the problem that our plugins are not showing up in premiere pro at about 30% of the customers machines. Our workaround at the moment is to tell the customers to install the most recent graphics card driver, launch premiere pro while holding down the shift key and if this doesn't help, to set the ignore flag in the registry here: 3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US to "0".

 

Any suggestions why they are working perfectly on 70% and not showing up on 30%? From those 30% that have trouble are 99% windows-user, but we also got a few mac users with that problem.

 

It would be great if somebody could give me a hint.

 

Best regards,

 

Wolfram

Is there an idiots guide to getting started with extendscript in PP?

$
0
0

I’ve done AE scripting in the past & know JS, any links to how to get started in PP?

 

Thanks

background is not transparent on transition.

$
0
0

Hi, All.

I am creating a transition plugin from SDK_CrossDissolve.

By the way, I have a strange issue.

I set all pixel of output to {0,0,0,0} on plugin code, but the background is not transparent and layer image.

How can I set transparent background?

//code

...

PF_LayerDef* dest = output;

char* destData = (char*)dest->data;

...

for (int y = 0; y < output->height; y++)

{

     for (int x = 0; x < output->width; x++)

     {

          ((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 0] = 0;

          ((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 1] = 0;

          ((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 2] = 0;

          ((float*)destData)[(y * dest->rowbytes) / 4 + x * 4 + 3] = 0;

     }

}

.....

 

//result

Motion Graphics Templates API is not working

$
0
0

Hi, everyone

 

I tried new API(Premiere Pro 12.1 API improvements ) .

But Motion Graphics Templates API is not working.

My Premiere Pro version is 12.1.1(Build 10) and windows10 OS(Japan).

 

Could you tell me if you know anythings.

 

var activeSeq = app.project.activeSequence;
if (activeSeq) {    var filterString = "";    if (Folder.fs === 'Windows'){        filterString = "Motion Graphics Templates:*.mogrt";    }    var mogrtToImport = File.openDialog ( "Choose MoGRT", // title                                                filterString, // filter available files?                                                 false); // allow multiple?    if (mogrtToImport){        var targetTime = activeSeq.getPlayerPosition();        var vidTrackOffset  = 2;        var audTrackOffset = 1;        var newTrackItem = activeSeq.importMGT( mogrtToImport.fsName,                                                     targetTime.ticks,                                                     vidTrackOffset,                                                    audTrackOffset);        if (newTrackItem){            //var moComp = newTrackItem.getMGTComponent();  //this function return Undefined            var moComp = newTrackItem.components[2]; // Simple Web Caption.mogrt            if (moComp){                var params = moComp.properties;                var srcTextParam = params.getParamForDisplayName("Source Text");                if (srcTextParam){                    var val = srcTextParam.getValue();                    srcTextParam.setValue("New value set by PProPanel!");                }            }        }    } else {        app.setSDKEventMessage('Unable to import ' + mogrtToImport.fsName + '.', 'error');      }
} 

 

thanks

Common location for a plug in installer / Media Encoder Plugin Loading.log ?

$
0
0

Hi there,

I have a problem loading a plugin from After Effects and Media Encoder with Premiere not installed:

1. From the After Effects SDK guideline I read that "Installing your plug-ins in the common location will allow them to be loaded by Premiere Pro, if installed."

I am creating a Premiere Import plugin, which if I understood correctly should work on After Effects too. Now here is my question: will After Effects and Media Encoder look in the "/Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/" folder even if Premiere is not installed? If not, when writing an installer, should I put a copy of the plugin in both After Effects and Media Encoder plugin folders too?

2. is there a plugin loading log for Media Encoder? I can locate the ones for After Effects and Premiere, but not the one from Media Encoder.

Thank you for any help,

S.

Get Footage Size metadata

$
0
0

Hey there,

 

I have been trying to access the metadata section under "File Properties" to see the source size of an individual piece of footage. This information will help while generating a report about the Premiere Project through a panel.

 

I have tried accessing this through XML and XMP, but I am somewhat new to using these, and can't find the access I need. Any insights?

 

Thanks

Screen Shot 2018-07-18 at 2.52.16 PM.png


Is there a way add custom properties to Timeline clips?

$
0
0

Is there a way add custom properties to Timeline clips?

 

So something along the lines of...

 

(function(){  var ThisTimelineClip=app.project.activeSequence.videoTracks[0].clips[0];  ThisTimelineClip.MyCustomComment="Test";  ShowProperties(ThisClip);
})();

function ShowProperties(ThisObj){
  for(var ThisProp in ThisObj){    $.writeln(ThisProp+": "+ThisObj[ThisProp]);  }
}

 

Currently this Returns:

  duration: [object Time]

  start: [object Time]

  end: [object Time]

  inPoint: [object Time]

  outPoint: [object Time]

  type: 1

  mediaType: Video

  projectItem: [object ProjectItem]

  name: NameOfTimelineClip.mxf

  components: [object ComponentCollection]

 

but not

  MyCustomComment: Test

Extendscript in Premiere CC 2019 try catch not working

$
0
0

I am having a problem with using a try/catch statement in Extendscript for Premiere CC 2019. The call

app.getProjectViewIDs() 

used to return undefined if there were no open project IDs, but now in CC 2019 it throws an exception, which I can't catch.

 

With the below code, I still get an alert saying unhandled exception. How do I handle this exception? For a reference I have only opened a blank, default project, and haven't loaded anything at this point.

 

try {

     return app.getProjectViewIDs();

} catch (e) {

     return null;

}

 

Premiere Pro Scripting Guide - Omission Error

$
0
0

Hi All,

 

I am reviewing documentation for project.importFiles and I noticed that the Parameters field on page 17 of the current Premiere Pro Scripting Guide is not accurate. It seems to be the parameters field from the previous method in the list, openSequence().

 

I noticed this error in the documentation while troubleshooting "Bad arguement importFiles", my arguements are a file path string, true, false, and a ProjectItem which is the bin.

 

Please let me know if you can provide accurate documentation or any assistance with this issue.


Thanks,

 

 

John Pooley

Output's width and height is changed in Render function when I change origin.h and origin.v on PF_Cmd_FRAME_SETUP command selector.

$
0
0

Hi, everyone.

I hope you are doing well.

I am creating a simple PPro plugin.

Btw I have a problem.

Output's width and height is changed in Render function when I change origin.h and origin.v on PF_Cmd_FRAME_SETUP command selector.

 

There is this issue only on premiere pro. output's width and height is not changed in Render function even though I change out_data->origin.h and out_data->origin.v in FrameSetup.

 

Would you let me know why there is the difference?

 

Regards,

Anthonie.

How can I change "Input LUT" in Lumetri color using Extendscript for several videos?

$
0
0

I made a script, which has to set LUT from the file. I add my .cube file in default folder (C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\Lumetri\LUTs\Creative) and after use the line:

app.project.activeSequence.videoTracks[1].clips[0].components[2].properties[30].setValue(1 4, true);

But when I select other sequence, "Input LUT" stays the same (or [Custom], but not my settings). How can I fix it?

P.S. If I execute "app.project.activeSequence.videoTracks[1].clips[0].components[2].properties[30].setValue(1 4, true)" not in the loop - Everything works fine.

Viewing all 53010 articles
Browse latest View live


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