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

How to know that the user executed the 'play' command ?

$
0
0

Hello,

We have an importer plugin (that streams media from a remote storage) and a PPro JS/JSX Panel (that browse that remote storage).

 

We need to know as soon as the user invoked the play command (clicked the play button, or the shortcut key, or whatever) even before the PPro started the actual playback, so we can start streaming ASAP and fill the playback cache properly (to avoid drop frames during playback).

 

Today, we can tell that the PPro started playing using our other (transmitter) plugin, when the StartPlaybackClock method is invoked. But that is "too late" - this few hundreds of milliseconds would have helped us to avoid drops. (Likewise, If there was such event on the JSX layer, it would have been helpful too - we could find a quick way to transmit the info down to the C++-importer-plugin. Currently we found only a way to observe the playback-state by polling).

 

Thanks,

Oran Gilad

XTRMX R&D Leader


How to avoid PPro reading from importer with 'jumps' ?

$
0
0

Hello,

 

Our importer plugin reads from a remote storage. Usually everything works fine and the playback is smooth.

 

However, sometimes there is a temporary latency (mainly when start playing) so  some frames might be slower to read. In that case, PPro switch to skip-frames: Instead of ask our importer to read in a sequential manner (3,4,5,6...) it tries to read in larger interval (2 frames-interval and bigger intervals, probably depend on the time it took to read the frame ?). Although I can fully see the logic in that behavior, in that particular case it doesn't help: Since the stream is sequential, skipping frames will result in bigger latency to read each frame - so the skip-behavior only make things worse (and indeed, in this case, the interval become bigger and bigger).

 

Is there a way to disable that behavior so PPro can keep on reading frame-by-frame ?

 

Thanks,

Oran Gilad

XTRMX R&D Leader

Can "documentID" be used to search across projects?

$
0
0

Hello All,

 

 

Is the property "documentID" (which is in app.project) immutable? Can we use it to search a project from projects available in app.projects?

 


Premiere Pro Version: 12.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

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")

 

Bruce Bullis -- could you please shed a light on my questions?

 

Thanks in advance!

Duplicate sequence?

$
0
0

I've started to have a look through the SDK documents, but just have a quick question about the SDK functionality that I imagine someone well-versed in it should be able to answer pretty easily:

 

Could the SDK be used to create a button (in a custom panel) that when pressed would duplicate the currently selected or currently open sequence, rename it, and move it to a specific place in the project?

 

It seems like the SDK is not concerned with functionality like this, but it would be great for what I want to achieve if it is!

 

Anyone know about this?

Scripting for Premiere Pro CC / Premiere Pro CC 2014

$
0
0

Using Extendscript Toolkit I've found that it can possible to scripting for Premiere Pro CC and Premiere Pro CC 2014, but my question is:

 

Why Adobe don't provide any relative scripting guide?? (It's essential to see at least the Object Model)

Premiere Pro is not recognizing my plugin

$
0
0

Hi,

 

  I am developing One Adobe Premiere Pro Exporter Plugin. Working version: Adobe Premiere Pro 2014.

 

As per the Premiere Pro SDK document, I installed MSVC & Adobe Premiere Pro 2014 in One machine. I set all the environment variables and started my Exporter plugin development.

 

My Final output has,

Exporteri265.prm, + 2 x DLL files. In the PC where I developed the exporter, I copied Exporteri265.prm to C:\Program Files\Adobe\Adobe Premiere Pro CC 2014\Plug-ins\Common

and 2 x DLL files to C:\Program Files\Adobe\Adobe Premiere Pro CC 2014\

In My development PC(where it has MSVC + Premiere Pro 2014), all works fine. Premiere Pro is able to load the plugin.

 

Recently we purchased one more license and installed in a Test PC (Only Premiere Pro, No MSVC). In this machine I copied the executable in the same way. But Premiere Pro is not loading my plugin.

It gives one loading error (Log File).


Loading C:\Program Files\Adobe\Adobe Premiere Pro CC 2014\Plug-ins\Common\Exporteri265.prm

