public class VideoConfiguration extends CodecConfiguration
Constructor and Description |
---|
VideoConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Long |
getBitrate()
Target bitrate for the encoded video in bps.
|
ColorConfig |
getColorConfig()
Get colorConfig
|
DisplayAspectRatio |
getDisplayAspectRatio()
Specifies a display aspect ratio (DAR) to be enforced.
|
EncodingMode |
getEncodingMode()
The mode of the encoding.
|
Integer |
getHeight()
Height of the encoded video in pixels
|
PixelFormat |
getPixelFormat()
Describes the color encoding, bit depth, and chroma subsampling of each pixel in the output image.
|
Double |
getRate()
Target frame rate of the encoded video.
|
Integer |
getSampleAspectRatioDenominator()
The denominator of the sample aspect ratio (also known as pixel aspect ratio).
|
Integer |
getSampleAspectRatioNumerator()
The numerator of the sample aspect ratio (also known as pixel aspect ratio).
|
Integer |
getWidth()
Width of the encoded video in pixels
|
int |
hashCode() |
void |
setBitrate(Long bitrate)
Target bitrate for the encoded video in bps.
|
void |
setColorConfig(ColorConfig colorConfig)
Set colorConfig
|
void |
setDisplayAspectRatio(DisplayAspectRatio displayAspectRatio)
Specifies a display aspect ratio (DAR) to be enforced.
|
void |
setEncodingMode(EncodingMode encodingMode)
The mode of the encoding.
|
void |
setHeight(Integer height)
Height of the encoded video in pixels
|
void |
setPixelFormat(PixelFormat pixelFormat)
Describes the color encoding, bit depth, and chroma subsampling of each pixel in the output image.
|
void |
setRate(Double rate)
Target frame rate of the encoded video.
|
void |
setSampleAspectRatioDenominator(Integer sampleAspectRatioDenominator)
The denominator of the sample aspect ratio (also known as pixel aspect ratio).
|
void |
setSampleAspectRatioNumerator(Integer sampleAspectRatioNumerator)
The numerator of the sample aspect ratio (also known as pixel aspect ratio).
|
void |
setWidth(Integer width)
Width of the encoded video in pixels
|
String |
toString() |
getCreatedAt, getCustomData, getDescription, getModifiedAt, getName, putCustomDataItem, setCustomData, setDescription, setName
getId
public Integer getWidth()
public void setWidth(Integer width)
width
- Width of the encoded video in pixelspublic Integer getHeight()
public void setHeight(Integer height)
height
- Height of the encoded video in pixelspublic Long getBitrate()
public void setBitrate(Long bitrate)
bitrate
- Target bitrate for the encoded video in bps. Either bitrate or crf is required.public Double getRate()
public void setRate(Double rate)
rate
- Target frame rate of the encoded video. Must be set for live encodingspublic PixelFormat getPixelFormat()
public void setPixelFormat(PixelFormat pixelFormat)
pixelFormat
- Describes the color encoding, bit depth, and chroma subsampling of each pixel in the output image.public ColorConfig getColorConfig()
public void setColorConfig(ColorConfig colorConfig)
colorConfig
- public Integer getSampleAspectRatioNumerator()
public void setSampleAspectRatioNumerator(Integer sampleAspectRatioNumerator)
sampleAspectRatioNumerator
- The numerator of the sample aspect ratio (also known as pixel aspect ratio). Must be set if sampleAspectRatioDenominator is set. If set then displayAspectRatio is not allowed.public Integer getSampleAspectRatioDenominator()
public void setSampleAspectRatioDenominator(Integer sampleAspectRatioDenominator)
sampleAspectRatioDenominator
- The denominator of the sample aspect ratio (also known as pixel aspect ratio). Must be set if sampleAspectRatioNumerator is set. If set then displayAspectRatio is not allowed.public DisplayAspectRatio getDisplayAspectRatio()
public void setDisplayAspectRatio(DisplayAspectRatio displayAspectRatio)
displayAspectRatio
- Specifies a display aspect ratio (DAR) to be enforced. The sample aspect ratio (SAR) will be adjusted accordingly. If set then sampleAspectRatioNumerator and sampleAspectRatioDenominator are not allowed.public EncodingMode getEncodingMode()
public void setEncodingMode(EncodingMode encodingMode)
encodingMode
- The mode of the encoding. When this is set, `encodingMode` (`liveEncodingMode`) must not be set in the (live) encoding start request.public boolean equals(Object o)
equals
in class CodecConfiguration
public int hashCode()
hashCode
in class CodecConfiguration
public String toString()
toString
in class CodecConfiguration
Copyright © 2025. All rights reserved.