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

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)


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!

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

How to know the extension of an EPR preset

$
0
0

WE have the integrator put only the presets they want the user to user for our Export Controller plug-in. They copy the presets from the Premiere MediaIO/statempresets/ folder.

 

When we get the EPR file it does not tell me what the file extension should be.

 

How do I determine the extension for the file to be saved in my Export Controller from the EPR preset file?

Is it possible to use Premiere Pro SDK in Visual Basic .NET?

$
0
0

I have some ideas for plugins and wanted to build them by myself.

Is it possible to use Premiere Pro SDK / After Effects SDK in VB, or i need to learn C++ for that?

Enable/Disable a TrackItem object using ExtendScript?

$
0
0

Hi All

 

Is there anyway to get/set the "Enable" state of a clip in a sequence using ExtendScript?

 

I've created (am creating) a simple sequence info panel to assist our producers in their paperwork. If the working state of clip in the sequence is disabled then I'd like my panel/script to simply ignore it (much as I can ignore entire tracks based on their 'isMuted' state).

 

I had a look at the TrackItem properties, at least all those that I could find (including the unsupported QE DOM) but couldn't find any reference to an item's "state". That said, I'm only just discovering the whole 'reflection' thing so it's entirely possible I've missed it. Does anyone know if it's currently possible?

 

I realise I can export an FCP XML of the sequence and then parse that, but I was hoping to handle everything directly within the app's API if at all possible.

 

Thanks in advance

Andy

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?

Plugin stopped working after upgrade to PPro 12.0.0

$
0
0

I'm on Mac OS Sierra using CEP 6

Tried upgrading to CEP 7, so far without success.

 

The extension does appear under Menu Bar > Window > Extensions but the panel comes up blank.

It was working fine immediately before upgrade, then stopped working immediately afterwards.

 

Any ideas how best to trouble-shoot?


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

Plug-In not showing up in premiere pro

$
0
0

Hello, I'm from accevolution (www.accevolution.net) and we've got the problem that our plugins are not showing up in premiere pro at about 30% of the customers machines. Our workaround at the moment is to tell the customers to install the most recent graphics card driver, launch premiere pro while holding down the shift key and if this doesn't help, to set the ignore flag in the registry here: 3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US to "0".

 

Any suggestions why they are working perfectly on 70% and not showing up on 30%? From those 30% that have trouble are 99% windows-user, but we also got a few mac users with that problem.

 

It would be great if somebody could give me a hint.

 

Best regards,

 

Wolfram

Motion Graphics Templates API is not working

$
0
0

Hi, everyone

 

I tried new API(Premiere Pro 12.1 API improvements ) .

But Motion Graphics Templates API is not working.

My Premiere Pro version is 12.1.1(Build 10) and windows10 OS(Japan).

 

Could you tell me if you know anythings.

 

var activeSeq = app.project.activeSequence;
if (activeSeq) {    var filterString = "";    if (Folder.fs === 'Windows'){        filterString = "Motion Graphics Templates:*.mogrt";    }    var mogrtToImport = File.openDialog ( "Choose MoGRT", // title                                                filterString, // filter available files?                                                 false); // allow multiple?    if (mogrtToImport){        var targetTime = activeSeq.getPlayerPosition();        var vidTrackOffset  = 2;        var audTrackOffset = 1;        var newTrackItem = activeSeq.importMGT( mogrtToImport.fsName,                                                     targetTime.ticks,                                                     vidTrackOffset,                                                    audTrackOffset);        if (newTrackItem){            //var moComp = newTrackItem.getMGTComponent();  //this function return Undefined            var moComp = newTrackItem.components[2]; // Simple Web Caption.mogrt            if (moComp){                var params = moComp.properties;                var srcTextParam = params.getParamForDisplayName("Source Text");                if (srcTextParam){                    var val = srcTextParam.getValue();                    srcTextParam.setValue("New value set by PProPanel!");                }            }        }    } else {        app.setSDKEventMessage('Unable to import ' + mogrtToImport.fsName + '.', 'error');      }
} 

 

thanks

Get Footage Size metadata

$
0
0

Hey there,

 

I have been trying to access the metadata section under "File Properties" to see the source size of an individual piece of footage. This information will help while generating a report about the Premiere Project through a panel.

 

I have tried accessing this through XML and XMP, but I am somewhat new to using these, and can't find the access I need. Any insights?

 

Thanks

Screen Shot 2018-07-18 at 2.52.16 PM.png

Can I implement motion blur in gpu architecture?

$
0
0

Hi, everyone!

 

I am creating a gpu accelerated plugins by gpu architecture which provides PPro.

 

But I have a question.

Can I implement motion blur?

If so, Can I get the samples?

 

Thanks,

Igor.

How to get clip starting timecode

$
0
0

Hi,

 

Is there any way to get the premiere project asset starting timecode from extendscript?

Any properties we can get from app.project.rootItem.children[0] or qe.project.getItemAt(0)

 

clip Timecode.png

Thank you.

Timecode from Seconds

$
0
0

I'm able to get Timecode from CTI object seq.CTI.timecode; also seconds.

 

But when converting the seconds back to Time code it gets confusing.

 

How to calculate Timecode value from Seconds,  using Ticks, Timebase and Zero Time?


How to get source clip times?

$
0
0

How to get source clip times, for sequence markers or player position or clip start and end points?

 

If I make a sub sequence and change start time, I lose original sequence time values.

 

so I need original clip times. Is there a way to get this?

Is it possible to load jsx file other than the local extension folder?

$
0
0

Hello All,

 

I want to load jsx file dynamically from the server (e.g. Through an http get call) in my premiere pro panel. How this can be achieved?

 

Premiere Pro version: 9.0.0
Extension Type: Panel

 

 

Thanks & Regards,
Meet Tank

Clip Marker: Different start/end time in seconds

$
0
0

Hi All,

 

I am adding a marker in clip using below code:

 

var markers = app.project.rootItem.children[0].getMarkers();
var new_marker = markers.createMarker(2.075469);
new_marker.name = "Test marker";
new_marker.comments = "Test comment";
new_marker.end = 2.075469;

 

Now I need to check that the marker already exists or not at "2.075469". I am using below code to compare the start and end seconds.

 

var markers = app.project.rootItem.children[0].getMarkers();
var start = markers.getFirstMarker().start.seconds;
var end = markers.getFirstMarker().end.seconds;
var secondsToCompare = 2.075469;
if (secondsToCompare == start && secondsToCompare == end) {     // Marker is already exists so do nothing
}
else {     // Add new marker
}

 

 

However value of both "start" and "end" is "2.08" which is not same as "2.075469".
Why premiere pro doesn't return exact value? Can anyone suggest how to achieve this?

 

Premiere Pro Version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

How to fetch frame rate of a project item?

Does a PP Project have XMP data?

$
0
0

Hi all, can a Premiere Pro Project have XMP data?  I know clips can have data, but I want to store data globally for the project, not tied to a specific clip or bin.  I need to be able to blast all clips/bins from a project but still retain XMP data.

 

I found this thread but it wasn't much help:

Re: Storing data in Premiere Project

 

I saw in the DOM there's a "app.project.rootItem" which is of type ProjectItem.

 

I also saw the code in Premiere.jsx that reads/writes XMP data to ProjectItems and tried this on the root item, but with no luck.

 

Any help would be greatly appreciated.

 

TNKS!

 

G

Viewing all 53010 articles
Browse latest View live


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