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?
-
auto
,1:1
,4:3
,3:2
,16:9
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
andProfile
. If you specifyauto
, Elastic Transcoder uses the detected bit rate of the input source. If you specify a value other thanauto
, 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
, andvp9
. You can only specifyvp8
andvp9
when the container type iswebm
,gif
when the container type isgif
, andmpeg2
when the container type ismpg
.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
, orVP8
.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
, orVP8
.final - maxFrameRate → String?
-
If you specify
auto
forFrameRate
, 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
toPad
, 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 forMaxWidth
andMaxHeight
.final - resolution → String?
-
auto
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