AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The VideoParameters
structure.
Namespace: Amazon.ElasticTranscoder.Model
Assembly: AWSSDK.ElasticTranscoder.dll
Version: 3.x.y.z
public class VideoParameters
The VideoParameters type exposes the following members
Name | Description | |
---|---|---|
![]() |
VideoParameters() |
Name | Type | Description | |
---|---|---|---|
![]() |
AspectRatio | System.String |
Gets and sets the property AspectRatio.
To better control resolution and aspect ratio of output videos, we recommend that
you use the values The display aspect ratio of the video in the output file. Valid values include:
If you specify If you specify an aspect ratio for the output file that differs from aspect ratio of the input file, Elastic Transcoder adds pillarboxing (black bars on the sides) or letterboxing (black bars on the top and bottom) to maintain the aspect ratio of the active region of the video. |
![]() |
BitRate | System.String |
Gets and sets the property BitRate.
The bit rate of the video stream in the output file, in kilobits/second. Valid values
depend on the values of Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
|
![]() |
Codec | System.String |
Gets and sets the property Codec.
The video codec for the output file. Valid values include |
![]() |
CodecOptions | System.Collections.Generic.Dictionary<System.String, System.String> |
Gets and sets the property CodecOptions. Profile (H.264/VP8/VP9 Only) The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
Level (H.264 Only) The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
MaxReferenceFrames (H.264 Only) Applicable only when the value of Video:Codec is H.264. The maximum number of previously decoded frames to use as a reference for decoding future frames. Valid values are integers 0 through 16, but we recommend that you not use a value greater than the following:
where Width in pixels and Height in pixels represent either MaxWidth
and MaxHeight, or Resolution. Maximum decoded picture buffer in macroblocks
depends on the value of the
MaxBitRate (Optional, H.264/MPEG2/VP8/VP9 only)
The maximum number of bits per second in a video buffer; the size of the buffer is
specified by BufferSize (Optional, H.264/MPEG2/VP8/VP9 only)
The maximum number of bits in any x seconds of the output video. This window is commonly
10 seconds, the standard segment duration when you're using FMP4 or MPEG-TS for the
container type of the output video. Specify an integer greater than 0. If you specify
InterlacedMode (Optional, H.264/MPEG2 Only) The interlace mode for the output video. Interlaced video is used to double the perceived frame rate for a video by interlacing two fields (one field on every other line, the other field on the other lines) so that the human eye registers multiple pictures per frame. Interlacing reduces the bandwidth required for transmitting a video, but can result in blurred images and flickering.
Valid values include
If ColorSpaceConversionMode (Optional, H.264/MPEG2 Only)
The color space conversion Elastic Transcoder applies to the output video. Color spaces
are the algorithms used by the computer to store information about how to render color.
Valid values include
If you chose
Elastic Transcoder may change the behavior of the
If you do not specify a ChromaSubsampling
The sampling pattern for the chroma (color) channels of the output video. Valid values
include
LoopCount (Gif Only)
The number of times you want the output gif to loop. Valid values include |
![]() |
DisplayAspectRatio | System.String |
Gets and sets the property DisplayAspectRatio. The value that Elastic Transcoder adds to the metadata in the output file. |
![]() |
FixedGOP | System.String |
Gets and sets the property FixedGOP.
Applicable only when the value of Video:Codec is one of
Whether to use a fixed value for
|
![]() |
FrameRate | System.String |
Gets and sets the property FrameRate. The frames per second for the video stream in the output file. Valid values include:
If you specify
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
|
![]() |
KeyframesMaxDist | System.String |
Gets and sets the property KeyframesMaxDist.
Applicable only when the value of Video:Codec is one of The maximum number of frames between key frames. Key frames are fully encoded frames; the frames between key frames are encoded based, in part, on the content of the key frames. The value is an integer formatted as a string; valid values are between 1 (every frame is a key frame) and 100000, inclusive. A higher value results in higher compression but may also discernibly decrease video quality.
For
For example, an input file can have a
Alternately, this can be achieved by setting |
![]() |
MaxFrameRate | System.String |
Gets and sets the property MaxFrameRate.
If you specify |
![]() |
MaxHeight | System.String |
Gets and sets the property MaxHeight.
The maximum height of the output video in pixels. If you specify |
![]() |
MaxWidth | System.String |
Gets and sets the property MaxWidth.
The maximum width of the output video in pixels. If you specify |
![]() |
PaddingPolicy | System.String |
Gets and sets the property PaddingPolicy.
When you set |
![]() |
Resolution | System.String |
Gets and sets the property Resolution.
To better control resolution and aspect ratio of output videos, we recommend that
you use the values
The width and height of the video in the output file, in pixels. Valid values are
Note the following about specifying the width and height:
|
![]() |
SizingPolicy | System.String |
Gets and sets the property SizingPolicy. Specify one of the following values to control scaling of the output video:
|
![]() |
Watermarks | System.Collections.Generic.List<Amazon.ElasticTranscoder.Model.PresetWatermark> |
Gets and sets the property Watermarks. 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. Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency. When you create a job that uses this preset, you specify the .png or .jpg graphics that you want Elastic Transcoder to include in the transcoded videos. You can specify fewer graphics in the job than you specify watermark settings in the preset, which allows you to use the same preset for up to four watermarks that have different dimensions. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5