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

Interpret Footage and change color space to Rec 709 using script.

Explorer ,
Nov 02, 2022 Nov 02, 2022

Copy link to clipboard

Copied

Hi there,
Am trying to change color space of mxf footage from rec 2020 to rec 709 using script.

Footage.getFootageInterpretation() gives below object where color space is object property.

ALPHACHANNEL_IGNORE:3
ALPHACHANNEL_NONE:0
ALPHACHANNEL_PREMULTIPLIED:2
ALPHACHANNEL_STRAIGHT:1
FIELD_TYPE_DEFAULT:-1
FIELD_TYPE_LOWERFIRST:2
FIELD_TYPE_PROGRESSIVE:0
FIELD_TYPE_UPPERFIRST:1
alphaUsage:0
colorSpace:[object ColorSpace]
fieldType:-1
frameRate:25
ignoreAlpha:false
inputLUTID:00000000-0000-0000-0000-000000000000
invertAlpha:false
pixelAspectRatio:1
removePulldown:false
vrConformProjectionType:0
vrHorizontalView:0
vrLayoutType:0
vrVerticalView:0

Footage.getColorSpace() gives below object.

empty:false
isSceneReferred:false
matrixEquation:9
name:Rec. 2020
primaries:9
transferCharacteristic:14

Now i want to change color space of footage to Rec 709
Code below

//

var myRECColorSpaceObject={empty:false,isSceneReferred:false,matrixEquation:1,name:'Rec. 709',primaries:1,transferCharacteristic:1};

var myInterpretFootage=Footage.getFootageInterpretation();

myInterpretFootage.colorSpace=myRECColorSpaceObject;
Footage.setFootageInterpretation(myInterpretFootage);
//
 
This is not working. Is there any other way to do this? Someone please help.
TOPICS
How to , SDK

Views

65

Likes

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 1 Correct answer

Adobe Employee , Nov 02, 2022 Nov 02, 2022

I think you'll want to use projectItem.setOverrideColorSpace(), demonstrated here:

 

https://github.com/Adobe-CEP/Samples/blob/5490c33ac8355ba394c693deb10414553b0a5685/PProPanel/jsx/PPRO/Premiere.jsx#L2624

Likes

Translate

Translate
Community Expert ,
Nov 02, 2022 Nov 02, 2022

Copy link to clipboard

Copied

Calling @Bruce Bullis  to the rescue!

 

Neil

Likes

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 ,
Nov 02, 2022 Nov 02, 2022

Copy link to clipboard

Copied

LATEST

I think you'll want to use projectItem.setOverrideColorSpace(), demonstrated here:

 

https://github.com/Adobe-CEP/Samples/blob/5490c33ac8355ba394c693deb10414553b0a5685/PProPanel/jsx/PPR...

Likes

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