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


Placing/moving clips in a sequence at sub-frame accuracy

$
0
0

Hi all, anyone got a workaround using supported or unsupported APIs to place or move a clip in a sequence using seconds or ticks instead of timecode?  Working with audio files and need to place items very accurately on the timeline.

 

1st try: Got clip placement working but can only give times in TC ie snapped to frames

2nd try:  Can set the CTI using ticks which is great, can omit a start time when placing a clip which uses the current CTI, BUT the placed clip time still snaps to frames .

3rd try: Call a Powershell script which "presses" the "," key which accurately inserts a clip to the current CTI, but can't change the track targeting programmatically so has limited use besides the obvious hackz.

 

PS: This is all while "Show Audio Time Units" is active for the sequence.

PPS: I've tried the alignToVideo = false option of the insert function and doesn't  seem to do anything

 

Any help is appreciated.

 

TNKS!

 

G

Media Encoder Issue: auto-starting batch

$
0
0

Does anyone have any tips on sending multiple jobs to Media Encoder? I'm trying to send an array of subclips to Media Encoder using encodeProjectItem() but I'm running into a bit of an issue with Media Encoder automatically starting the batch.

 

For example: when I use PProPanel's function transcode but remove the line:

 

app.encoder.startBatch();

 

Media Encoder still starts the batch anyways. Is this normal behaviour? Or is there some way to tell Media Encoder to add the job, but don't run the encoding.

 

I've tried to get around it by using Bridge Talk to tell Media Encoder to pauseBatch() immediately after sending the clips over.

var bridge  = new BridgeTalk();
bridge.target = 'ame';
bridge.body   = 'var host = app.getEncoderHost();if (host){host.pauseBatch();}';
bridge.send();

 

But that seems like a clunky way of doing this.

This is important to me as I will want to have the ability to manually modify outputs on specific clips before starting the batch.

 

If anyone has any tips on this it would be greatly appreciated!

Thanks!

What is the best way to open a custom window in selector 'PF_Cmd_DO_DIALOG'?

$
0
0

Hello,

I'm using the After effect SDK to develop a video effect plugin (both for Premiere and AE) and I'd like to open a custom window when the user clicks on Screen Shot 2017-06-20 at 11.41.19.png (during PF_Cmd_DO_DIALOG selector and typically to allow the user entering its activation keys).

 

After searching the forum it seems that the best way is using JavaScript by installing the Premiere Pro/After Effect SDK for panel scripting. I'd like to know if this is the best way to do that or is there an easier way?

 

Thx for your help!

Automating lower-third creation?

$
0
0

Hello Adobe community and thanks for your time in helping me with this challenge!

 

I am new to Premiere, having done the vast majority of my editing on FCP/ FCPX (don't lambast me, it's actually very good). But afaik it can't do this:

 

I am working with a VFX school to develop an online curriculum, and I am looking for ways to speed up or automate the tedious process of adding lower thirds every time the instructor calls out a keyboard shortcut. We have a template and have been drag-dropping them into the sequence via the Essential Graphics function, and then populating the text fields.

 

My thought was that there might be a way to use markers placed at appropriate points in the timeline which would contain the text information in separate fields, and then we could use that timecode and text information to place the templates at appropriate points in a timeline, populating each with the correct information. Perhaps I'm dreaming....

 

If this is not possible, what time-saving strategies do you employ to tackle this kind of challenge?

 

Thanks!

 

Jonathan

Automate Title Creation

$
0
0

Hi all,

Is it possible to develop an import plugin to generate titles and populate them with text?  If so, where can I find a bit of information on how to begin with this?

 

The goal will be to parse an excel sheet and generate titles.

 

Thank you!

How to check given path isFile or isDirectory in jsx?

$
0
0

Hello,

 

I want to check that given path is File or Directory in a jsx.

 

The 'isFileExist' function only check that path is exist or not in the file system.

I want to check it is 'folder' or 'file'

 

For example,

          path = 'd:/folder1' then isFile method should return 'false'

          path = 'd:/folder1/1.epr' then isFile method should return 'true'

 

How can I do that? I am using below code.

isFileExist : function(path) {    var file = new File(path);  return file.exists;
}




isFile : function(path) {
         //How can I check that path is 'file' or 'directory'?         
}

 

Premiere Pro version 11.0

Renaming a clip selected in the project panel?

$
0
0

Hi, I'm new to coding in any form so forgive the simple question. i wanted to create an extension for Premiere/Prelude that would help me rename clips. I haven't had any trouble with the HTML/Javascript part of this, and I have loaded the extension intro Premiere, but I can't figure out how to actually interact with objects inside of Premiere.

 

I have built a panel where the user inputs some information, and it's reformatted into a string. When the user clicks a button, right now an alert pops up with the string. What I would like to happen, is that when the button is clicked:

  1. The currently selected clip in the project panel is renamed to the string generated by my extension panel.
  2. The next clip in the bin is selected.
  3. That clip is opened in the source monitor.

I feel like these should be relatively simple actions, but I cannot find any documentation on this at all. Several people have linked to PProPanel, but the only was scripts are renamed is by targeting the first item in a bin. There does not appear to be any way to rename a selected clip unless it is already in a timeline, which isn't particularly useful.

 

