• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Using ExtendScript how to get the Video Codec Type of projectItem?

Enthusiast ,
Sep 23, 2021 Sep 23, 2021

Copy link to clipboard

Copied

Working with ExtendScript/PPro API in an Adobe Custom HTML Panel, I'm trying evaluate the 'Video Codec Type' of a projectItem with the same level of detail as you find revealed in the `Properties` menu item (PPro > File Menu > Get Properties for... > Selection)


The Properties panel of the PPro UI you get pretty detailed info for "Video Codec Type", (e.g. "MP4/MOV H.264 4:2:0")


The closest equivalent found to date involves using XMPMetadata & ProjectMetadata, but the result, at best, is something like "AVC HD", "AVC1", and frequently nothing at all.


Is there a way to obtaining more detailed codec information using PPRo ExtendScript?

TOPICS
Formats , SDK

Views

398

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Adobe Employee , Sep 23, 2021 Sep 23, 2021

Nothing beyond what you've already found in the project metadata.

Votes

Translate

Translate
Adobe Employee , Dec 15, 2023 Dec 15, 2023

Codec: There's a metadata column available in the Project panel (and via PPro's private project metadata API).
Media container: The projectItem's file path tells you that.

Color space : You can get both the current and original colorspaces, for projectItems.

Votes

Translate

Translate
Adobe Employee ,
Sep 23, 2021 Sep 23, 2021

Copy link to clipboard

Copied

Nothing beyond what you've already found in the project metadata.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 23, 2021 Sep 23, 2021

Copy link to clipboard

Copied

Thanks, good to know where the limits are.

So how is it that in Premiere's UI, the Properties feature digs out more info, and more importantly, is something that could be accessed using the C++ API (as opposed to the JS / ExtendScript API).

 

Sort of a side question, but possibly relevant: I'm now seeing in the Chrome inspector for Premiere a new "Target": for Adobe UXP.  Does this mean UXP is now available for Premiere?  Or is that just a preview of coming attractions?  If, by chance, UXP is now available, will the API be expanding to achieve things like, say getting more detailed codec info?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Sep 23, 2021 Sep 23, 2021

Copy link to clipboard

Copied

I'm not sure which C++ API you mean, can access that information?

> How is it that...

The API grows via developer requests. What workflow(s) would you create, given that information?

Third party UXP support is not yet available in PPro; it's early to speculate about eventual API expansion. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 23, 2021 Sep 23, 2021

Copy link to clipboard

Copied

UXP:

Looking forward to it.

 

which C++ API?

Premiere Pro Extensions SDK

 

What workflow(s) would you create, given that information?

A current client who's looking to intergrate their external App with PPro & AE.  There's an back-and-forth data-flow, and one of the bits of info they want is the codec, file format, color space, etc.

 

 

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 24, 2021 Sep 24, 2021

Copy link to clipboard

Copied

Ok, following up on this...

 

I scoured the metadata and the ExtendScript API to see if there was anything that could be cobbled together that might match what's represented in  File > Get Properties for... menu option.

 

Found nothing.

 

And yet, we know somewhere in the bowels of Premiere it has the ability to discern

  • codec
  • media container
  • color space

 

Any reason to think the Plugins API can access this info?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 14, 2023 Dec 14, 2023

Copy link to clipboard

Copied

What workflow(s) would you create, given that information?

 

We have original media on a server. Users usually use media which was already formatted.

We are creating a workflow, so the user can see what material inside the bins has original media stored on the server. It would be nice to display the codec of the projectItems, so the user can see and choose if the original material is needed and import it on demand.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 15, 2023 Dec 15, 2023

Copy link to clipboard

Copied

LATEST

Codec: There's a metadata column available in the Project panel (and via PPro's private project metadata API).
Media container: The projectItem's file path tells you that.

Color space : You can get both the current and original colorspaces, for projectItems.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines