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

How can I communicate with external application

$
0
0

I'm developing an plugin for Premiere Pro and need to communicate with server. Since socket object is not supported in PPro, I have to write an external application with C to communicate with server.

Is there any way that I can send or receive message between jsx and the external application? Or is there any other way to simply communicate with server with javascript APIs?


write to custom metadata schema via ESTK

$
0
0

Hello,

 

I've created my own metadata schema in PPro.  Now I'm trying to write to it via ESTK. 

 

I've checked out the PProPanel and it appears it's possible to do this.  I've even gone as far as testing this out by writing to the "Author" and "Artist" fields in the Dublin Core and Dynamic Media schema.

 

Here is a line from the PProPanel:

var have_a_scene = xmp.doesPropertyExist(XMPConst.NS_DM, "scene");

 

which I believe accesses the Dynamic Media schema.

 

My question is, how do I access the schema for my custom built metadata set?

 

any ideas?

 

thanks,

Kelly

Bandwith limitation for shuttle function

$
0
0

Hello

 

I try to calculate the Maximum bandwith of an Premiere NLE.

Bandwith [Mb/s] = ClipBandwith [Mb/s] x Streams x RealtimeFactor

 

Question:

Is there a bandwith Limitation during shuttle?

 

Example:

If I shuttle 2x RT a 50 Mb/s File Needs 100Mb/s but if I shuttle 50x RT, the maximum bandwith is 4x.

Something like this.

[AME] [Exporter] Direct access to pixels shared by other exports and preview

$
0
0

Hi,

 

If I'm getting it right, in an exporter, with the GetPixels function we get direct access to reading and modifiying pixels for the current frame.

This array of pixels is used for making the preview frame in the preview window AND it is the same array used if we are exporting the same sequence in multiple format at the same time...

 

This might be a feature, but I think you should state in the documentation that we should make a copy of theses pixels before modifying them for our exporter (for example swizzling pixels).

 

 

Antoine.

QE: What is this rabbithole?

$
0
0

Soooo as the title asks: What is QE? There's absolutely no documentation on it, and it appears to house most of the information that we want to access, albeit not reliably.

Most importantly out of anything that I'm looking for - why is there no documentation on not just QE, but the rest of everything within Premiere's capabilities of extendscript?

A single piece of code on Github is not sufficient for a documentation substitute.

 

As far as the seeming instability of QE:

Consider the following code for Premiere Pro CC 2015:

 

app.project.activeSequence.exportAsFinalCutProXML("C:\\Users\\user\\Desktop\\XML_Testing.xml")


app.enableQE()
var mySeq = qe.project.getActiveSequence(0)
var myTrack = mySeq.getVideoTrackAt(0)
var myClip = myTrack.getItemAt(0)
myClip.name

 

If I have a project open in Premiere and execute this using ExtendScript Toolkit, I receive back a myTrack object with a name of 'Wildlife.wmv'.
If I then switch to a new project in Premiere(does not contain 'Wildlife.wmv') and re-execute that same code in ExtendScript Toolkit, the myTrack object stays the same, and I don't receive a new object.

 

This seems hazardous at best.

 

Thank you.

How to access the Premiere Pro clipboard?

$
0
0

I'm not sure if I need to use the SDK for this or not.

 

Basically, I want to be able to COPY many different items from Premiere, like presets, transitions, and clips... into the clipboard, one at a time, and then SAVE all of that clipboard information somewhere where it won't get overwritten when the next thing is copied onto the clipboard.

 

Then I'm going to program a system (probably using AutoHotKey) where any particular item can be recalled and placed back into the active clipboard, then pasted straight into Premiere like normal.

 

This would allow me to use custom keyboard shortcuts to instantly apply any effect I want, any transition I want, and any group of clips that I want to the timeline... incredibly easily and flawlessly.

 

 

I've tried using autohotkey's clipboardAll() function, (Clipboard and ClipboardAll) but it doesn't work for items copied in Premiere... only for text and pictures and things like that. It looks to me like Premiere has its own special clipboard that it uses for more complicated things like copying effects or clips off of the timeline.

 

So again, my question is, how do I access the Premiere Pro clipboard? Where is that file located in Windows? I searched through all the Premiere AppData files and I didn't see anything that looked like clipboard information... I'm not even sure if that's the right place to look.

 

