|
Did this page help you?Yes No Tell us about it... |
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.elastictranscoder.model.VideoParameters
public class VideoParameters
Constructor Summary | |
---|---|
VideoParameters()
|
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getAspectRatio()
The display aspect ratio of the video in the output file. |
String |
getBitRate()
The bit rate of the video stream in the output file, in kilobits/second. |
String |
getCodec()
The video codec for the output file. |
Map<String,String> |
getCodecOptions()
Profile |
String |
getFixedGOP()
Whether to use a fixed value for FixedGOP . |
String |
getFrameRate()
The frames per second for the video stream in the output file. |
String |
getKeyframesMaxDist()
The maximum number of frames between key frames. |
String |
getResolution()
The width and height of the video in the output file, in pixels. |
int |
hashCode()
|
void |
setAspectRatio(String aspectRatio)
The display aspect ratio of the video in the output file. |
void |
setBitRate(String bitRate)
The bit rate of the video stream in the output file, in kilobits/second. |
void |
setCodec(String codec)
The video codec for the output file. |
void |
setCodecOptions(Map<String,String> codecOptions)
Profile |
void |
setFixedGOP(String fixedGOP)
Whether to use a fixed value for FixedGOP . |
void |
setFrameRate(String frameRate)
The frames per second for the video stream in the output file. |
void |
setKeyframesMaxDist(String keyframesMaxDist)
The maximum number of frames between key frames. |
void |
setResolution(String resolution)
The width and height of the video in the output file, in pixels. |
String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
VideoParameters |
withAspectRatio(String aspectRatio)
The display aspect ratio of the video in the output file. |
VideoParameters |
withBitRate(String bitRate)
The bit rate of the video stream in the output file, in kilobits/second. |
VideoParameters |
withCodec(String codec)
The video codec for the output file. |
VideoParameters |
withCodecOptions(Map<String,String> codecOptions)
Profile |
VideoParameters |
withFixedGOP(String fixedGOP)
Whether to use a fixed value for FixedGOP . |
VideoParameters |
withFrameRate(String frameRate)
The frames per second for the video stream in the output file. |
VideoParameters |
withKeyframesMaxDist(String keyframesMaxDist)
The maximum number of frames between key frames. |
VideoParameters |
withResolution(String resolution)
The width and height of the video in the output file, in pixels. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VideoParameters()
Method Detail |
---|
public String getCodec()
H.264
.
Constraints:
Pattern: (^H\.264$)
H.264
.public void setCodec(String codec)
H.264
.
Constraints:
Pattern: (^H\.264$)
codec
- The video codec for the output file. This value must be
H.264
.public VideoParameters withCodec(String codec)
H.264
.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^H\.264$)
codec
- The video codec for the output file. This value must be
H.264
.
public Map<String,String> getCodecOptions()
The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
public void setCodecOptions(Map<String,String> codecOptions)
The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
codecOptions
- Profile The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
public VideoParameters withCodecOptions(Map<String,String> codecOptions)
The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
Returns a reference to this object so that method calls can be chained together.
codecOptions
- Profile The H.264 profile that you want to use for the output file. Elastic Transcoder supports the following profiles:
baseline
: The profile most commonly used for
videoconferencing and for mobile applications.main
: The profile used for standard-definition
digital TV broadcasts.high
: The profile used
for high-definition digital TV broadcasts and for Blu-ray discs.Level
The H.264 level that you want to use for the output file. Elastic Transcoder supports the following levels:
1
, 1b
, 1.1
,
1.2
, 1.3
, 2
, 2.1
,
2.2
, 3
, 3.1
, 3.2
,
4
, 4.1
MaxReferenceFrames
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:
Min(Floor(Maximum decoded picture buffer in macroblocks * 256
/ (Width in pixels * Height in pixels)), 16)
where Width
in pixels and Height in pixels represent the resolution of
the output video and Maximum decoded picture buffer in
macroblocks depends on the value of the Level
object.
(A macroblock is a block of pixels measuring 16x16.)
Note that the calculation for maximum decoded picture buffer, which is similar to the calculation for maximum reference frames, uses macroblocks instead of pixels for the width and height of the video.
To determine the value of maximum decoded picture buffer in macroblocks, see the following list (Level - Maximum decoded picture buffer):
public String getKeyframesMaxDist()
Constraints:
Pattern: ^\d{1,6}$
public void setKeyframesMaxDist(String keyframesMaxDist)
Constraints:
Pattern: ^\d{1,6}$
keyframesMaxDist
- 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 and 100000,
inclusive. A higher value results in higher compression but may also
discernibly decrease video quality.public VideoParameters withKeyframesMaxDist(String keyframesMaxDist)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^\d{1,6}$
keyframesMaxDist
- 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 and 100000,
inclusive. A higher value results in higher compression but may also
discernibly decrease video quality.
public String getFixedGOP()
FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.
Constraints:
Pattern: (^true$)|(^false$)
FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.public void setFixedGOP(String fixedGOP)
FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.
Constraints:
Pattern: (^true$)|(^false$)
fixedGOP
- Whether to use a fixed value for FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.public VideoParameters withFixedGOP(String fixedGOP)
FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^true$)|(^false$)
fixedGOP
- Whether to use a fixed value for FixedGOP
. Valid values
are true
and false
: true
: Elastic Transcoder uses the value of
KeyframesMaxDist
for the distance between key frames (the
number of frames in a group of pictures, or GOP).false
: The distance between key frames can vary.public String getBitRate()
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
Constraints:
Pattern: ^\d{2,5}$
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
public void setBitRate(String bitRate)
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
Constraints:
Pattern: ^\d{2,5}$
bitRate
- The bit rate of the video stream in the output file, in
kilobits/second. Valid values depend on the values of
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
public VideoParameters withBitRate(String bitRate)
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^\d{2,5}$
bitRate
- The bit rate of the video stream in the output file, in
kilobits/second. Valid values depend on the values of
Level
and Profile
. We recommend that you
specify a value less than or equal to the maximum H.264-compliant
value listed in the following list for your level and profile:
Level - Maximum video bit rate in kilobits/second (baseline and main Profile) : maximum video bit rate in kilobits/second (high Profile)
public String getFrameRate()
auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
Constraints:
Pattern: (^auto$)|(^10$)|(^15$)|(^23.97$)|(^24$)|(^25$)|(^29.97$)|(^30$)|(^60$)
auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
public void setFrameRate(String frameRate)
auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
Constraints:
Pattern: (^auto$)|(^10$)|(^15$)|(^23.97$)|(^24$)|(^25$)|(^29.97$)|(^30$)|(^60$)
frameRate
- The frames per second for the video stream in the output file. Valid
values include: auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
public VideoParameters withFrameRate(String frameRate)
auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^auto$)|(^10$)|(^15$)|(^23.97$)|(^24$)|(^25$)|(^29.97$)|(^30$)|(^60$)
frameRate
- The frames per second for the video stream in the output file. Valid
values include: auto
, 10
,
15
, 23.97
, 24
, 25
,
29.97
, 30
, 60
If you specify
auto
, Elastic Transcoder uses the detected frame rate of
the input source. If you specify a frame rate, we recommend that you
perform the following calculation:
Frame rate = maximum
recommended decoding speed in luma samples/second / (width in pixels *
height in pixels)
where:
The maximum recommended decoding speed in Luma samples/second for each level is described in the following list (Level - Decoding speed):
public String getResolution()
auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
Constraints:
Pattern: (^auto$)|(^\d+x\d+$)
auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
public void setResolution(String resolution)
auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
Constraints:
Pattern: (^auto$)|(^\d+x\d+$)
resolution
- The width and height of the video in the output file, in pixels. Valid
values are auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
public VideoParameters withResolution(String resolution)
auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^auto$)|(^\d+x\d+$)
resolution
- The width and height of the video in the output file, in pixels. Valid
values are auto
and width x height: auto
: Elastic Transcoder attempts to preserve the
width and height of the input file, subject to the following
rules.width x height
: The width
and height of the output video in pixels.Note the following about specifying the width and height:
public String getAspectRatio()
auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
Constraints:
Pattern: (^auto$)|(^1:1$)|(^4:3$)|(^3:2$)|(^16:9$)
auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
public void setAspectRatio(String aspectRatio)
auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
Constraints:
Pattern: (^auto$)|(^1:1$)|(^4:3$)|(^3:2$)|(^16:9$)
aspectRatio
- The display aspect ratio of the video in the output file. Valid values
include: auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
public VideoParameters withAspectRatio(String aspectRatio)
auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^auto$)|(^1:1$)|(^4:3$)|(^3:2$)|(^16:9$)
aspectRatio
- The display aspect ratio of the video in the output file. Valid values
include: auto
, 1:1
, 4:3
,
3:2
, 16:9
If you specify
auto
, Elastic Transcoder tries to preserve the aspect
ratio of the input file.
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.
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |