Skip to main content
Inspiring
November 2, 2022
Answered

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

  • November 2, 2022
  • 2 replies
  • 437 views

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.
This topic has been closed for replies.
Correct answer Bruce Bullis

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

2 replies

Bruce Bullis
Bruce BullisCorrect answer
Legend
November 2, 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

R Neil Haugen
Legend
November 2, 2022

Calling @Bruce Bullis  to the rescue!

 

Neil

Everyone's mileage always varies ...