Thanks so much for your help!


[Adobe Premiere Pro] Installed Extensions not Showing in Adobe Premiere

$
0
0

[Adobe Premiere Pro] Installed Extensions not Showing in Adobe Premiere

 

Hi all,

 

Complete Adobe-Development noob here -- so apologies in advanced for any confusion on my part.

 

I have a requirement for work to update an extension that someone else (who is no longer available) created for Adobe Premiere Pro.

 

To the limit of my knowledge, it was hosted on Adobe Exchange and ceased to work due to new released Premiere Pro versions. I am tasked with updating the extension to make it compatible with the newest Premiere Pro release (and hopefully just all versions if possible). The extension is just essentially an iFrame redirect to our web application, housed in an Adobe Premiere Pro panel. I plan to just update the versions and submit a "Patch" on Adobe Exchange with the new ZXP Package.

 

Issue:

  1. I cannot see my "installed" extension in Adobe Premiere Pro when testing my ZXP changes -- the extension menu is grayed out / disabled.

 

Attempted Fix Process (learning to repackage the original ZXP file has been an epic journey):

  • I stripped the original ZXP package of the "mimetype" file and "META-INF" directory after learning those are generated after signing the package.

          ZXP Package Files.png

  • I edited the CSXS --> manifest.xml to provide (what I thought was) the minimum version supported (which I hoped would then just be compatible with all new versions)

               Manifest XML File - Updated.PNG

  • I signed the folder with ZXPSignCmd.exe -- this creates the new, signed ZXP file

 

  • I install the new ZXP package with ExManCmd.exe
    • Command: ExManCmd.exe /install com.MyExtension.zxp

 

  • I receive a successful extension installation result:
    • When installing the extension with ExManCmd.exe, the "com.MyExtension" extension folder is being placed in the following path:

      • C:\Program Files (x86)\Common Files\Adobe\CEP\extensions

          Successful CMD Line Install of Extension.PNG

 

  • Unfortunately, I still do not see the installed extension (or any extensions) in Adobe Premiere Pro version: 11.1.2. The Extensions menu item is grayed out.

          Adobe Premiere Pro - No Extension Showing.png

 

Question:

  1. Can anyone tell me what I'm missing or what I'm doing wrong? Thank you in advance!

ExtendScript importFiles() bug?

$
0
0

I have a CEP panel which is downloading a proxy video from an external source then scripting its import into Premiere Pro. Currently I'm running Premiere Pro on Windows (10).

 

The panel is currently downloading to the system temporary directory, but it looks like Premiere Pro or ExtendScript is massaging the supplied file name, which is causing an error for some reason. For example if the panel downloads to:

C:\Users\Philip\AppData\Local\Temp\2017-09-23T215101Z_1_LWD0012KBA6VB_RTRWNEV_C_6151-STORM -MARIA-DOMREP.MP4

then this is pushed into Premiere Pro with app.project.importFiles ([File(fileName)]) then the application pops up an error dialog:

File Import Failure

~\AppData\Local\Temp\2017-09-23T215101Z_1_LWD0012KBA6VB_RTRWNEV_C_6151-STORM-MARIA-DOMREP. MP4

Unsupported format or damaged file.

 

Note that:

a) The file itself is fine and I can manually import it into Premiere Pro successfully.

b) If I change the panel so it downloads to a directory outside of the home/library area, for example "C:\temp" then the importFiles() call also works file. This isn't a very satisfactory workaround though as it means hardwiring the download location.

 

It looks like maybe there's an inconsistency in the handling of the file name; the fully qualified Windows file name is being converted to a Unix/OSX "~" relative file name, but then Premiere Pro can't make use of that file name.

 

Is this a bug?

how to get started with premiere scripting?

$
0
0

Hi. I'm an experienced web developer who's working on a project which requires some scripting in Premiere Pro.

 

