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

Execute a system command in windows environment as administrator

$
0
0

Hi All,

 

Is there a way to execute system commands using the C:/windows/system32/cmd.exe from panels?

We tried the CEP HTML test Extension-> Create Process options, but cannot figure out how it is working

When we try to run the commands under set StdErr Handler but that is always creating ".exe Argument1" folder in the document folder.

 

How can we execute system commands in windows environment?

How can we run certain commands/ programme  as a specific user?

 

Thanks and Regards,

Anoop NR


How to fetch frame rate of a project item?

Start timecode in Premiere not matching with FCP and Media info

$
0
0

Hi All,

 

We are trying to recreate markers created in our application to assets in premiere using our panel.

For normal videos this recreation is working fine.

We are facing an issue while recreating the markers in premiere when there is a non zero offset time code for a video.

When there is a non zero offset time code for a video, the start timecode value we are getting in our system (using mediainfo) is different from that in Premiere pro.

We have checked the file in FCP also and found out that the FCP and Mediainfo time codes are matching.

 

Media info

Time code of first frame                 : 07:22:37:00

 

FCP

Time code of first frame                 : 07:22:37:00

 

Premiere_offset_wrong_2.png

 

Premiere pro

Time code of first frame                 : 07:22:10:11

Premiere_offset_wrong_1.PNG

 

Is it a bug in Premiere? Or do we need to do some preference changes?

 

Here are the details from mediainfo,

General

Complete name                            : F:\songs\TEST\frame rate\23.97_offset_not_matching_with_premiere.mov

Format                                   : MPEG-4

Format profile                           : QuickTime

Codec ID                                 : qt   2005.03 (qt  )

File size                                : 19.9 MiB

Duration                                 : 1 min 31 s

Overall bit rate                         : 1 827 kb/s

Encoded date                             : UTC 2009-08-26 12:40:25

Tagged date                              : UTC 2009-08-26 12:41:55

Writing library                          : Apple QuickTime

Media/UUID                               : 2881B878-67F5-46C0-BBFA-9124D7CD11E9

 

 

Video

ID                                       : 1

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format profile                           : Main@L3.1

Format settings                          : 2 Ref Frames

Format settings, CABAC                   : No

Format settings, RefFrames               : 2 frames

Format settings, GOP                     : M=2, N=90

Codec ID                                 : avc1

Codec ID/Info                            : Advanced Video Coding

Duration                                 : 1 min 31 s

Bit rate                                 : 1 821 kb/s

Width                                    : 960 pixels

Height                                   : 720 pixels

Display aspect ratio                     : 16:9

Original display aspect ratio            : 4:3

Frame rate mode                          : Constant

Frame rate                               : 23.976 (23976/1000) FPS

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Progressive

Bits/(Pixel*Frame)                       : 0.110

Stream size                              : 19.9 MiB (100%)

Language                                 : English

Encoded date                             : UTC 2009-08-26 12:40:25

Tagged date                              : UTC 2009-08-26 12:41:55

Color range                              : Limited

Color primaries                          : BT.709

Transfer characteristics                 : BT.709

Matrix coefficients                      : BT.709

 

 

Other

ID                                       : 2

Type                                     : Time code

Format                                   : QuickTime TC

Duration                                 : 1 min 31 s

Time code of first frame                 : 07:22:37:00

Time code, striped                       : Yes

Title                                    : 2

Language                                 : English

Encoded date                             : UTC 2009-08-26 12:41:55

Tagged date                              : UTC 2009-08-26 12:41:55

 

 

Thanks and Regards,

Anoop NR

Audio Units in Premiere Pro

$
0
0

Hi all,

 

I'm not sure if this is the right forum or not, but I didn't find a more relevant one. If you know, then please suggest.

 

