PresetVideo class

Constructors

PresetVideo({Input<String?>? aspectRatio, Input<String?>? bitRate, Input<String?>? codec, Input<String?>? displayAspectRatio, Input<String?>? fixedGop, Input<String?>? frameRate, Input<String?>? keyframesMaxDist, Input<String?>? maxFrameRate, Input<String?>? maxHeight, Input<String?>? maxWidth, Input<String?>? paddingPolicy, Input<String?>? resolution, Input<String?>? sizingPolicy})
Creates a new PresetVideo. aspectRatio 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 values maxWidth, maxHeight, sizingPolicy, paddingPolicy, and displayAspectRatio instead of resolution and aspectRatio.) bitRate 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 The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9. displayAspectRatio 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. fixedGop 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. frameRate 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. keyframesMaxDist The maximum number of frames between key frames. Not applicable for containers of type gif. maxFrameRate 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. maxHeight 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. maxWidth 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. paddingPolicy 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 maxWidth and maxHeight. resolution The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspectRatio) sizingPolicy A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.
const
PresetVideo.fromMap(Map<String, dynamic> map)
factory

Properties

aspectRatio → Input<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 values maxWidth, maxHeight, sizingPolicy, paddingPolicy, and displayAspectRatio instead of resolution and aspectRatio.)
final
bitRate → Input<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.
final
codec → Input<String?>?
The video codec for the output file. Valid values are gif, H.264, mpeg2, vp8, and vp9.
final
displayAspectRatio → Input<String?>?
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.
final
fixedGop → Input<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.
final
frameRate → Input<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.
final
hashCode int
The hash code for this object.
no setterinherited
keyframesMaxDist → Input<String?>?
The maximum number of frames between key frames. Not applicable for containers of type gif.
final
maxFrameRate → Input<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, up to the maximum frame rate. If you do not specify a MaxFrameRate, Elastic Transcoder will use a default of 30.
final
maxHeight → Input<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.
final
maxWidth → Input<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.
final
paddingPolicy → Input<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 maxWidth and maxHeight.
final
resolution → Input<String?>?
The width and height of the video in the output file, in pixels. Valid values are auto and widthxheight. (see note for aspectRatio)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizingPolicy → Input<String?>?
A value that controls scaling of the output video. Valid values are: Fit, Fill, Stretch, Keep, ShrinkToFit, ShrinkToFill.
final

Methods

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

Operators

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