Invalid registry entry found so the plugin will be loaded from disk.

Loading from disk...

The library could not be loaded.

 

The same technique works fine in my development PC. But not in Test PC.

 

I checked all the registry settings. HKEY_LOCAL_MACHINE. I also moved my .prm to C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore. Not working.

 

Can somebody help me?? What is missing in my approach??

 

Regards,

Subash

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);


Premier pro importer : Multicamera clips

$
0
0

Hi

I completed my importer and works fine.  Now I'm facing another aspect.

Our file format foresee multicamera, that is our clips may have up to 8 camera.  There is a way to

import more than one video track ?  In the SDK_File structure there is only a flag for a single

video track. Should I use the streamIdx of the imFileInfoRec8 ? Did you have an example of

multi camera import (more than one video track) ?

Regards

Javascript error that happens in Premiere but not in Chrome.

$
0
0

Hi,

 

I am working on a Premiere Pro panel and I basically want to upload a selected file from the current project to a remote server. Using a html input file tag and select a file works fine to upload a file. 

 

So my idea was to create a File object which i would then upload.  Something like :

upload() {

    var path = '/Users/me/my_file.mp3';

    // read all bytes from file likely using : window.cep.fs.readFile(path)

    var file = new File ([data], 'my_file.mp3');

     // call POST to start upload. That part is done and work.

}

 

As I am going step by step, my current code looks like :

upload() {

    var file = new File( ['my random content'] ,'random_name.txt');

     // call POST to start upload. That part is done and work.

}

 

It works works fine if run it in up to date Chrome (I also tried with an much older version (41.0.2272.89), which works too). Unfortunately, it crashes in Premiere and I have no clue why.

 

The crash happens on this line :

var file = new File(['my random content'], 'random_name.txt');

(a basic copy/paste in chrome console show that it works on regular chrome, and crash when paste in the remote debug console.)

 

with this error message :

Uncaught TypeError: File constructor cannot be called in nwdisabled frame.

message: "File constructor cannot be called in nwdisabled frame."

stack: (...)

get stack: function () { [native code] }

set stack: function () { [native code] }

__proto__: Error

VM110:2(anonymous function)

VM77:847InjectedScript._evaluateOn

VM77:780InjectedScript._evaluateAndWrap

VM77:646 InjectedScript.evaluate

 

Any explanation and suggestion to work around that issue would be greatly appreciated.

Opencv and Premier Pro

$
0
0

Hello,

 

I have designed a new process in Opencv.

 

Where do i start in creating a new plugin?

 

There is a wealth of information on using various Adobe applications, however, i cannot see much on creating a plugin from C++ source code. I'd like to get a proof of concept before signing up to and paying for a partner program.

 

Let's say we want to create a plugin that will alter a frame and apply an effect on each consecutive

 

Are there any tutorials?

 

Third-party plug-ins for Premiere Pro CC

Partner with Adobe

Technology Partners

 

Kind regards,

 

Daniel

app.project.path Prefix with \\?\

$
0
0

Hello,

 

I want to get current project path of adobe premiere pro.

 

I am using below code to get that path

getProjectPath : function() {                          projectPath = app.project.path      return projectPath 
}

 

but the value contains with prefix '\\?\' in windows

the value is like below

 

\\?\D:\test\import\test.prproj

 

Is this premiere pro issue?

Do we have any specific fix?

Is there any prefix for MAC os?

 

I have tested in Premiere Pro version 2015 & 2017

Is it possible to stop AME render?

$
0
0

Hi All,


Is there any way to stop AME render through Premier Pro API? I couldn't find such method in the encoder object: "app.encoder".

 

 

Premier Pro Version: 11.0.1
Extension Type: Panel

 


Thanks,
Meet

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

Not able to install panel after the Premiere pro CC 2018 upgrade

$
0
0

Hi All,

 

After the Premiere pro CC 2018 update our panel installation is not working.

We have been using the exmancmd command to install the panel.

After the upgrade the command line doesn't through any error, but the panel folder is not coming up in C:\Program Files (x86)\Common Files\Adobe\CEP\extensions

We tried modifying the CSXSversion to 8, added <HostName="PPRO"Version="[9.0,12.9]"/> and added the PlayerDebugMode flag too.

But still the panel is not getting installed.

Our panel was working fine with Premiere pro cc 2017, so we installed the Premiere pro 2017 from - Download Creative Cloud apps

Then we installed the panel and the panel folder came under C:\Program Files (x86)\Common Files\Adobe\CEP\extensions

and panel is appearing in Premiere pro CC 2017 and CC 2018.

 

Please suggest what can go wrong, when we have only Premiere pro CC 2018 installed.

 

Thanks and Regards,

Anoop NR


Custom overlays and modifying Safe Margins?

$
0
0

Hi folks,


I had a quick question and haven't been able to find proper information when researching... but would creating custom overlays and modifying the safe margin be theoretically possible within the SDK? If so what approach would be taken to do so?

 

If there is documentation on creating things such as this, and I've missed it, I apologize for wasting your time - however pointing me in the right direction would be much appreciated!

 

Thanks in advance.

Render Sequence via Panel is slower?

$
0
0

Hi, I created a panel that renders the active sequence with Adobe Media Encoder.

 

We tested it for a week now and video-editors say that encoding via panel is slower than when they do the same task (Encode sequence in Media Encoder with exactly the same preset and target path) manually.

 

I told them that this is not possible, because both tasks do exactly the same. Is that correct?

Are there any settings / configuration options for  app.encoder that may impact render performance?

 

Thanks

How to open closed project panel by PPro api?

$
0
0

Hello,

 

I want to open closed project panel by PPro API.

 

Steps:

  1. Open project.
  2. Close the panel. Right click on Project Panel >> 'Close Panel'.
  3. Try to open Project by API.

 

I have tried to open that project once again by below code but it can't open the project panel.

 

var projToOpen = new File(projectFilePath);
app.openDocument( projToOpen.fsName,  1, // suppress 'Convert Project' dialogs?  1, // suppress 'Locate Files' dialogs?  1);

 

Is there any way to open it?

 

I found below API code to open extension but I am not sure that will work for this panel.

 

CSInterface.prototype.requestOpenExtension = function(extensionId, params)
{  window.__adobe_cep__.requestOpenExtension(extensionId, params);

};

 

Could you please suggest me the proper way to open that project panel once again if end user closes project panel and I need to reopen by API?

As well What should be the extensionId for that project panel?

 

proapi.png

 

PPro Version: 12.0.0

Importing images as a sequence in Adobe Premiere Pro using extendscript

$
0
0

So I've been looking around and trying to find a way of importing image sequences in Adobe Premiere Pro using extendscript.

I can import separate single files using: app.project.importFiles(new Folder(folder_path));

But I can't give an option of importing these images as a sequence.

I tried using opts = new ImportOptions(new File("path_to_image")); opts.sequence = true; and calling this within app.project.importFiles(opts) but Premiere doesn't seem to support ImportOptions, I keep getting an error stating "Import Options does not have a constructor"....

I'm assuming Premiere Pro doesn't support ImportOptions?

Is there any other way of importing an image sequence using app.project.importFiles?

Thanks!

How to compute on a background thread or process?

$
0
0

Hey everyone,

I would like to put a computational intensive task off the main thread so the UI of our HTML5 extension is not blocked. Javascript WebWorkers do not work because I need access to the file system using node.js. WebWorkers do not support node.js. I can imagine a couple of possible solutions:

 

1. Node.js allows to create child processes which would basically launch a new Node.js instance. child_process.fork() looks like exactly what I want. I allows to have back and forth communication. BUT it is not working. The child_process is exiting with code 255

Is child_process.fork() supported?

 

2. I have not tried or researched for this one. Is it possible to launch a secondary invisible panel extension and then send data to it and receive progress back?

 

Does one of you guys have a better "Background Thread" solution?

 

Thanks,

Thomas

Viewing all 53010 articles
Browse latest View live


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