I developed an Audio Unit. The processing introduces a latency. The latency support assumes a host (Premiere Pro) provides some extra sound data at the end of a  stream to pop-out all the delayed audio from a plugin. If a plugin introduces a latency of 4096 samples then it expects to get 4096 extra samples at the end.

 

This works fine in Premiere Pro when sequence's and clip's samplerates are the same. Once I put a 44100 Hz clip in a sequence and change sequence settings to 48000 Hz then Premiere Pro starts handling the latency incorrectly. It does output just 44100/48000 = 0,91875 of the required extra samples at the end.

 

The things get bad is we split a clip somewhere in the middle. The continuity of a clip gets broken because of the issue.

 

I did lot of tests and I believe there is a bug in Premiere Pro. Audio Units return latency in seconds and I believe the returned value by mistake gets multiplied by the coefficient mentioned above.

 

I hope this message will get delivered to Premiere Pro developers team and they could fix this.

 

 

Thanks,

Roman

Plugin effect on adjustment layer has some issue when I use PF_OutFlag_NON_PARAM_VARY .

$
0
0

Hi, All.

I hope you are doing well.

 

My plugin has some issue on adjustment layer when using PF_OutFlag_NON_PARAM_VARY  for out flag.

 

Problem:

Only the first keyframe's value works when I apply  keyframes to an adjustment layer.

 

For example, I applied plugin to adjustment layer and set 2 keyframes. I've set rotation angle to 30 degree on the first keyframe and 120 degree on the second keyframe. Everytime render is called, the angle should increase from 30 to 120 but it maintains 30 degree always.

This issue appears only when I use this flag - PF_OutFlag_NON_PARAM_VARY.

 

Also if I don't use adjustment layer and apply plugin to the actual layer, this issue doesn't appear.

 

How can I solve this problem?

 

Regards,

Anthonie.

Why is rendering layer different between GPU mode and Software mode during preview?

$
0
0

Hi, everyone.

I have strange problem on GPU mode.

I am creating a gpu accelerated plugin But I can not complete the plugin because of the problem.

 

PROBLEM:

Please take a look to following screenshot in detail. they are layers  when during preview(it is being played) on gpu mode and software mode.

As you can see, there are black pixels on the edge which has opacity on gpu mode. (there is big different with software mode).

 

I am not sure how premiere core works on gpu mode and software mode.

Would you let me know in detail? Can I get layer on gpu mode which is same as software mode?

 

Regards,

Igor.

Replacing clips

$
0
0

This might not be possible from what I have seen in other questions, but I just want to be sure.

 

I want to replace a clip in a video or audio track with a newer version (video_v1.mp4 to video_v2.mp4)

Creating a Sequence by Linking to Preset -- Filepath issue

$
0
0

I am trying to create a sequence from a variety of presets. These presets work well when I am directly linking to the .sqpreset in a drive on my computer, however I would like to package these links within the panel directory so they can work anywhere.

 

When I run the following code it works great if running directly from Extendscript, but when I load it in a panel I have no luck.

 

           var scriptLocation = File($.fileName).fsName

           sliceOne = scriptLocation.lastIndexOf("/");

           var filePlacement = scriptLocation.slice(0, sliceOne+1)

 

             var preset1360 = filePlacement + "Presets/1360x768_30FPS.sqpreset";

             var preset720 = filePlacement + "Presets/1280x720_30FPS.sqpreset";

             var preset1080 = filePlacement + "Presets/1920x1080_30FPS.sqpreset";

 

app.enableQE();

          

        if (seqPreset == "1080"){

                desiredPreset = preset1080

            }

        if (seqPreset == "720"){

                desiredPreset = preset720

            }

        if (seqPreset == "1360"){

                desiredPreset = preset1360

            }

            

  if (seqPreset == "1080" || seqPreset == "720" || seqPreset == "1360" ) {

                qe.project.newSequence(seqName, desiredPreset);

  }else{

                   alert("Please try again." + "\r" + "\r" + "Enter a valid resolution")

            }

       

        }

 