My needs aren't highly complicated, and at first I thought "well this looks fine" seeing the CEP samples on github. Never have I have ever seen such bad bad horrible job of creating an API since trying to work with Microsoft's Outlook. There seems to be no manual or proper documentation for Premiere, furthermore, most (if not all? I didn't check) of the links on the github page are dead. Worse, some of the links are supposed to point at a file within that project - upon finding that file (in a different place) it turns out that even the intended lines the link points to are out of date.The official ESTK install links on Adobe's website are dead too, I only finally got it through the Creative Cloud - after enabling "show older apps" of course, which hasn't been a whole lot of help because it's debugging system is so ridiculously out of date. Oh also, some of the examples on github don't even run *as is*. There's no proper guide or quick-start tool, there's not even something like a REPL system that'll allow you to mess around and learn through that.

 

I need to run some really simple operations. I'm not asking for help with figuring out how to do them - I can do that on my own, provided I have some system that allows me to actually understand and learn without banging my head against the wall. Frankly, this is embarrassing and unprofessional from a company this big, and I don't understand it, but maybe someone on this community can point me in the right direction? I just need a way to start messing with this so I can actually learn how to use it.

Multi-Frame Averaging Filter

$
0
0

I have a filter which requires a history of frames to compute the result (sort of like averaging). I've implemented it using C++ and now I would like to use Adobe Premiere as a frontend. Is this possible? As far as I can tell, filters must be single frame in, single frame out. Is it possible to implement a more stateful filter?

Adding multiple in and out points of same asset into sequence

$
0
0

Hi,

 

I am trying to insert multiple assets in to a sequence.

When there is only one In and Out point for an asset this is working fine. I can insert multiple assets which are having in and out points to the sequence.

But when one clip has two subclips/in and out points which needs to be inserted into the sequence, I am not able to do that.

Premiere is crashing while trying to insert the second subclip to the sequence.

 

Here is the sample code

 

                     var insertingItem=rootElements.getItemAt(itemIndexTobeInserted);

                       if(inTimeCode!="")

                       {

                           insertingItem.clip.setInPoint(inTimeCode);

                       }

                        if(outTimeCode!="")

                       {

                         insertingItem.clip.setOutPoint(outTimeCode);                      

                       }

                       seqVideoTrack.insert(insertingItem);

 

When we try to add the second in and out point and insert that clip to sequence, Premiere is crashing.

seq_import_error.png

Passing keyboard presses while panel is active

$
0
0

Is it possible to pass keyboard/shortcut presses onto Premiere when the panel is active?

 

When I click a button on my panel and hit 'spacebar' (to play the timeline) since the panel is active, and not the timeline, I get an error noise. I then have to click back over to the timeline to reactivate the timeline, then hit spacebar to continue playing.

 

It would be awesome if when I have the panel active, and press a key, that it passes the key press to premiere to do it's usual thang.

Selecting multiple project items

$
0
0

Hi all, I can select a single project item like this:

 

app.project.rootItem.children[0].select()

 

Is there a way of selecting multiple items or selecting without clearing the current selection?  Even mores specifically I'd want to set the selection order.

 

TNKS!

 

G


HDR video export...

$
0
0

How do I get Premiere to give me high range pixels out of ->RenderVideoFrame() ?  I have selected the PrPixelFormat_BGRA_4444_32f pixel format, so I assumed I would get pixels with values above 1.0f (using some high color depth Red files).  Is there another flag I need somewhere?

 

Thanks!

Marker Name and Comments not working in Premiere pro 2018

$
0
0

Hi All,

 

The Markers created from script is not able to assign the Name and Comments to the marker in Premiere pro 2018,

This is working fine in premiere pro 2017. Markers are created, but no name and comments

 

Here is the sample code from github

 

if (projectItem.type == ProjectItemType.CLIP ||

projectItem.type == ProjectItemType.FILE) {

markers = projectItem.getMarkers();

if (markers) {

var num_markers = markers.numMarkers;

var new_marker = markers.createMarker(1.345);

var guid = new_marker.guid; // new in 11.1

new_marker.name = 'Marker created by PProPanel.';

new_marker.comments = 'Here are some comments, inserted by PProPanel.';

new_marker.end = 2.6789;

}

}

 

Anyone else facing the same problem?

 

Thanks and Regards,

Anoop NR

Premiere Pro & ExtendScript

$
0
0

Notice the following section of code:

 

for (i = 0; i <= app.project.rootItem.children.numItems; i++)

    {

        if (app.project.rootItem.children[i].getMediaPath().indexOf('(PREV)') > -1)

    {

        var BCVpath = "D:\4) Videos\Dummy(PREV).psd"

        app.project.rootItem.children[i].changeMediaPath(BCVpath);

    }

    }

 

What I intend for this to do is search through all of the currently imported files in the current project and, once a file containing the text "(PREV)" is found, replace that file with another one at a specified, absolute, hard-coded directory.  However, the script has two problems:

 

  1. Upon running the code from ExtendScript, I receive this error in Premiere Pro.  I have only one file containing the text "(PREV)" imported into my project.
    7f4cbfddb9614afbbf1d7831ac970e3e.png
  2. Which is then followed by an error that only appears within ExtendScript (after clicking OK on the dialogue box):
    8dc0d140d4b547bbb540bbe9e7ad7b33.png

I do not understand how to create an absolute file path reference for use with the .changeMediaPath()

I also cannot figure out why ExtendScript gives me the undefined is not an object error AFTER it has already "successfully" executed the entire script.  Can somebody please offer some insight as to what I need to fix since there is so little documentation for Premiere Pro and ExtendScript?

Run .exe File in PR via ExtendScript

$
0
0

Hi,

I'm trying to run a .exe File via ExtendScript. We're doing the same in AE which works fine using "system.callSystem(xyz.exe)" but "system" is unknown to Premiere.

Any ideas how to solve this?

 

Thanks,

Mathias

CEP engine extension API to check for file existence

$
0
0

Hi All,

 

I am looking for an API (CEP FS) which checks a file is exist or not. I couldn't find such inside CEP fs library. I am referring to cep.fs object.

 

Note: I don't want to use JSX here as that would be asynchronous.

 

 

Premiere Pro version: 11.1.0

Extension Type: Panel

 

 


Thanks & Regards,
Meet Tank

Viewing all 53010 articles
Browse latest View live


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