discontinuedPackage aws_elastictranscoder_api has been discontinued and replaced by aws_client.

VideoParameters class

The VideoParameters structure.

Constructors

VideoParameters({String? aspectRatio, String? bitRate, String? codec, Map<String, String>? codecOptions, String? displayAspectRatio, String? fixedGOP, String? frameRate, String? keyframesMaxDist, String? maxFrameRate, String? maxHeight, String? maxWidth, String? paddingPolicy, String? resolution, String? sizingPolicy, List<PresetWatermark>? watermarks})
VideoParameters.fromJson(Map<String, dynamic> json)
factory

Properties

aspectRatio → String?
To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.
final
bitRate → String?
The bit rate of the video stream in the output file, in kilobits/second. Valid values depend on the values of Level and Profile. If you specify auto, Elastic Transcoder uses the detected bit rate of the input source. If you specify a value other than auto, we recommend that you specify a value less than or equal to the maximum H.264-compliant value listed for your level and profile:
final
codec → String?
The video codec for the output file. Valid values include gif, H.264, mpeg2, vp8, and vp9. You can only specify vp8 and vp9 when the container type is webm, gif when the container type is gif, and mpeg2 when the container type is mpg.
final
codecOptions → Map<String, String>?
Profile (H.264/VP8/VP9 Only)
final
displayAspectRatio → String?
The value that Elastic Transcoder adds to the metadata in the output file.
final
fixedGOP → String?
Applicable only when the value of Video:Codec is one of H.264, MPEG2, or VP8.
final
frameRate → String?
The frames per second for the video stream in the output file. Valid values include:
final
hashCode → int
The hash code for this object.
no setterinherited
keyframesMaxDist → String?
Applicable only when the value of Video:Codec is one of H.264, MPEG2, or VP8.
final
maxFrameRate → String?
If you specify auto for FrameRate, Elastic Transcoder uses the frame rate of the input video for the frame rate of the output video. Specify the maximum frame rate that you want Elastic Transcoder to use when the frame rate of the input video is greater than the desired maximum frame rate of the output video. Valid values include: 10, 15, 23.97, 24, 25, 29.97, 30, 60.
final
maxHeight → 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.
final
maxWidth → 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.
final
paddingPolicy → String?
When you set PaddingPolicy to Pad, Elastic Transcoder may 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 MaxWidth and MaxHeight.
final
resolution → String?
To better control resolution and aspect ratio of output videos, we recommend that you use the values MaxWidth, MaxHeight, SizingPolicy, PaddingPolicy, and DisplayAspectRatio instead of Resolution and AspectRatio. The two groups of settings are mutually exclusive. Do not use them together.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sizingPolicy → String?
Specify one of the following values to control scaling of the output video:
final
watermarks → List<PresetWatermark>?
Settings for the size, location, and opacity of graphics that you want Elastic Transcoder to overlay over videos that are transcoded using this preset. You can specify settings for up to four watermarks. Watermarks appear in the specified size and location, and with the specified opacity for the duration of the transcoded video.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited