Preset
Provides an Elastic Transcoder preset resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var bar = new Aws.ElasticTranscoder.Preset("bar", new Aws.ElasticTranscoder.PresetArgs
{
Audio = new Aws.ElasticTranscoder.Inputs.PresetAudioArgs
{
AudioPackingMode = "SingleTrack",
BitRate = "96",
Channels = "2",
Codec = "AAC",
SampleRate = "44100",
},
AudioCodecOptions = new Aws.ElasticTranscoder.Inputs.PresetAudioCodecOptionsArgs
{
Profile = "AAC-LC",
},
Container = "mp4",
Description = "Sample Preset",
Thumbnails = new Aws.ElasticTranscoder.Inputs.PresetThumbnailsArgs
{
Format = "png",
Interval = "120",
MaxHeight = "auto",
MaxWidth = "auto",
PaddingPolicy = "Pad",
SizingPolicy = "Fit",
},
Video = new Aws.ElasticTranscoder.Inputs.PresetVideoArgs
{
BitRate = "1600",
Codec = "H.264",
DisplayAspectRatio = "16:9",
FixedGop = "false",
FrameRate = "auto",
KeyframesMaxDist = "240",
MaxFrameRate = "60",
MaxHeight = "auto",
MaxWidth = "auto",
PaddingPolicy = "Pad",
SizingPolicy = "Fit",
},
VideoCodecOptions =
{
{ "ColorSpaceConversionMode", "None" },
{ "InterlacedMode", "Progressive" },
{ "Level", "2.2" },
{ "MaxReferenceFrames", "3" },
{ "Profile", "main" },
},
VideoWatermarks =
{
new Aws.ElasticTranscoder.Inputs.PresetVideoWatermarkArgs
{
HorizontalAlign = "Right",
HorizontalOffset = "10px",
Id = "Test",
MaxHeight = "20%",
MaxWidth = "20%",
Opacity = "55.5",
SizingPolicy = "ShrinkToFit",
Target = "Content",
VerticalAlign = "Bottom",
VerticalOffset = "10px",
},
},
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/elastictranscoder"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := elastictranscoder.NewPreset(ctx, "bar", &elastictranscoder.PresetArgs{
Audio: &elastictranscoder.PresetAudioArgs{
AudioPackingMode: pulumi.String("SingleTrack"),
BitRate: pulumi.String("96"),
Channels: pulumi.String("2"),
Codec: pulumi.String("AAC"),
SampleRate: pulumi.String("44100"),
},
AudioCodecOptions: &elastictranscoder.PresetAudioCodecOptionsArgs{
Profile: pulumi.String("AAC-LC"),
},
Container: pulumi.String("mp4"),
Description: pulumi.String("Sample Preset"),
Thumbnails: &elastictranscoder.PresetThumbnailsArgs{
Format: pulumi.String("png"),
Interval: pulumi.String("120"),
MaxHeight: pulumi.String("auto"),
MaxWidth: pulumi.String("auto"),
PaddingPolicy: pulumi.String("Pad"),
SizingPolicy: pulumi.String("Fit"),
},
Video: &elastictranscoder.PresetVideoArgs{
BitRate: pulumi.String("1600"),
Codec: pulumi.String("H.264"),
DisplayAspectRatio: pulumi.String("16:9"),
FixedGop: pulumi.String("false"),
FrameRate: pulumi.String("auto"),
KeyframesMaxDist: pulumi.String("240"),
MaxFrameRate: pulumi.String("60"),
MaxHeight: pulumi.String("auto"),
MaxWidth: pulumi.String("auto"),
PaddingPolicy: pulumi.String("Pad"),
SizingPolicy: pulumi.String("Fit"),
},
VideoCodecOptions: pulumi.StringMap{
"ColorSpaceConversionMode": pulumi.String("None"),
"InterlacedMode": pulumi.String("Progressive"),
"Level": pulumi.String("2.2"),
"MaxReferenceFrames": pulumi.String("3"),
"Profile": pulumi.String("main"),
},
VideoWatermarks: elastictranscoder.PresetVideoWatermarkArray{
&elastictranscoder.PresetVideoWatermarkArgs{
HorizontalAlign: pulumi.String("Right"),
HorizontalOffset: pulumi.String("10px"),
Id: pulumi.String("Test"),
MaxHeight: pulumi.String(fmt.Sprintf("%v%v", "20", "%")),
MaxWidth: pulumi.String(fmt.Sprintf("%v%v", "20", "%")),
Opacity: pulumi.String("55.5"),
SizingPolicy: pulumi.String("ShrinkToFit"),
Target: pulumi.String("Content"),
VerticalAlign: pulumi.String("Bottom"),
VerticalOffset: pulumi.String("10px"),
},
},
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
bar = aws.elastictranscoder.Preset("bar",
audio={
"audioPackingMode": "SingleTrack",
"bitRate": 96,
"channels": 2,
"codec": "AAC",
"sampleRate": 44100,
},
audio_codec_options={
"profile": "AAC-LC",
},
container="mp4",
description="Sample Preset",
thumbnails={
"format": "png",
"interval": 120,
"maxHeight": "auto",
"maxWidth": "auto",
"paddingPolicy": "Pad",
"sizingPolicy": "Fit",
},
video={
"bitRate": "1600",
"codec": "H.264",
"displayAspectRatio": "16:9",
"fixedGop": "false",
"frameRate": "auto",
"keyframesMaxDist": 240,
"maxFrameRate": "60",
"maxHeight": "auto",
"maxWidth": "auto",
"paddingPolicy": "Pad",
"sizingPolicy": "Fit",
},
video_codec_options={
"ColorSpaceConversionMode": "None",
"InterlacedMode": "Progressive",
"Level": "2.2",
"MaxReferenceFrames": 3,
"Profile": "main",
},
video_watermarks=[{
"horizontalAlign": "Right",
"horizontalOffset": "10px",
"id": "Test",
"maxHeight": "20%",
"maxWidth": "20%",
"opacity": "55.5",
"sizingPolicy": "ShrinkToFit",
"target": "Content",
"verticalAlign": "Bottom",
"verticalOffset": "10px",
}])import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const bar = new aws.elastictranscoder.Preset("bar", {
audio: {
audioPackingMode: "SingleTrack",
bitRate: "96",
channels: "2",
codec: "AAC",
sampleRate: "44100",
},
audioCodecOptions: {
profile: "AAC-LC",
},
container: "mp4",
description: "Sample Preset",
thumbnails: {
format: "png",
interval: "120",
maxHeight: "auto",
maxWidth: "auto",
paddingPolicy: "Pad",
sizingPolicy: "Fit",
},
video: {
bitRate: "1600",
codec: "H.264",
displayAspectRatio: "16:9",
fixedGop: "false",
frameRate: "auto",
keyframesMaxDist: "240",
maxFrameRate: "60",
maxHeight: "auto",
maxWidth: "auto",
paddingPolicy: "Pad",
sizingPolicy: "Fit",
},
videoCodecOptions: {
ColorSpaceConversionMode: "None",
InterlacedMode: "Progressive",
Level: "2.2",
MaxReferenceFrames: 3,
Profile: "main",
},
videoWatermarks: [{
horizontalAlign: "Right",
horizontalOffset: "10px",
id: "Test",
maxHeight: "20%",
maxWidth: "20%",
opacity: "55.5",
sizingPolicy: "ShrinkToFit",
target: "Content",
verticalAlign: "Bottom",
verticalOffset: "10px",
}],
});Create a Preset Resource
new Preset(name: string, args: PresetArgs, opts?: CustomResourceOptions);def Preset(resource_name, opts=None, audio=None, audio_codec_options=None, container=None, description=None, name=None, thumbnails=None, type=None, video=None, video_codec_options=None, video_watermarks=None, __props__=None);func NewPreset(ctx *Context, name string, args PresetArgs, opts ...ResourceOption) (*Preset, error)public Preset(string name, PresetArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args PresetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args PresetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PresetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Preset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Preset resource accepts the following input properties:
- Container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- Audio
Preset
Audio Args Audio parameters object (documented below).
- Audio
Codec PresetOptions Audio Codec Options Args Codec options for the audio parameters (documented below)
- Description string
A description of the preset (maximum 255 characters)
- Name string
The name of the preset. (maximum 40 characters)
- Thumbnails
Preset
Thumbnails Args Thumbnail parameters object (documented below)
- Type string
- Video
Preset
Video Args Video parameters object (documented below)
- Video
Codec Dictionary<string, string>Options Codec options for the video parameters
- Video
Watermarks List<PresetVideo Watermark Args> Watermark parameters for the video parameters (documented below)
- Container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- Audio
Preset
Audio Audio parameters object (documented below).
- Audio
Codec PresetOptions Audio Codec Options Codec options for the audio parameters (documented below)
- Description string
A description of the preset (maximum 255 characters)
- Name string
The name of the preset. (maximum 40 characters)
- Thumbnails
Preset
Thumbnails Thumbnail parameters object (documented below)
- Type string
- Video
Preset
Video Video parameters object (documented below)
- Video
Codec map[string]stringOptions Codec options for the video parameters
- Video
Watermarks []PresetVideo Watermark Watermark parameters for the video parameters (documented below)
- container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- audio
Preset
Audio Audio parameters object (documented below).
- audio
Codec PresetOptions Audio Codec Options Codec options for the audio parameters (documented below)
- description string
A description of the preset (maximum 255 characters)
- name string
The name of the preset. (maximum 40 characters)
- thumbnails
Preset
Thumbnails Thumbnail parameters object (documented below)
- type string
- video
Preset
Video Video parameters object (documented below)
- video
Codec {[key: string]: string}Options Codec options for the video parameters
- video
Watermarks PresetVideo Watermark[] Watermark parameters for the video parameters (documented below)
- container str
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- audio
Dict[Preset
Audio] Audio parameters object (documented below).
- audio_
codec_ Dict[Presetoptions Audio Codec Options] Codec options for the audio parameters (documented below)
- description str
A description of the preset (maximum 255 characters)
- name str
The name of the preset. (maximum 40 characters)
- thumbnails
Dict[Preset
Thumbnails] Thumbnail parameters object (documented below)
- type str
- video
Dict[Preset
Video] Video parameters object (documented below)
- video_
codec_ Dict[str, str]options Codec options for the video parameters
- video_
watermarks List[PresetVideo Watermark] Watermark parameters for the video parameters (documented below)
Outputs
All input properties are implicitly available as output properties. Additionally, the Preset resource produces the following output properties:
Look up an Existing Preset Resource
Get an existing Preset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: PresetState, opts?: CustomResourceOptions): Presetstatic get(resource_name, id, opts=None, arn=None, audio=None, audio_codec_options=None, container=None, description=None, name=None, thumbnails=None, type=None, video=None, video_codec_options=None, video_watermarks=None, __props__=None);func GetPreset(ctx *Context, name string, id IDInput, state *PresetState, opts ...ResourceOption) (*Preset, error)public static Preset Get(string name, Input<string> id, PresetState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Arn string
- Audio
Preset
Audio Args Audio parameters object (documented below).
- Audio
Codec PresetOptions Audio Codec Options Args Codec options for the audio parameters (documented below)
- Container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- Description string
A description of the preset (maximum 255 characters)
- Name string
The name of the preset. (maximum 40 characters)
- Thumbnails
Preset
Thumbnails Args Thumbnail parameters object (documented below)
- Type string
- Video
Preset
Video Args Video parameters object (documented below)
- Video
Codec Dictionary<string, string>Options Codec options for the video parameters
- Video
Watermarks List<PresetVideo Watermark Args> Watermark parameters for the video parameters (documented below)
- Arn string
- Audio
Preset
Audio Audio parameters object (documented below).
- Audio
Codec PresetOptions Audio Codec Options Codec options for the audio parameters (documented below)
- Container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- Description string
A description of the preset (maximum 255 characters)
- Name string
The name of the preset. (maximum 40 characters)
- Thumbnails
Preset
Thumbnails Thumbnail parameters object (documented below)
- Type string
- Video
Preset
Video Video parameters object (documented below)
- Video
Codec map[string]stringOptions Codec options for the video parameters
- Video
Watermarks []PresetVideo Watermark Watermark parameters for the video parameters (documented below)
- arn string
- audio
Preset
Audio Audio parameters object (documented below).
- audio
Codec PresetOptions Audio Codec Options Codec options for the audio parameters (documented below)
- container string
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- description string
A description of the preset (maximum 255 characters)
- name string
The name of the preset. (maximum 40 characters)
- thumbnails
Preset
Thumbnails Thumbnail parameters object (documented below)
- type string
- video
Preset
Video Video parameters object (documented below)
- video
Codec {[key: string]: string}Options Codec options for the video parameters
- video
Watermarks PresetVideo Watermark[] Watermark parameters for the video parameters (documented below)
- arn str
- audio
Dict[Preset
Audio] Audio parameters object (documented below).
- audio_
codec_ Dict[Presetoptions Audio Codec Options] Codec options for the audio parameters (documented below)
- container str
The container type for the output file. Valid values are
flac,flv,fmp4,gif,mp3,mp4,mpg,mxf,oga,ogg,ts, andwebm.- description str
A description of the preset (maximum 255 characters)
- name str
The name of the preset. (maximum 40 characters)
- thumbnails
Dict[Preset
Thumbnails] Thumbnail parameters object (documented below)
- type str
- video
Dict[Preset
Video] Video parameters object (documented below)
- video_
codec_ Dict[str, str]options Codec options for the video parameters
- video_
watermarks List[PresetVideo Watermark] Watermark parameters for the video parameters (documented below)
Supporting Types
PresetAudio
- Audio
Packing stringMode The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
- Bit
Rate string The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- Channels string
The number of audio channels in the output file
- Codec string
The audio codec for the output file. Valid values are
AAC,flac,mp2,mp3,pcm, andvorbis.- Sample
Rate string The sample rate of the audio stream in the output file, in hertz. Valid values are:
auto,22050,32000,44100,48000,96000
- Audio
Packing stringMode The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
- Bit
Rate string The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- Channels string
The number of audio channels in the output file
- Codec string
The audio codec for the output file. Valid values are
AAC,flac,mp2,mp3,pcm, andvorbis.- Sample
Rate string The sample rate of the audio stream in the output file, in hertz. Valid values are:
auto,22050,32000,44100,48000,96000
- audio
Packing stringMode The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
- bit
Rate string The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- channels string
The number of audio channels in the output file
- codec string
The audio codec for the output file. Valid values are
AAC,flac,mp2,mp3,pcm, andvorbis.- sample
Rate string The sample rate of the audio stream in the output file, in hertz. Valid values are:
auto,22050,32000,44100,48000,96000
- audio
Packing strMode The method of organizing audio channels and tracks. Use Audio:Channels to specify the number of channels in your output, and Audio:AudioPackingMode to specify the number of tracks and their relation to the channels. If you do not specify an Audio:AudioPackingMode, Elastic Transcoder uses SingleTrack.
- bit
Rate str The bit rate of the audio stream in the output file, in kilobits/second. Enter an integer between 64 and 320, inclusive.
- channels str
The number of audio channels in the output file
- codec str
The audio codec for the output file. Valid values are
AAC,flac,mp2,mp3,pcm, andvorbis.- sample
Rate str The sample rate of the audio stream in the output file, in hertz. Valid values are:
auto,22050,32000,44100,48000,96000
PresetAudioCodecOptions
- Bit
Depth string The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are
16and24. (FLAC/PCM Only)- Bit
Order string The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
- Profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
- Signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
- Bit
Depth string The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are
16and24. (FLAC/PCM Only)- Bit
Order string The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
- Profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
- Signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
- bit
Depth string The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are
16and24. (FLAC/PCM Only)- bit
Order string The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
- profile string
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
- signed string
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
- bit
Depth str The bit depth of a sample is how many bits of information are included in the audio samples. Valid values are
16and24. (FLAC/PCM Only)- bit
Order str The order the bits of a PCM sample are stored in. The supported value is LittleEndian. (PCM Only)
- profile str
If you specified AAC for Audio:Codec, choose the AAC profile for the output file.
- signed str
Whether audio samples are represented with negative and positive numbers (signed) or only positive numbers (unsigned). The supported value is Signed. (PCM Only)
PresetThumbnails
- Aspect
Ratio string The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
- Format string
The format of thumbnails, if any. Valid formats are jpg and png.
- Interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
- Max
Height string The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
- Max
Width string The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
- Padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
- Resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values
max_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)- Sizing
Policy string A value that controls scaling of thumbnails. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
- Aspect
Ratio string The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
- Format string
The format of thumbnails, if any. Valid formats are jpg and png.
- Interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
- Max
Height string The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
- Max
Width string The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
- Padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
- Resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values
max_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)- Sizing
Policy string A value that controls scaling of thumbnails. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
- aspect
Ratio string The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
- format string
The format of thumbnails, if any. Valid formats are jpg and png.
- interval string
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
- max
Height string The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
- max
Width string The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
- padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
- resolution string
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values
max_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)- sizing
Policy string A value that controls scaling of thumbnails. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
- aspect
Ratio str The aspect ratio of thumbnails. The following values are valid: auto, 1:1, 4:3, 3:2, 16:9
- format str
The format of thumbnails, if any. Valid formats are jpg and png.
- interval str
The approximate number of seconds between thumbnails. The value must be an integer. The actual interval can vary by several seconds from one thumbnail to the next.
- max
Height str The maximum height of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 3072, inclusive.
- max
Width str The maximum width of thumbnails, in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 32 and 4096, inclusive.
- padding
Policy str When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of thumbnails to make the total size of the thumbnails match the values that you specified for thumbnail MaxWidth and MaxHeight settings.
- resolution str
The width and height of thumbnail files in pixels, in the format WidthxHeight, where both values are even integers. The values cannot exceed the width and height that you specified in the Video:Resolution object. (To better control resolution and aspect ratio of thumbnails, we recommend that you use the thumbnail values
max_width,max_height,sizing_policy, andpadding_policyinstead ofresolutionandaspect_ratio. The two groups of settings are mutually exclusive. Do not use them together)- sizing
Policy str A value that controls scaling of thumbnails. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit, andShrinkToFill.
PresetVideo
- Aspect
Ratio string The display aspect ratio of the video in the output file. Valid values are:
auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)- Bit
Rate string The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
- Codec string
The video codec for the output file. Valid values are
gif,H.264,mpeg2,vp8, andvp9.- Display
Aspect stringRatio The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
- Fixed
Gop string Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
- Frame
Rate string The frames per second for the video stream in the output file. The following values are valid:
auto,10,15,23.97,24,25,29.97,30,50,60.- Keyframes
Max stringDist The maximum number of frames between key frames. Not applicable for containers of type gif.
- Max
Frame stringRate If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
- Max
Height string The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
- Max
Width string The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
- Padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for
max_widthandmax_height.- Resolution string
The width and height of the video in the output file, in pixels. Valid values are
autoandwidthxheight. (see note foraspect_ratio)- Sizing
Policy string A value that controls scaling of the output video. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
- Aspect
Ratio string The display aspect ratio of the video in the output file. Valid values are:
auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)- Bit
Rate string The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
- Codec string
The video codec for the output file. Valid values are
gif,H.264,mpeg2,vp8, andvp9.- Display
Aspect stringRatio The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
- Fixed
Gop string Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
- Frame
Rate string The frames per second for the video stream in the output file. The following values are valid:
auto,10,15,23.97,24,25,29.97,30,50,60.- Keyframes
Max stringDist The maximum number of frames between key frames. Not applicable for containers of type gif.
- Max
Frame stringRate If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
- Max
Height string The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
- Max
Width string The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
- Padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for
max_widthandmax_height.- Resolution string
The width and height of the video in the output file, in pixels. Valid values are
autoandwidthxheight. (see note foraspect_ratio)- Sizing
Policy string A value that controls scaling of the output video. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
- aspect
Ratio string The display aspect ratio of the video in the output file. Valid values are:
auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)- bit
Rate string The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
- codec string
The video codec for the output file. Valid values are
gif,H.264,mpeg2,vp8, andvp9.- display
Aspect stringRatio The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
- fixed
Gop string Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
- frame
Rate string The frames per second for the video stream in the output file. The following values are valid:
auto,10,15,23.97,24,25,29.97,30,50,60.- keyframes
Max stringDist The maximum number of frames between key frames. Not applicable for containers of type gif.
- max
Frame stringRate If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
- max
Height string The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
- max
Width string The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
- padding
Policy string When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for
max_widthandmax_height.- resolution string
The width and height of the video in the output file, in pixels. Valid values are
autoandwidthxheight. (see note foraspect_ratio)- sizing
Policy string A value that controls scaling of the output video. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
- aspect
Ratio str The display aspect ratio of the video in the output file. Valid values are:
auto,1:1,4:3,3:2,16:9. (Note; to better control resolution and aspect ratio of output videos, we recommend that you use the valuesmax_width,max_height,sizing_policy,padding_policy, anddisplay_aspect_ratioinstead ofresolutionandaspect_ratio.)- bit
Rate str The bit rate of the video stream in the output file, in kilobits/second. You can configure variable bit rate or constant bit rate encoding.
- codec str
The video codec for the output file. Valid values are
gif,H.264,mpeg2,vp8, andvp9.- display
Aspect strRatio The value that Elastic Transcoder adds to the metadata in the output file. If you set DisplayAspectRatio to auto, Elastic Transcoder chooses an aspect ratio that ensures square pixels. If you specify another option, Elastic Transcoder sets that value in the output file.
- fixed
Gop str Whether to use a fixed value for Video:FixedGOP. Not applicable for containers of type gif. Valid values are true and false. Also known as, Fixed Number of Frames Between Keyframes.
- frame
Rate str The frames per second for the video stream in the output file. The following values are valid:
auto,10,15,23.97,24,25,29.97,30,50,60.- keyframes
Max strDist The maximum number of frames between key frames. Not applicable for containers of type gif.
- max
Frame strRate If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
- max
Height str The maximum height of the output video in pixels. If you specify auto, Elastic Transcoder uses 1080 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 96 and 3072, inclusive.
- max
Width str The maximum width of the output video in pixels. If you specify auto, Elastic Transcoder uses 1920 (Full HD) as the default value. If you specify a numeric value, enter an even integer between 128 and 4096, inclusive.
- padding
Policy str When you set PaddingPolicy to Pad, Elastic Transcoder might add black bars to the top and bottom and/or left and right sides of the output video to make the total size of the output video match the values that you specified for
max_widthandmax_height.- resolution str
The width and height of the video in the output file, in pixels. Valid values are
autoandwidthxheight. (see note foraspect_ratio)- sizing
Policy str A value that controls scaling of the output video. Valid values are:
Fit,Fill,Stretch,Keep,ShrinkToFit,ShrinkToFill.
PresetVideoWatermark
- Horizontal
Align string The horizontal position of the watermark unless you specify a nonzero value for
horzontal_offset.- Horizontal
Offset string The amount by which you want the horizontal position of the watermark to be offset from the position specified by
horizontal_align.- Id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
- Max
Height string The maximum height of the watermark.
- Max
Width string The maximum width of the watermark.
- Opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
- Sizing
Policy string A value that controls scaling of the watermark. Valid values are:
Fit,Stretch,ShrinkToFit- Target string
A value that determines how Elastic Transcoder interprets values that you specified for
video_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.- Vertical
Align string The vertical position of the watermark unless you specify a nonzero value for
vertical_align. Valid values areTop,Bottom,Center.- Vertical
Offset string The amount by which you want the vertical position of the watermark to be offset from the position specified by
vertical_align
- Horizontal
Align string The horizontal position of the watermark unless you specify a nonzero value for
horzontal_offset.- Horizontal
Offset string The amount by which you want the horizontal position of the watermark to be offset from the position specified by
horizontal_align.- Id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
- Max
Height string The maximum height of the watermark.
- Max
Width string The maximum width of the watermark.
- Opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
- Sizing
Policy string A value that controls scaling of the watermark. Valid values are:
Fit,Stretch,ShrinkToFit- Target string
A value that determines how Elastic Transcoder interprets values that you specified for
video_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.- Vertical
Align string The vertical position of the watermark unless you specify a nonzero value for
vertical_align. Valid values areTop,Bottom,Center.- Vertical
Offset string The amount by which you want the vertical position of the watermark to be offset from the position specified by
vertical_align
- horizontal
Align string The horizontal position of the watermark unless you specify a nonzero value for
horzontal_offset.- horizontal
Offset string The amount by which you want the horizontal position of the watermark to be offset from the position specified by
horizontal_align.- id string
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
- max
Height string The maximum height of the watermark.
- max
Width string The maximum width of the watermark.
- opacity string
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
- sizing
Policy string A value that controls scaling of the watermark. Valid values are:
Fit,Stretch,ShrinkToFit- target string
A value that determines how Elastic Transcoder interprets values that you specified for
video_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.- vertical
Align string The vertical position of the watermark unless you specify a nonzero value for
vertical_align. Valid values areTop,Bottom,Center.- vertical
Offset string The amount by which you want the vertical position of the watermark to be offset from the position specified by
vertical_align
- horizontal
Align str The horizontal position of the watermark unless you specify a nonzero value for
horzontal_offset.- horizontal
Offset str The amount by which you want the horizontal position of the watermark to be offset from the position specified by
horizontal_align.- id str
A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long. You can specify settings for up to four watermarks.
- max
Height str The maximum height of the watermark.
- max
Width str The maximum width of the watermark.
- opacity str
A percentage that indicates how much you want a watermark to obscure the video in the location where it appears.
- sizing
Policy str A value that controls scaling of the watermark. Valid values are:
Fit,Stretch,ShrinkToFit- target str
A value that determines how Elastic Transcoder interprets values that you specified for
video_watermarks.horizontal_offset,video_watermarks.vertical_offset,video_watermarks.max_width, andvideo_watermarks.max_height. Valid values areContentandFrame.- vertical
Align str The vertical position of the watermark unless you specify a nonzero value for
vertical_align. Valid values areTop,Bottom,Center.- vertical
Offset str The amount by which you want the vertical position of the watermark to be offset from the position specified by
vertical_align
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.