Any help would be great. Making sequences is essential but if I can't package the preset, that'd be a shame.


Node Enabled by Default in 2017.1?

$
0
0

We've begun to take advantage of the Node integration in a Premiere Pro Panel. Based on the documentation, it seems as though CEP 7 supports the following two flags for the CEFCommandLine:

 

  1. --enable-nodejs - According to the documentation, this is disabled by default.
    • [Side Note: the CEP Cookbook PDF contains this Adobe-internal link for "Customize CEF Command Line Parameters".]
  2. --mixed-context - According to the documentation, this is disabled by default.

 

Before attempting to use any Node APIs, I enabled both of those in the manifest.xml for our panel and restarted Premiere Pro (2017.1). Everything worked great.

 

The documentation does not specify if the above two flags are interdependent or not. To test, I decided to remove both flags to ensure that I would get an "undefined" or some other error in our console output. Instead, I was surprised to find that the APIs worked without issue! It appears as though I'm currently able to use the Node integration without specifying any special CEFCommandLine flags!

 

What am I missing here?

File Importer no decompressing PrPixelFormat_PALDV100_1080i frames

$
0
0

I am developing a file importer plugin using SDK 2015 over Premiere Pro CC 2017, and I'm finding problems decompressing some DV frame formats. Using PrPixelFormat_YUYV_422_8u_601, PrPixelFormat_YUYV_422_8u_709, PrPixelFormat_ARGB_4444_8uPrPixelFormat_PALDV25 or PrPixelFormat_PALDV50 everything works fine. The problems arise when Premiere asks for PrPixelFormat_PALDV100_1080iframes. In this case, the behavior of Premiere is as follows:

 

WindowBehaviourHeader 3
Project windowScrubbing the source clip and sequences containing the source clip work. When the video is double clicked to be opened on the preview window, the clip becomes a green square (as if the frame was not being decompressed)
Preview windowScrubbing or playing the video just shows a green square
Media exportDepending on the output format, video is shown and rendered correctly or not shown at all

 

The same code is working perfectly for DV and DV50 frames, so does anyone know what's the difference with DV100? Should I do something different?

XMP Metadata: Different file path in Mac

$
0
0

Hi All,

 

I am importing same file from two different places in premiere pro (one from Project panel and other from Media Browser panel) in Mac. I have fetched their file path using XMP metadata, but the file paths of both project items are different!!

 

E.g.

File path when import file from Project panel:

/Users/user1/Documents/fil1.txt

 

File path when import file from Media Browser panel:

/Volumes/Macintosh HD/Users/user1/Documents/fil1.txt  

Here extra prefix "/Volumes/Macintosh HD" is added which creates an issue for us as we are comparing file paths with one another.

 

Code snippet to read file path:

var projectMetadata=currentChild.getProjectMetadata();
var xmp=new XMPMeta(projectMetadata);
var kPProPrivateProjectMetadataURI="http://ns.adobe.com/premierePrivateProjectMetaData/1.0/";
var filePath=xmp.getProperty(kPProPrivateProjectMetadataURI, "Column.Intrinsic.FilePath");

 

Premiere Pro Version: 11.1.0

Extension Type: Panel

 


Thanks & Regards
Meet Tank

How to upload media file?

$
0
0

Hello,

 

I would like to upload media file in s3 using Premiere Pro. extension.

For that, I have created one  Premiere Pro. extension.

 

I have used below code to upload media.

 

uploadOnS3 = function (data) {    console.log('uploadOnS3 called');    var AWS = require('aws-sdk');    AWS.config.update({          accessKeyId: "XXX",          secretAccessKey: "XXX"    });    var s3 = new AWS.S3();    var bucketName = 'flex-qa3';    var keyName = 'AA.mp4';    var params = {Bucket: bucketName, Key: keyName, Body: data};    var options = {partSize: 10 * 1024 * 1024, queueSize: 1};    s3.upload(params, options, function(err, data) {      console.log(err, data);    });
}

