Skip to content
v2.273.0

VideoColorSpace Class ​

Video color space.

Example ​

ts
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;

new medialive.Channel(stack, 'Channel', {
  inputs: [{
    input,
    audioSelectors: [
      medialive.AudioSelector.byLanguage('eng', 'eng', medialive.AudioLanguageSelectionPolicy.STRICT),
    ],
    captionSelectors: [
      medialive.CaptionSelector.embedded('embedded'),
    ],
    videoSelector: {
      colorSpace: medialive.VideoColorSpace.HDR10,
      colorSpaceUsage: medialive.VideoColorSpaceUsage.FORCE,
      selectBy: medialive.VideoSelection.byProgramId(1),
    },
  }],
  outputGroups: [
    medialive.OutputGroupConfiguration.hls({
      name: 'hls',
      destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
      outputs: [{ encodes: [video], outputName: 'hls_out' }],
    }),
  ],
});

Properties ​

Follow the source color space.
HLG_2020VideoColorSpacehlg_2020VideoColorSpaceHLG_2020VideoColorSpaceHLG_2020VideoColorSpaceHLG_2020VideoColorSpacerequiredstatic#
HLG 2020.
Rec.

601

Rec.

709

valuestringvaluestrvalueStringValuestringValue*stringrequired#
The underlying string value passed to CloudFormation.

Methods ​

of(value: string): VideoColorSpace // chainable@staticmethod def of(value: str) -> VideoColorSpacepublic static VideoColorSpace of(String value)public static VideoColorSpace Of(string value)func Of(Value *string) VideoColorSpacestatic#
A value not yet modelled by AWS CDK.