Class: Aws::ElasticTranscoder::Types::CreatePresetRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::ElasticTranscoder::Types::CreatePresetRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-elastictranscoder/types.rb
Overview
When making an API call, you may pass CreatePresetRequest data as a hash:
{
name: "Name", # required
description: "Description",
container: "PresetContainer", # required
video: {
codec: "VideoCodec",
codec_options: {
"CodecOption" => "CodecOption",
},
keyframes_max_dist: "KeyframesMaxDist",
fixed_gop: "FixedGOP",
bit_rate: "VideoBitRate",
frame_rate: "FrameRate",
max_frame_rate: "MaxFrameRate",
resolution: "Resolution",
aspect_ratio: "AspectRatio",
max_width: "DigitsOrAuto",
max_height: "DigitsOrAuto",
display_aspect_ratio: "AspectRatio",
sizing_policy: "SizingPolicy",
padding_policy: "PaddingPolicy",
watermarks: [
{
id: "PresetWatermarkId",
max_width: "PixelsOrPercent",
max_height: "PixelsOrPercent",
sizing_policy: "WatermarkSizingPolicy",
horizontal_align: "HorizontalAlign",
horizontal_offset: "PixelsOrPercent",
vertical_align: "VerticalAlign",
vertical_offset: "PixelsOrPercent",
opacity: "Opacity",
target: "Target",
},
],
},
audio: {
codec: "AudioCodec",
sample_rate: "AudioSampleRate",
bit_rate: "AudioBitRate",
channels: "AudioChannels",
audio_packing_mode: "AudioPackingMode",
codec_options: {
profile: "AudioCodecProfile",
bit_depth: "AudioBitDepth",
bit_order: "AudioBitOrder",
signed: "AudioSigned",
},
},
thumbnails: {
format: "JpgOrPng",
interval: "Digits",
resolution: "ThumbnailResolution",
aspect_ratio: "AspectRatio",
max_width: "DigitsOrAuto",
max_height: "DigitsOrAuto",
sizing_policy: "SizingPolicy",
padding_policy: "PaddingPolicy",
},
}
The ‘CreatePresetRequest` structure.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#audio ⇒ Types::AudioParameters
A section of the request body that specifies the audio parameters.
-
#container ⇒ String
The container type for the output file.
-
#description ⇒ String
A description of the preset.
-
#name ⇒ String
The name of the preset.
-
#thumbnails ⇒ Types::Thumbnails
A section of the request body that specifies the thumbnail parameters, if any.
-
#video ⇒ Types::VideoParameters
A section of the request body that specifies the video parameters.
Instance Attribute Details
#audio ⇒ Types::AudioParameters
A section of the request body that specifies the audio parameters.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |
#container ⇒ String
The container type for the output file. Valid values include ‘flac`, `flv`, `fmp4`, `gif`, `mp3`, `mp4`, `mpg`, `mxf`, `oga`, `ogg`, `ts`, and `webm`.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |
#description ⇒ String
A description of the preset.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |
#name ⇒ String
The name of the preset. We recommend that the name be unique within the AWS account, but uniqueness is not enforced.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |
#thumbnails ⇒ Types::Thumbnails
A section of the request body that specifies the thumbnail parameters, if any.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |
#video ⇒ Types::VideoParameters
A section of the request body that specifies the video parameters.
1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 |
# File 'lib/aws-sdk-elastictranscoder/types.rb', line 1876 class CreatePresetRequest < Struct.new( :name, :description, :container, :video, :audio, :thumbnails) SENSITIVE = [] include Aws::Structure end |