uploadFile = function () {
    console.log('uploadFile called');    var fsModule = 'fs';    var fs = require(fsModule);    // First I want to read the file    fs.readFile("D:/Projects/AA.mp4", function read(err, data) {          uploadOnS3(data);     });
}
uploadFile();

 

I have added node js support in manifest.xml file in extension and I am using 'aws-sdk' for s3 upload.

 

<CEFCommandLine>   <Parameter>--enable-nodejs</Parameter>   <Parameter>--mixed-context</Parameter></CEFCommandLine>                                  

 

 

I can upload this file successfully on s3 but when I download this file and open with media player.

It couldn't play and it is corrupted.

 

Same code when I run with directly by node application without Premiere Pro. then it works and media file doesn't corrupt.

 

Same way when I download the file using 'FS' module in premiere pro then file corrupted and couldn't open in media player.

The Same code works outside the Premiere Pro. well.

 

Could you provide the proper way to upload and download media file?

Do I need to use any encoding type?

Are there any specific changes in Premiere Pro related to Buffer API and read/write related API?

 

 

Premier Pro. Version: 11.0

What's the difference of yuv420 PrPixelFormats

$
0
0

the prm sdk define below yuv420 PrPixelFormats:

 

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', '2'),

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', '2'), 

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', 'f'),      

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', 'f'),       

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', '7'),       

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', '7'),       

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', 'F'),       

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', 'F'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', '2'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', '2'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', 'f'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', 'f'),      

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', '7'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', '7'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', 'F'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', 'F'),      

 

but,what's the difference between these formats? I know 601 & 709 means BT601 & BT709 colorspace,but what's the meaning of word "FRAME","FIELD","MPEG2","MPEG4", and "FullRange"?

Link Media dialog when re-linking files trough code.

$
0
0

Hi,

 

We are integrating  adobe into our workflow automation and are running into what appears to be a bug in the program.

When renaming files to facilitate automatic upload and synchronisation, a dialog shows after the file is re-named and re-linked by code.

This seems buggy to us, as the whole reason of being able to use code for this is to prevent user interaction and thereby user error.

 

The code we use is as following:

 

cep.fs.rename(oldPath, newPath); 

projectItem.changeMediaPath(newPath); 

 

Are we missing something or is this indeed a bug in the program?

 

Kind regards,

Sven

Need help with getting started plugin development!

$
0
0

Hello adobe community, I have an idea for a plugin that deals with clip transitions and I'm just getting into sdk stuff with no idea what to do. For starters, I've installed Microsoft Virtual Studio, but don't know where to go from there. I don't understand how to set up the example SDKCross-Dissolve plugin and how to implement the example into the actual Premiere Pro application. Also what purpose are environmental variables used? How do I get the API for Premiere Pro? Lastly, is it possible to code your own tool (like the select tool or slicer tool)? I know these are a lot of questions, but like I said this is my first time so any help is greatly appreciated!


Moving from CEP7 to CEP8 will require changes to Node.js usage

$
0
0

[Apologies for broad distribution.]

 

Hello, potential CEP panel developers!

 

Changes to CEP's Node.js handling are required, between CEP7 and CEP8; this will break existing Node.js usage, in CEP extensions.

 

We apologize in advance for the breaking change; we wouldn't make these changes if they weren't required to maintain Adobe's security standards.

 

Good news: While CEP8 applications are not yet available, we can provide a good understanding of the required changes, today.

 

Attached are a migration guide, and additional details about Node.js enablement in various JavaScript contexts; the information you'll need to make your existing panels compatible with forthcoming CEP8 hosts.

 

If you'd like to test your panels in CEP8 applications, either reach out to your product team contacts, or go here to apply for pre-release access to applications which rely upon CEP8: https://www.adobeprerelease.com

Premiere data driven clip MOGRT

