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

Getting the timestamp and context of a render

$
0
0

Hi all,

 

In my transition plugin I want to show the user extra details when a render fails for some reason.  I already show an error popup notification, and in the ECW I make a button visible that they can click for more information.  This all has to work from both the CPU and GPU render path.  I'm using the After Effects entry points.

 

What I would like to add is the name of the sequence, the name of the track, and the timestamp of the position in the sequence.

 

I've already spend a lot of time on figuring out on how to get access to those names, but I failed to find any inroad.  I've checked:

 

  • the PrSDKVideoSegmentSuite (doesn't return relevant strings),
  • piSuites.PlugTimelineFuncsPtr (no strings either),
  • EffectRecord (can't use it -- I use the AE entry points),
  • PrSDKVideoSegmentSuite.SegmentNodePropertyCallback hoping it would pass me some undocumented strings (it didn't)
  • lots of other stuff I forgot about

 

The timestamp I'm being more successful at.  On the GPU path I use inRenderParams->inSequenceTime / PrSDKTimeSuite.GetTicksPerSecond.  However, if I let my sequence start at another time than 0:00:00, this offset is nowhere to be found...  And on the CPU path I've messed around with both in_data->total_time and in_data->current_time / in_data->time_scale, but those give incorrect values...

 

For getting the node ID on the CPU path I already have code in place that, starting with the timeline ID, searches it's way through the project until it finds my transition's node.  During the scan I thus also have access to the sequence and segment nodes, but I failed to see any relevant info on them either.

 

Does anyone have a better understanding on how I might obtain these details?


Relink TIFF sequence

$
0
0

Hey,

I created a Premiere Pro plugin which relinks track items to newer versions of a shot using setOffline() and changeMediaPath(). But as I checked this method only supports video files. Is there any way to relink track items to TIFF sequences?

 

Thanks,

Ferenc

Add an effect on ambisonic audio tracks in PPro

$
0
0

Hi, as a lot of people posting in this forum, I'm new to the development of Plug-in in Premiere Pro.

 

I am currently working on the editing of a 360 video, and as the title suggest, I would like to create an effect that I could apply on an ambisonic audio track, I use the term "effect" but I am not sure if it is really appropriate actually. What I want is a tool showing the intensity of an ambisonic sound for each angle/direction and for each frame of the audio track.
I imagine it as an effect that I could apply to the audio track, the effect would calculate for each angle and each frame the intensity of the track and show it, which would allow me to clearly visualize the intensity of my audio track in a 2D space (I don't care about the height). I think it could be pretty close to the binauralizer-ambisonics effect in term of user interface.

 

I already made my research on how to decode an ambisonic sound in order to calculate the intensity for each angle.

 

And I also made research, in this forum for example, on how to get started. I read the SDK documentation and tried to understand the use of Panels in PPro.
But even after these research, I am lost.

 

As the SDK documentation encourage, I assume the best idea would be to start from a project example. But which one is the closest to what I am trying to do ? Perhaps I am looking in the wrong place and I should document myself on Audition ? Is it even possible to do what I imagine ?

 

Thanks a lot for your answers !

Changes to the loading of external DLLs, by Premiere Pro and After Effects plug-ins

$
0
0

Some changes have been implemented in the upcoming versions of Premiere Pro and After Effects which may affect how your tools interact with the application.

 

What's Changing:

Plugin DLLs are no longer loaded from Working Directory and SearchPath will no longer locate DLLs in the Working Directory.

What Isn't Changing:

 

The Working Directory is still typically set to the application directory and the application directory is always searched for DLLs first.

What This May Affect:

  • Plugin Loading
  • Cases when a user double-clicks a file to launch Premiere Pro or After Effects
  • Cases when an application (render manager) or extension launches Premiere Pro or After Effects

 

If you would like to test your plug-ins in pre-release builds of Premiere Pro or After Effects, contact me directly.

 

Thank you for testing, and thank you for developing plug-ins for our products!

 

-bbb

Conditionally hiding topic params in the ECP

$
0
0

Hi,

 

In my Premiere Pro transition plugin I want to conditionaly hide a section/topic containing other params.  I've added the logic to UpdateParamUI.  It works for all param types except topics.

 

What I'm doing is (roughly):

    PF_ParamUtilsSuite3* paramUtilsSuitePtr = ...;
    int paramIndex = ...;
    bool show = ...;
    ...
    PF_ParamDef copy = params[paramIndex];
    if (show) {
        copy.ui_flags |= PF_PUI_INVISIBLE;
    }
    else {
        copy.ui_flags &= ~PF_PUI_INVISIBLE;
    }
    copy.uu.change_flags = PF_ChangeFlag_CHANGED_VALUE;
    params[paramIndex] = copy; // so other parts of the code executing before we return to Premiere see the new state
    paramUtilsSuitePtr->PF_UpdateParamUI(in_data->effect_ref, paramIndex, &copy);

As said, for e.g. buttons or sliders this works nicely.

 

Now topics.  When I add a topic, initially visible, and then in UpdateParamUI run the above code twice (for both the topic start and end param), I get weird results:

 

  • I drag the transition into a project
  • I click the layer to open the ECP
  • Result: the topic is nicely hidden, and all other params in it and surrounding it are shown
  • I then click outside the layer (so the ECP doesn't show the layer's params)
  • I click the layer again to open the ECP
  • The ECP blows up...

 

The result is that the topic above it loses it's name (it becomes a nameless twirly), the topic itself still shows but also nameless, it's params are back again but also all nameless, and it is followed by a normal copy of itself where all labels still show.  Changing the params in this visible copy also updates the corresponding values of the nameless shadow copy.

 

Then I read in another post on this forum that you'd also need to hide the params inside the topic, and that you should leave the topic's end param as is.  The latter doesn't change the situation at all, and the former only results in the embedded params to now remain hidden, but the topic itself still acts up the same (both a nameless shadow copy as well as the effect on the topic above it).

 

Does anyone know how to properly hide a topic in Premiere Pro?  I've tested this on 2018 (12.1.2) as well as 2019 (13.1.2), but both act up.

 

I've also looked at an old 2012 copy of the Supervisor sample.  That one shows/hides 3 regular params, but in the ID list I see the sample once also had a topic param.  Was this one removed from the sample due to topics not being hidable (anymore)?

Premiere Pro importer plugin loaded successfully but file still not supported?

$
0
0

Dear all, I am new to Adobe Premiere Pro plugin development and I developed a custom file importer plugin for Premiere Pro CC recently. But in some of my client machines the plugin can be loaded successfully by Premiere Pro according to the log file as following:

 

Loading C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\CustomImporter.prm

The registry tells us not to cache so the plugin will be loaded from disk.

Loading from disk...

This plugin was recognized by loader ba1058cd-0007-44e4-bf1a-0ef51307b979.

 

Curiously, when I try to import custom file into Premiere Pro, it warns that the file is not supported by Premiere Pro. But in my development machine it works like charming. I can't figure it out why did that happen? I developed this plugin in Windows 10 with Visual Studio 2015, and I tested the plugin in Premiere Pro 2019. The plugin SDK is also updated. Does anyone has the same issue? It would be very nice to give some advice...

 

Thank you very much.

How to support both BGRA 16u and 8u?

$
0
0

Hi,

 

I am new to using Adobe SDK. Currently, I am working with the SDK Noise plug in. By default the plug-in supports PrPixelFormat_BGRA_4444_8u in the AddSupportedPixelFormats section in the Global Setup. What I have done is added PrPixelFormat_BGRA_4444_16u and put that line above the PrPixelFormat_BGRA_4444_8u in the global setup. I have also created a iterateshort function similar to the IterateFloat function created but rather than iterating by 16 for each pixel, i iterate by 8. I did this by changing the values to iterate for LocalSrc, LocalDst from 16 to 8. I also added a else if to the render for else if (destinationPixelFormat == PrPixelFormat_BGRA_4444_16u) to run my 16 bit function in Render. In the .h file, I have also created a struct:

 

typedef struct {

A_u_short blue, green, red, alpha; //added 16 bpc struct

} PF_Pixel_BGRA_16u;

 

When I import a 16 bit tiff file and run the code with the above changes,the format changes to BGRA 4444 8u full range rather than 15u. If I were to comment out the PrPixelFormat_BGRA_4444_8u in AddSupportedPixelFormats, the format after I use the plug-in format stays as 15u.

Here is my input of a white 16bit TIFF image with the Dogears display:

Below is the output without commenting out the pixel format and using my updated SDK_Noise plugin:

This is the output when I comment out the PrPixelFormat_BGRA_4444_8u in supported formats and use my updated SDK_Noise plug-in.

 

My question is what am I missing in order to keep the PrPixelFormat_BGRA_4444_8u format line in order to support both 8bit and 16 bit RGB images. I want to see the 15u Full Range output while still having 8 bit support. Any help would be appreciated.

Check if sequence is Empty at getPlayerPosition() ????

$
0
0

Hello my friends.

 

I'm trying to import a .mogrt into the sequence, but sometimes the track already has a video, and I do not want to overwrite it.

is there any method to check if the track is empty in getPlayerPosition () so I can create a new function that will create a new track above to import the new mogrt and not overwrite the previously imported video?

 

I do not know if i was clear.

I'm counting on your help.

 

Regards

 

 

Rubens Nobre


Each project item has a uninque nodeId in ExtendScript, and an importer plugin as an importer id when developing supported by pr plugin sdk. Is there any relations between the nodId and importer id?

$
0
0

Each project item has a uninque nodeId in ExtendScript, and an importer plugin as an importer id when developing supported by pr plugin sdk. Is there any relations between the nodId and importer id?

Duplicate clip

$
0
0

Hello,

 

I don't know how to duplicate clip in one sequence (of 2) which composed of several videotrack.

 

I have this script :

 

var first = app.project.rootItem.children[0];

first.setStartTime(20);

first.setInPoint(30);

first.setOutPoint(45);

var seq = app.project.activeSequence;

var vTrack1 = seq.videoTracks[1];

vTrack1.insertClip(first, '00;00;08;00');

 

 

This code will duplicate the clip 1 (children[0]) of the sequence 0 (rootTtem) on the sequence 1.

 

However, I would like to duplicate the clip 1 of the sequence 1 on the sequence 1.

 

I do not think I can use rootItem. I tried everything and do not know what to do

 

Do you know anything about that to destress me ?

 

Thank you

Visual Studio Code failed to debug the Premiere

$
0
0

As mentioned, when I try to use visual studio code to debug the Premiere, a error box jumped out, "(#15) Cannot execute script in target engine 'main'!

 

My luanch.json is :

{

 

   "version": "0.2.0",

   "configurations": [

  {

   "type": "extendscript-debug",

   "request": "launch",

   "name": "Custom Debug",

   "program": "${workspaceFolder}/jsx/PPRO/Premiere.jsx",

   "stopOnEntry": false

  }

  ]

}

 

I also try to fix the bt.timeout in 002BTBackend.jsx, but it turns out to be the bt.timeout = 604800; // a week

 

So, is a problem about ExtendScript Debugger extension in vs code or a premiere problem?

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

Problems with plugins .bundle from Premiere Pro SDK for macOS

$
0
0

Hi all,

 

I am using:

SDK - Premiere Pro CC 2017.1

Program - Adobe Premiere Pro CC 2017.1

OS - macOS Sierra

 

After compile Vignette plugin from Premiere Pro SDK, it is not load to Premiere. But Premiere founded this plugin.

In log file: "No loaders recognized this plugin, so the plugin is set to ignore."

 

Pasted File at August 17, 2017 5-40 PM.png

 

Does anyone have a solution to this problem? Please, help me.

CSInterface.requestOpenExtension not working in 2019

$
0
0

Hey guys,

Because there isn't anything in the API for guis, I need my script (which is running from a panel) to open another panel. I used CSInterface.requestOpenExtension up until this point, which worked on 2018 and below. This no longer seems to work for 2019. Has this feature been removed?

ExtendScript and Metadata -- accessing any and all metadata

$
0
0

Haven't found a way access many of the metadata entries offered offered up under PPro's Metadata" panel and the "Metadata Display..." popup

e.g. from "Dublin Core": "Keywords", "Title", "Type" or those under "Rights Management", "Media Management" etc.

 

Can ExtendScript 'get' and 'set' any and all metadata properties or are there limits?


How to get Marker GUID

$
0
0

Hi,

I apologize if this topic already being discussed somewhere, but I wasn't able to find such a topic, so I started one.

 

What I want to do is, I want to retrieve each Marker's GUID "08d9eceb-7f5f-4aec-909b-992db10984db", something similar to this.

 

Does anyone know how to get each available marker's GUID in anyway (API or XMP )

 

Thank in advance for any help.

 

regards,

Nuwan.

Convert timecodes to seconds

$
0
0

Is there a method to convert timecode(hh:mm:ss:ff) to seconds ?

 

I'm trying to create a marker using markers.CreateMarker() method but for some reasons the supplied value in seconds doesn't match input timecodes.

For e.g. I have a timecode 00:03:00:00 on a 29.97fps(Non-drop frame). In order to convert it into seconds,

 

var a = time.split(':');

var seconds = ((Number(a[0])* 3600) + (Number(a[1]) * 60) + Number(a[2]));

var milliseconds = (Number(a[3])/ fps);   // fps is 29.97

var result = seconds + parseFloat(milliseconds,5); 

 

Result here is 180 seconds. Premiere shows this timecode as :

 

Non-Drop frame

In: 00:02:59:24 , which is 5 frames behind.

 

Drop frames gives me slightly better results

In: 00:02:59:28, which is 2 frames behind.


Please suggest.


Keyboard Shortcut Conflicts

$
0
0

Is there a way to override Premiere Pro shortcuts when your custom CEP Panel is in focus? For instance, I'm trying to get the Cmd+Z and Cmd+Shift+Z shortcut for a text field in my panel, but it keeps triggering the Premiere Pro undo command instead.

 

  $("#editor").on("keyup", function(e){       e.preventDefault();       if(e.keyCode == 91 && e.keyCode == 90)       {       undoEdit();       }  });

 

I know the code works since I tested it with each key individually, and I believe e.preventDefault() is supposed to allow this, but it's not working in my case. Any thoughts are appreciated. Thanks!

AWS S3: Download media file get corrupted

$
0
0

Hi All,

 

I am trying to download media file (image or video) from AWS S3 using nodejsaws-sdk module. The file is downloaded but I couldn't open as it looks corrupted. Also noted that file size is not same as source file. Refer below code:

 

 

var AWS = require('aws-sdk');

var options = {
accessKeyId: "XXX",
secretAccessKey: "XXX"
};
var s3 = new AWS.S3(options);

var bucketName = 'test-bucket';
var keyName = 'test.jpg';
var params = {Bucket: bucketName, Key: keyName};

var fsModule = "fs";
var fs = require(fsModule);

// This requires when running this code in panel
AWS.util.stream = require('stream');

var writeStream = fs.createWriteStream('D:/test.jpg');
var readStream = s3.getObject(params).createReadStream();

readStream.pipe(writeStream);

 

I have added aws-sdk node module in my extension folder.

 

Note:
(1) I can download and open txt file without any issue
(2) If I run this code outside panel context (run in local nodejs server) it works for all type of files including text and media!!

 

 


Premiere Pro version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

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

Viewing all 53010 articles
Browse latest View live


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