class Lut
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.MediaLive.Alpha.Lut |
Go | github.com/aws/aws-cdk-go/awsmedialivealpha/v2#Lut |
Java | software.amazon.awscdk.services.medialive.alpha.Lut |
Python | aws_cdk.aws_medialive_alpha.Lut |
TypeScript (source) | @aws-cdk/aws-medialive-alpha ยป Lut |
The S3 location of a 3D LUT (look-up table) file used by a color-correction rule.
MediaLive
reads the LUT from S3 at runtime, so the file must be in an S3 bucket โ the URI must use the
s3:// or s3ssl:// protocol. Unlike a FileLocation, a LUT has no credentials.
Use the static factory methods to create one from an S3 bucket (which uses the secure
s3ssl:// form and auto-grants the channel role read access) or a raw S3 URL.
Example
declare const stack: Stack;
declare const bucket: s3.IBucket;
declare const input: medialive.IInput;
declare const video: medialive.EncodeConfiguration;
declare const destination: medialive.OutputDestination;
new medialive.Channel(stack, 'Channel', {
inputs: [{ input }],
colorCorrections: [{
inputColorSpace: medialive.ColorSpace.REC_601,
outputColorSpace: medialive.ColorSpace.REC_709,
lut: medialive.Lut.fromBucket(bucket, 'luts/rec601-to-rec709.cube'),
}],
outputGroups: [
medialive.OutputGroupConfiguration.hls({
name: 'hls',
destinations: [destination],
outputs: [{ encodes: [video], outputName: 'video' }],
}),
],
});
Initializer
new Lut()
Methods
| Name | Description |
|---|---|
| static from | Reference a LUT file in an S3 bucket. |
| static url(url) | Reference a LUT file by S3 URL. |
static fromBucket(bucket, key)
public static fromBucket(bucket: IBucket, key: string): Lut
Parameters
- bucket
IBucketโ The S3 bucket containing the LUT file. - key
stringโ The object key within the bucket (e.g. 'luts/rec709.cube').
Returns
Reference a LUT file in an S3 bucket.
Uses the secure s3ssl:// form and automatically
grants the channel role read access.
static url(url)
public static url(url: string): Lut
Parameters
- url
stringโ Thes3://ors3ssl://URL of the LUT file.
Returns
Reference a LUT file by S3 URL.
The URL must use the s3:// or s3ssl:// protocol.

.NET
Go
Java
Python
TypeScript (