I downloaded the SDK, but I don't see any information about the clipboard in the included help file, so I don't know if the SDK would be useful for this.

 

I would be so, so grateful if anyone could help me with this. I'm a video editor, not a programmer, so this stuff is not very easy for me.

Force close without saving

$
0
0

Two part question:

 

What is Premiere writing upon closing a document?
It's getting in the way of workflows that I'm developing, as it's trying to write to a write-protected file. I can't diff between the before and after files to find the difference since the prproj is binary.

 

And if you're curious what the message is: If I run app.project.closeDocument() on a perforce file that is not checked out(read-only), the error that occurs is:

"Could not open the project file with write access. The file may be locked or you may not have permission to write to this location.

Select 'Save As' from the File menu to save the project to a new location."

 

Second part:
app.project.closeDocument() - is there a force argument that can be handed to this? or a completely different command that will say "when I close you, don't save any information to the file?"

reading and setting custom metadata

$
0
0

Hello,

 

Has there been any work/success on reading or setting custom metadata fields in Premiere Pro vie ExtendScript?

 

thanks,

Kelly


Still image importer - how to figure frame rate

$
0
0

Hi, I am developing still image importer and I am confused how to compute frame number in asynchronous aiInitiateAsyncRead method. Theoretically, it should be something like imSourceVideoRec.inFrameTime / ticksPerFrame.  I can use GetTicksPerVideoFrame() to figure out ticks count per some specific framerate, but how do I figure out which framerate is used?   (users can change framerate that is used in "settings - media - indeterminate media timebase" and I don't want to provide incorrect frames...)

Is this information provided somewhere along lifycycle of importer and I just didn't noticed it? Or am I using completely wrong approach?

Mounting a volume named 'Users' to MAC creates issues

$
0
0

Hi All,

 

If we mount a shared location with name "Users" to a MAC machine, we will not be able to get the User folder details.

Extendscript is not able to locate the  SystemPath.USER_DATA.

 

Here is the code snippet.

//In HTML5 page we are getting the user data folder path

var extensionRoot = csInterface.getSystemPath(SystemPath.USER_DATA);

var Login = extensionRoot + "/CONFIG/Login.txt";

 

 

// and passing it to the extendscript function, for reading some files in that location.

//.jsx code

login:function(Login)

{

     var loginFile = new File(Login);        

        if (loginFile.exists)

        {

               ---------

            } 

        else

        {

             //if we mount a volume name with USERS then control will always come here

            alert("ERROR | Cannot access Login details from "+Login);

            }

     }

 

Is there any solution to avoid this issue?

Please advise.

 

Thanks and Regards,

Anoop NR

newSequence with custom settings

$
0
0

Hi!  I'm creating a scripted panel which imports a clip and makes a sequence for it.

I've been reading through Premiere.jsx, I can create new sequences using app.project.createNewSequence and qe.project.newSequence;.


What I can't work out is how to create a new sequence with arbitrary settings like resolution and fps.  I want to match the sequence to whatever the input clip is.

 

Also what does app.enableQE do?

 

Thanks!

 

G

Invalid Values in XML

$
0
0

We have been using the Final Cut Pro XML to build our pipeline around and build tools off of, and for the most part, it's been great - with one exception.
Seemingly randomly, certain values will get set to -1 for start, end, in, and out. We can't narrow down what would be causing this, but it's causing major alignment issues down our pipeline.
The clips are in the right spot in the timeline, everything looks normal - but for some reason, this value keeps getting messed up on the Final Cut Pro XML expo

 

We didn't notice it in 2015.1 (but may not have been running into it at that point) and we're currently running on 2015.2 and it is occurring cross-platform.

We looked into whether it was an effect causing it, or possibly a probably with linked audio - we've been looking for the cause for weeks and haven't had a single reproducible result.

 

Thanks,
Alex

negativeOne.PNG

Plugin developers for premiere pro

Can I get the project path from a Panel?

$
0
0

I'm trying to get the project folder from a Premiere Panel, but I can't find the way. Is it possible?

Log Premiere startup info re: extensions

$
0
0

I have an extension bundle that loads when Premiere starts up and it stopped loading today and can't figure out why.
I'm on CC 2015.2, Windows 7.
I'm hoping there's a way I can get Premiere to print out running information to the console when calling the .exe. I already tried looking in the .log files generated in ~/AppData/Local/Temp but nothing useful is output there.

 

My hope is there's a command-line arg that I can pass the Premiere.exe to print out information. I see it can be done on OSX and was curious about the same capability on Windows.


Is it possible to access preset objects via extendscript?

$
0
0

Using Extendscript, I am able to access video/audio effects and transitions and apply them to specified clips. However, I cannot do the same with Lumetri Presets.

Is there are any way to access and apply "Lumetri Presets" and "Presets" to selected clips? Any help or tips will be greatly appreciated.

VST Audio for CS5 SDK question

$
0
0

I have a couple of old audio plug-ins that ran on CS4.  I just recompiled my old VST library for 64 bit and built my plug-ins.  Everything went okay, but CS5 does not see them.  Is there a new VST library for CS5 or should I be doing something else?

 

Thanks,

Gee

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

Export Controller - Source Range question

$
0
0

I've written an export controller plug-in that works with a database to register metadata and moves exported media around where it needs to go for playback (TV station automation).  One thing I've been unable to resolve is the notion of the user being able to select whether they want the whole sequence exported, the work area, or the in/out points exported.  I'm unable to really locate this in the SDK documentation, instead any exports simply render out the entire timeline.  In a plain vanilla media export the user can select the Source Range and choose things like Work Area, Sequence In/Out, or Custom.  I'm probably just missing it, but I don't see where the hooks for this are in the Export Controller SDK.  Can someone give me a nudge in the right direction on where I can set whether to export the whole timeline, or just the work area in an Export Controller?

Adding (unsupported) keyboard shortcuts to Premiere Pro?

$
0
0

A few months ago, I created a 30-minute video that goes into great detail about all sorts of missing features in Premiere Pro. Some of these features have been requested by users for over ten years, and still have not made it into Premiere... features like saving a custom transition, a shortcut to delete transitions from the timeline, a shortcut to add a keyframe.... the list goes on.

 

You can watch my video, or you can just read the video description to see a quick list of the 57 missing features that I talk about.

 

Adobe Premiere CC 2014.2 massive feature request video! (1/2) - YouTube

 

I mention in the video that modding Premiere may be the only way to get these features into the program, as long as the developers refuse to add these features for whatever their reasons might be.

I am particularly interested in adding unsupported keyboard shortcuts, as it seems like the easiest thing to do, with the greatest benefit. Here's a list of the features I am hoping to add in by myself:

 

#1. Every transition should have a keyboard shortcut to apply it

#3. Allow keyboard shortcuts to apply all PRESETS, EFFECTS, TRANSITIONS, and (new) TRANSITION PRESETS

#5. A shortcut to delete (only) transitions

#6. A shortcut to reverse a clip -- (This can be done with AutoHotKey)

#7. Shortcuts for the keyframe right click menu items

#8. Shortcuts for all "effect controls" buttons

#9. Shortcuts for layer controls in timeline (mute, lock, etc.)

#11. A shortcut to just PLAY video

#12. A shortcut to ripple delete clip at playhead -- (This can be done with AutoHotKey)

#14. Effects panel search bar shortcut -- (This can be done with a crazy macro script, but still does not work 100% of the time)

#16. A shortcut to close the reference monitor

#17. A shortcut to close the titler

#18. A shortcut for "back" in bin icon view

 

So, I downloaded the plug-in software SDK from here: Premiere Pro Developer Center | Adobe Developer Connection ... but frankly, I have very limited programming experience. (Dammit Jim, I'm an editor, not a programmer!) Reading through the documents, however, I don't see ANYTHING that even mentions the words "keyboard" or "shortcut..."

 

It's looking to me as if the SDK only has support for creating new transitions to be used in Premiere, and creating new effects like the Red Giant denoiser. Am I right? am I wrong?

 

Is it POSSIBLE to use the SDK to add any of these keyboard shortcuts to Premiere? I don't care how difficult it is. (unless it involves having to decompile the whole program into machine code, which I still might be mad enough to at least try.)

 

I am determined to get these long-overdue keyboard shortcuts into Premiere. I just need to know if it's possible. If it is, I'd greatly appreciate any and all guidance you could give me to make this happen.

 

Thank You,

Taran van Hemert

2-year editor at LMG

Viewing all 53010 articles
Browse latest View live


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