class VideoColorSpaceUsage
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.VideoColorSpaceUsage |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#VideoColorSpaceUsage |
Java | software.amazon.awscdk.services.medialive.alpha.VideoColorSpaceUsage |
Python | aws_cdk.aws_medialive_alpha.VideoColorSpaceUsage |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป VideoColorSpaceUsage |
Controls how the colorSpace value is used when it is not FOLLOW.
Example
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
| Name | Type | Description |
|---|---|---|
| value | string | The underlying string value passed to CloudFormation. |
| static FALLBACK | Video | Use the input's color space data when present; |
| static FORCE | Video | Always use colorSpace, ignoring any color space data in the input. |
value
Type:
string
The underlying string value passed to CloudFormation.
static FALLBACK
Type:
Video
Use the input's color space data when present;
fall back to colorSpace only when the
input has none.
static FORCE
Type:
Video
Always use colorSpace, ignoring any color space data in the input.
Methods
| Name | Description |
|---|---|
| static of(value) | A value not yet modelled by AWS CDK. |
static of(value)
public static of(value: string): VideoColorSpaceUsage
Parameters
- value
string
Returns
A value not yet modelled by AWS CDK.

.NET
Go
Java
Python
TypeScript (