$
0
0

hello everybody!

 

I'm since some time into adobe prerelease

when i seen the new about "essential graphics" MOGRT, i realized that "yeah the day of editable and animated open captions for Premiere is coming"

 

okay, the end result that i want to do INSIDE premiere, without requiring AE, is :

in fact the main purpose is to be able to sent the PPROJ to our final client. And he will be able to change practically anything with ease : access any caption ; modify the text, change color - opacity - fonts - style . and get INSTANT result, just need a new render.

beside, there can be animation on text

 

this is a AWESOME workflow compared to the "old-but-gold" xml + static png images one, that require many "ping-pong" between client and us for each issue/bad text into the captions.

 

here is a video of the open caption animated effects (i guess those guys are using AE to do this video...) we need to get right into Premiere

https://1drv.ms/v/s!AgtmWMjrj3fPiAAK5U1ZiGPZR3vx

 

 

if we think just a little beyond that - meaning it can be applied to many MOGRT - here is the main goal i've got :

- open a Premiere project. on the timeline (only 1) , there is already a clip - at the very beginning. this clip is the animation effect to duplicate. it can be something that mimic the video of the subway (see over) - or other MOGRT. this clip is infact the imported MOGRT - that is now converted to regular pproj.

- then we "simply" need to duplicate this clip, and for each duplicate/clone, replace : the inside text, the TCin and TCout, the vertical and horizontal position, the justification, the font style/color/format - and so on, assuming they are present inside the JSON

     - perhaps instead of duplicate, it will be better to re-import the MOGRT into the timeline, the name of the MOGRT can be inside the JSON

     - i'm not sure actually, but i guess that a clip will contain ONLY 1 line of text. so we will need to duplicate vertically, on different video tracks, to get an animated block on several lines.

- we can call this a "data-driven_MOGRT" workflow, because after all, it is why MOGRT exist : an easy and fast way to re-purpose them.

- in AE 2018, there is an integrated way of doing it : Animate graphics with data |

 

PS : the sample animation i've create does require Pr 2018, because it use the new "responsive" feature, so that it can lock animated keyframes , so that the animation of text will be exactly the same, whatever the display duration is.

 

 

okay so now about the implementation : i'd like to know/get samples of how to :

- create a panel in Pr2018

- drag&drop or browse a JSON into it - this JSON will containt EVERYHTING needed, since i'm building it from a professional captions software.

- parse it and for each "full line" duplicate the first clip of the timeline, while changing some global parameters like TCin and TCout, and also local parameters like the text inside the text layer (coming from the MOGRT)

 

 

PS : i'm asking everyday about a official/embedded way to import JSON right into Premiere to feed MOGRT, but that seem to be "far fetched" for Adobe, even if it is obvious when you start playing with many clips/MOGRTs in a timeline!

the final goal is that such an integration of JSON for data driven of graphics will exist in near-future-version of Premiere

Extendscript: How to check string ends with

$
0
0

Hello All,

 

How to check a string ends with a particular string in extendscript? Where can I find the string api?

 

Premiere Pro Version: 12.0.0
Extension Type: Panel

 

Thanks & Regards,
Meet Tank

Release Window for SDK

$
0
0

Is Release Window for SDK versions same as Creative Cloud Versions?

I mean for bug fixes, updates, new capabilities etc..

Not sure where I can see release history information.

Or simply put, when will be next SDK version or SDK updates coming, approximately, like in months?

I apologize in advance, if this question is one of those which is asked too many times.

ProcAmp is not working on iMac.(I installed it, but I cannot see in effects list.)

$
0
0

Hi, everyone!
How are you today?

 

I installed ProcAmp plugin( for gpu acceleration) on iMac.

But I cannot see it in effects list. I am sure it is working on Mac Book.

 

I want to know about the reason asap.

 

Regards,

Igor.

Viewing all 53010 articles
Browse latest View live


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